This is what the script is supposed to do:
Hurt someone, when their right leg touches them, and push them back.
Play an animation, so it looks like their kicking the player.
This is what it's doing:
Hurting me, and damaging me, when I press the key.
Not playing any animations...
This is 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
s = player.Character.Humanoid:LoadAnimation(game.Players.Animation)
s:Play()
player.Character.Humanoid:TakeDamage(50)
end
end)
