I put this local script in StarterCharacterScripts:
local player = game.Players.LocalPlayer local mouse = player:GetMouse() local Animate = 0 local player = game.Players.LocalPlayer local mouse = player:GetMouse() local Animate = 0 local Humanoid = player.Character:FindFirstChild('Humanoid')
mouse.KeyDown:Connect(function(Key)
if Key == "e" then
local Animation = Instance.new("Animation", player.Character)
Animation.AnimationId = "rbxassetid://6317159485"
Animate = Humanoid:LoadAnimation(Animation)
Animate:Play()
end
end)
mouse.KeyUp:Connect(function(Key) if Key == "e" then Animate:Stop() end end)
It's meant to carry out the animation when holding e, but nothing happens. Do you know how to help?

1 comment
OK, I'll see if that works, thanks!