Bobble head script

looking for a script that will make a bobble head effect. y’know like those lil dogs on peoples dashboards. or the dolls that you touch the head and it bobs around.

i’ve seen it on some sights but i can’t remember where … any help is appreciated

thanks