Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why wont my GUI image label rotate even tho im using 'Rotation'?

Asked by 4 years ago

Im trying to make a loading GUI thing by making some image rotate around (like a simple animation) and im trying to do that with this code:

while true do
         wait(.1)
         script.Parent.Rotation = script.Parent.Rotation + 1
end)

I tried both Local and Server scripts, I tried to get the GUI image by a variable, I tried to put the script outside of the GUI image and manually find it:

script.Parent.GUI ....

I added a print and the script wont run at all. What am I missing here? Can anyone help me please?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Hello my friend, I did something very simple, almost the same as yours, and it worked, here is the script:


while wait() do script.Parent.Rotation = script.Parent.Rotation + 1 end

Your script has one ) , in a place that wasn’t supposed to be xD

Ad

Answer this question