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

What event would i use to make the player that touches the right arm take damage?

Asked by 4 years ago

Now that I have the punch and a cooldown for it what event do i use to make it so that if the right arm touches a player it does damage to the player

player = game.Players.LocalPlayer mouse = player:GetMouse() animation = script:WaitForChild("Animation1") enabled = true mouse.Button1Down:Connect(function() if enabled then enabled = false

local animationTrack = player.Character.Humanoid:LoadAnimation(animation)
animationTrack:Play()

wait(1)
enabled = true

end

end)

???????

0
Use a Touched event and use an if statement to only run when the Right arm (Upper/Lower for R15) touches ForeverBrown 356 — 4y
0
And be sure to use remote events or a bindble event cause you can't make changes to the server unless it's a script. VitroxVox 884 — 4y

Answer this question