So I'm as you can see a rookie at KeyDown events, I'd like some help with playing animations could someone give me some help on how to play an animation on keypress?
Here's the script:
Player = game.Players.LocalPlayer
tool = script.Parent
tool.Equipped:Connect(function(mouse)
mouse.KeyDown:Connect(function(key)
if key == "e" then
local anim = instance.new("Animation")
end
end)
3 Questions Where would the parent be of the animation so the script can play? How do you play the animation? How do you debounce it so it isn't spammable?

1 comment
Instance.new() **