This is really getting old! Having People View A Simple Script and Not Responding. No wiki article no examples no help at all! If this is a scripting help site where is the help?
while true do wait(0.01) script.Parent.Rotation = script.Parent.Rotation +1 if script.Parent.Rotation == 10 then script.Parent.Rotation = script.Parent.Rotation -1 if script.Parent.Rotation == -10 then script.Parent.Rotation = script.Parent.Rotation +1 end end end
Please don't complain. I have edited the script below to work as BlueTaslem has described.
for i = 1, 10 do script.Parent.Rotation = script.Parent.Rotation + 1 wait() end while true do for i = 1, 20 do script.Parent.Rotation = script.Parent.Rotation - 1 wait() end for i = 1, 20 do script.Parent.Rotation = script.Parent.Rotation + 1 wait() end end
Try using a UDim2, replace +1 with UDim2.new(0, 1)