A.L.
My daughter got silly putty in her Pillow Pet. Yay.
Get out as much as you can, and then rub the rest of it with baby oil. (I've read WD-40 works, too, but since this was a stuffed animal, I used the baby oil.) then just sit with an old comb, and it'll comb out. That should work for the carpet; for the clothes, you can scrub it over and over with a soft rag or paper towel. (You'll have to be patient for both!) Then just run the clothes through the wash, and blot up the baby oil from the carpet as you normally would (steam cleaner, maybe?).
Good luck!