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:

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

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:

1script.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:

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

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

Ad

Answer this question