"make them turn by script"

do you have a tutorial to do that?
I have never animated something before...