my switcalways stays on but the saw never spins and it wont let the switch turn on heres my script
local saw = game.Workspace.Saw
script.Parent.ClickDetector.MouseClick:connect(function()
if Off then
On = script.Parent.CFrame == CFrame.new(0,0,0) + CFrame.fromEulerAnglesXYZ(-45,0,0)
while true do
Saw.CFrame = script.Parent.CFrame * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, -0.1)
wait(0.001)
end
if On then
Off = script.Parent.CFrame == CFrame.new(0,0,0) + CFrame.fromEulerAnglesXYZ(0,0,0)
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
wait(0.001)
end
end
end
end)
