How Can I Continuously Rotate A Part?

give me the part’s dimensions

char limit

image

1 Like

try putting it in a loop and add like .5 to the rotation each time, should make it look smooth. I’ve done it multiple times

1 Like

I tryed this and it didnt work

Speed = 0.5 
while true do 
	script.Parent.Orientation.Z += 0.5
	wait(Speed)
end

try this

while true do -- infinite loop
	speed = 1 -- how fast it rotates, higher is faster
	script.Parent.Orientation += Vector3.new(0, 0, speed) -- change where speed is for different behaviour
	task.wait() -- ensures the game doesnt crash from the loop
end

i created it with your rotation and dimensions

5 Likes

finally got a solution, took me long enough on my time of the forum :joy: :joy: :joy:

1 Like

why is the speed variable inside the while true loop
i also dont recommend while true do you should use RunService.Heartbeat or RunService.RenderStepped

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.