Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i make this do damage?

Asked by 8 years ago

i need this to do damage thanks

player = game.Players.LocalPlayer

m = player:GetMouse()

Punch = script:WaitForChild("Punch")

tool = script.Parent

tool.Selected:connect(function(m)
    m.Button1Down:connect(function()        
        local animateTrack = player.Character.Humanoid:LoadAnimation(Punch)
        animateTrack:Play()
    end)
end)

Answer this question