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

Spinning a frame?

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

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.

3 comments

0

Sorry it still doesn't work.

0

Add 0.01 inside the wait() on line 3.

0

@ Spongocardo , I think waits can only go to 0.03 seconds(basically the same thing as wait() left blank.)

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