Problems while trying to reach a smooth rotating effect

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to achieve a smooth rotating effect
  2. What is the issue? Include screenshots / videos if possible!
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    here is my code, not sure of what im doing wrong to be honest:
SpinnyBoi = script.Parent

while true do 
	wait(0)
	SpinnyBoi.Rotation = SpinnyBoi.Rotation + 1
end

It is doing that because it is spinning around a point and not an axis.

1 Like

thanks!, i think thats the problem, but yeah really thanks

1 Like

It probably is, but my original reply was quite vague, I would look into CFrame, orientation and Euler Angles.

btw euler angles uses X Y Z axis it would still work for a 2D Object?

Oh 2d eh? No, not euler, but I am sure there is an alternative. https://developer.roblox.com/ has all functions and such in a database and is great for getting detailed explanations without the wait time here on the devforum.

1 Like

Is that an ImageLabel?

If it is, to me that looks like the image itself isn’t centered. Even if you AnchorPoint is 0.5, 0.5 if the image center isn’t at the center of the image in whatever editor it was made in, then it won’t rotate around the exact center.