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

Help with a basic script?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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
0
It should be in a LocalScript if it is running on the client as a descendant of PlayerGui. 1waffle1 2908 — 8y

1 answer

Log in to vote
-1
Answered by
WVPII 5
8 years ago
for i = 1,180 do
    script.Parent.ImageButton.Rotation = script.Parent.ImageButton.Rotation - 1
    wait(0.1)
    i = i + 1
end

Ad

Answer this question