So for some reason my animation won't stop. I am not sure why, as when I tried to debug it with print, it should have been happening.
local Debounce = false
local Playing = false
AnimEvent.OnClientEvent:Connect(function(AnimName)
local SteamIdleAnim = Humanoid:LoadAnimation(script:WaitForChild("SteamIdle"))
if AnimName == "SteamIdle" and not Debounce and not Playing then
Debounce = true
SteamIdleAnim:Play()
wait(1)
Playing = true
else
if Debounce and Playing then
Debounce = false
SteamIdleAnim:Stop()
wait(1)
Playing = false
end
end
end)
