Hi, I'm trying to make a gear spin, its a union and the hitbox is a perfect square, but i have many issues. The starting orientation is 0, 0, 0. Firstly, It's not continually spinning, it only spins until ~90 degrees, after which point it just goes back and forth. Secondly, Its mathematically incorrect, it rotates 5.625 degrees every 0.125 seconds, this may seem random, but its 90 degrees divided by 16. The reason i put ~ on the 90 degrees on the first one is that the gear just glitches at 84.41, 180, 180, which is not 90 degrees, or a multiple of 5.625. notice that there is 180 where there should be a 0, that is also an issue
here's the script
while true do
script.Parent.Orientation = script.Parent.Orientation + Vector3.new(5.625,0,0)
wait(0.08)
end
if any glowing brain Albert einstein geniuses can figure this out, feel free to
