Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 10 -- Change the amount to change the damage.
- end
- end
- script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement