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

Spinning a frame?

Asked by
Qorm 100
10 years ago

I thought this would work:

frame=script.Parent
p=script.Parent.Position

while true do
    for i=0,360, 0.1 do
        print(i)
        p.Rotation=i
        wait(0.01)
end end

Sorry for the stupid question, I'm not quite familiar with GUI's, so help would be appreciated! Thanks anyway!

1 answer

Log in to vote
0
Answered by 10 years ago

Rotation is not inside the frame's position You could do this (I think):

frame = script.Parent

while wait() do --EDIT: changed from wait() to wait(0.01)
    frame.Rotation = frame.Rotation+1
end

Tested it in solo and it works.

0
Sorry it still doesn't work. Qorm 100 — 10y
0
Add 0.01 inside the wait() on line 3. Spongocardo 1991 — 10y
0
@ Spongocardo , I think waits can only go to 0.03 seconds(basically the same thing as wait() left blank.) EzraNehemiah_TF2 3552 — 9y
Ad

Answer this question