Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.