Advertisement
krLuCiEzkr

Kill Brick Script

Dec 2nd, 2019
1,815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. function onTouched(hit)
  2. local human = hit.Parent:FindFirstChild("Humanoid")
  3.  
  4. if (human ~= nil) then
  5. human.Health = 0 -- The player health will go down same the number when he touch.
  6. end
  7. end
  8.  
  9. if (script.Parent ~= nil) and (script.Parent.className == "Part") then
  10. connection = script.Parent.Touched:connect(onTouched)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement