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

Help with a basic script?

I have this super basic script, but for some reason it doesn't work. It is supposed to rotate an image label, but it does nothing with no errors.

for i = 1,180 do
	script.Parent.ImageButton.Rotation = script.Parent.ImageButton.Rotation - 1
	wait(0.1)
end

1 comment

0

It should be in a LocalScript if it is running on the client as a descendant of PlayerGui.

1 answer

for i = 1,180 do
    script.Parent.ImageButton.Rotation = script.Parent.ImageButton.Rotation - 1
    wait(0.1)
    i = i + 1
end

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