I have a loop that i want to fire when the character speed is more than 1 and stop that loop when it goes below 1
self.Humanoid.Running:Connect(function(speed)
if speed > 1 then
movement = spawn(function()
while task.wait() do
GetQuadrant()
end
end)
else
movement = nil
resetLocomotion()
playAnimation(idle)
end
end)
How do i stop it?