Advertisement
blox_YT

death wall script(WORKING 2018)

Jul 19th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. function onTouched(hit)
  2. local human = hit.Parent:FindFirstChild("Humanoid")
  3. --Basically this just checks to see if it is a real player touching this brick.
  4. if (human ~= nil) then --If it is a real player, then DESTROY THEM!
  5. human.Health = 0 --Your Health Is Now 0.
  6. end
  7. end
  8.  
  9. if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  10. connection = script.Parent.Touched:connect(onTouched)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement