When I was working on my game I started trying to add more stuff into it, so I added a little script that rotates a gui. However the gui will not rotate, what did I do wrong?
while wait(1) do
script.Parent.Rotation = script.Parent.Rotation - 1
repeat wait(1) until script.Parent.Rotation == -11
if script.Parent.Rotation == -11 then
script.Parent.Rotation = script.Parent.Rotation + 1
repeat wait(1) until script.Parent.Rotation == 11
break
end
end

1 comment
you should put the repeat outside