So recently, I've been working on a animation script, and I don't understand why it doesn't run... Why doesn't it? Is anything wrong, because here's what it's doing at the moment:
It keeps damaging me when I press q
It doesn't play any animations
Here's what I need it to do....
I need it to hurt another player, when the right leg touches them.
I need it to play animation, to make it look like a kick
I need it to push the player back
Here's the script
wait(2)
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
repeat wait() until player.Character and player.Character:findFirstChild("Humanoid")
mouse.KeyDown:connect(function(key)
if key:byte() == 113 then
local s = player.Character.Humanoid:LoadAnimation(game.Players.Animation1)
s:Play()
player.Character.Humanoid:TakeDamage(50)
end
end)
