How to make an ImageLabel keep rotating around?

How to make an ImageLabel keep rotating around?

Im making a main menu for my roblox game and when you click play it brings up a roblox studio image and i’m wondering how to make it keep rotating around. Heres the main menu btw

.
I’ve tried a youtube tutorial but it only rotates once ;-; and i’m looking to make the ImageLabel rotate multiple times. Thanks for reading this topic and if you have an answer go ahead and reply with it.

6 Likes

You could do,
while true do
wait()
script.Parent.Rotation = script.Parent.Rotation + 5
end

(I doubt it will work, but you could give it a go? But you get the example.)

10 Likes

Thanks, ill try it out.
30 Charssss

1 Like

Thanks TheBigC10 for the help. It works.

1 Like

Awesome! You can also change the speed of it with the wait() function! Like,
wait(0.1)
wait(0.25)

You get the point :3

1 Like

I would recommend using RunService.Stepped instead of wait(). Stepped is faster than wait() and should be used to keep it rotating smoothly.

I would also recommend reading this:

1 Like

Thanks @COUNTYL1MITS for the better version. Have a great day!

1 Like

Wait just one more question how do you make the ImageLabel rotate 360 and then stop for a second then spin 360 again?

Check if the rotation == 360(assuming you started from 0). If so then put a wait(1) somewhere.

???
30 Charrrrrssssssssssssssss

So using the method @TheBigC10 gave you, it rotates the ImageLabel using the “Rotation” property. A full circle is 360 degrees. Assuming you start from 0 degrees, once you reach 360 that means you completed a full circle.

Oh ok now I get it thanks.
30 Chars

1 Like

Yep, What he said!

(30 Characters)