local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local Animate
local Humanoid = player.Character:FindFirstChild('Humanoid')
local UIS = game:GetService('UserInputService')
local debounce = false
local cooldown = 3
UIS.InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.E and debounce == false then
debounce = true
local Animation = Instance.new("Animation", player.Character)
Animation.AnimationId = "rbxassetid://4586653068"
Animate = Humanoid:LoadAnimation(Animation)
Animate:Play()
end
end)
UIS.InputEnded:connect(function(input)
if input.KeyCode == Enum.KeyCode.E then
Animate:Stop()
wait(cooldown)
debounce = false
end
end)
This is the script so when ever i die and respawn the animation dont play anymore i tried to fix it myself but failed many times pls help
