I inserted a rotating script

sphere = script.Parent
a = 0
repeat
sphere.Rotation = Vector3.new( 0, a, 0) 
wait(.01) 
a = a+3 --
until pigs == 1 

into a part, and it works, but I do not stay on the rotating part.

How do I fix this?