So i made a punching script that activates when you press q but it isn't working. There are no error warnings on my output or script analysis. Please help.
local Player = game.Players.LocalPlayer
local mouse = Player:GetMouse()
local Humanoid = Player.Character.Humanoid
local debounce = false
mouse.KeyDown:connect(function(key)
if not debounce then
debounce = true
if key == "q" then
local Punch = Instance.new("Animation")
Punch.AnimationId = "http://www.roblox.com/Asset?ID=644505212"
local animTrack = Humanoid:LoadAnimation(Punch)
print("fart")
animTrack:Play()
wait(1)
debounce = false
end
end

1 comment
The other possible reason why - The animation must be made by you or an open sourced animation made by the user ROBLOX, or else it cannot work. There is a possible way to download ROBLOX animations to game.Workspace using loadstring(getobjects) but I forgot that.