Here's the script:
function rotation(number)
script.Parent.Rotation = number
wait(.05)
end
while wait() do
a = 5
repeat
rotation(a)
a = a - 0.2
until a == 0
repeat
a = a - 0.25
until a == -5
repeat
rotation(a)
a = a + 0.2
until a == 0
repeat
rotation(a)
a = a + 0.25
until a == 5
a = 5
rotation(a)
end
Yet everything the title said, so can you help why this script makes the GUI keeps rotates left?
I need to make it become back and forth, but it won't work.
Any help is appreciated.

3 comments
Uhhh... So there's any ways to rotate back???
I don't really know how to use it.
Just read the article