Ok so I have a script that spins a handle of a tool but that doesn't happen I don't know what I am doing wrong there is no warning or error in the output it just doesn't spin when I equip it stays still. Here is the script that is inside the handle:

sphere = script.Parent --This means that you have to have the script in the sphere part
a = 0
repeat
sphere.Rotation = Vector3.new( 0, a, 0) --The second value of vector3 is a,
wait(.01) -- we wait .01 seconds,
a = a+1000000000 --a's value increases
until pigs == 1 --Just make sure you never have pigs' value to 1, and it'll spin forever

thank you in advance