Advertisement
Guest User

Damage Block Script for ROBLOX

a guest
Dec 25th, 2017
7,070
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. function onTouch(part)
  2. local humanoid = part.Parent:FindFirstChild("Humanoid")
  3. if (humanoid ~= nil) then -- if a humanoid exists, then
  4. humanoid.Health = 0 -- damage the humanoid
  5. end
  6. end
  7. script.Parent.Touched:connect(onTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement