Okay so I need a part to spin on it's axis for my sweeper game. I tried tweening it but it was constantly speeding up, slowing down, and when it came to the end it stopped instead of keep repeating contantly. Secondly I tried to make a loop to change it's orientation. That worked fine but it was very slow. I tried decreasing the wait time but it wouldn't speed up. If i were to change the increment then it would be glitchy.

Here is my current code:

while true do
	script.Parent.Orientation = script.Parent.Orientation + Vector3.new(0,0.4,0)
	wait(0.000000000000000000000000000000000000000000000000000000000000000000000000001)
end

Any help would be greatly appreciated.

3 comments

0

first thing i see right off the bat is that you don't need to add all those zero's to that wait, if you want to just wait the shortest amount of time just use: wait()

0

add a body velocity to the part, then increase the force of it to make it spin faster, also that many zeros wont help, the default wait time will kick in if the wait time is less than the default