Guest User

Roblox Kill Brick Script

a guest
Jan 26th, 2022
4,126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. function killPlayer(hit) -- The name of the function and when the event is triggered
  2.     if hit.Parent:FindFirstChild("Humanoid") then -- If the script finds a child called humanoid on hit.Parent
  3.         hit.Parent.Humanoid.Health = nil -- Sets the touching part's health to nil (no value)
  4.     end
  5. end)
  6.  
  7. script.Parent.Touched:Connect(killPlayer) -- Runs the function
Advertisement
Add Comment
Please, Sign In to add comment