Hey guys! I have a problem where an animation keeps playing when an event if fired in the middle of it. Heres the code
if cooldown == false and isdropping == false then
cooldown = true
throwRepEvent:FireServer()
animation.AnimationId = "rbxassetid://8643642845"
local playanim = hum:LoadAnimation(animation)
playanim:Play()
wait(1)
playanim:Stop()
wait(0.3)
cooldown = false
end
As you can see, I added a remote event called 'throwRepEvent:FireServer()". When I have this line of code in the program, the whole animation keeps repeating but as soon as I delete that one line of code, the whole animation works perfectly. Anyone have any idea why this is happening?