Advertisement
XxCrazy_BuilderxX

Kill Brick Script

May 5th, 2019
5,409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1.  
  2. script.Parent.Touched:Connect(function(hit)-- if you touch the brick it wil activate code
  3. if hit ~= nil then
  4. local char = hit.Parent -- just a variable
  5. if char ~= nil then
  6. local hum = char:FindFirstChild("Humanoid") -- just a variable
  7. if hum ~= nil then -- if you touch it then...--
  8. hum.Health = 0 -- kills you
  9. end
  10. end
  11. end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement