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?
Hmmm.... Maybe Like This. (Use it in LocalScripts!) (Just Answer The Questions, Not The Script) Q1. The Parent A1. The Humanoid Q2. Play It? How? A2. The Lines Below.
local animthing = Humanoid:LoadAnimation(yourAnimation) animthing:Play()
Q3. How To Debounce It? A3. wut iz debounce?