Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tool - script.Parent
- player = game.Player.LocalPlayer
- tool.Activated:connect(function)]
- function onTouched(hit)
- if not hit or not hit.Parent then return end
- local human = hit.Parent:findFirstChild("Humanoid")
- if human and human:IsA("Humanoid") then
- human:TakeDamage(20)
- end
- end
- script.Parent.Touched:connect(onTouched)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement