Advertisement
SebaTutoriales

Untitled

May 26th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. function onTouched(hit)
  2. local h = hit.Parent:findFirstChild("Humanoid")
  3. if (h ~= nil) then
  4. h.Health = h.Health - h.maxHealth
  5. end
  6. end
  7.  
  8. script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement