Advertisement
Real_IceyDev

Kill Player OnTouch - Roblox Script

May 24th, 2021
9,503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. -- Made by Real_IceyDev (lceyDex) --
  2. -- Paste script below into a Script, put the Script under the part you want to kill players when they touch it --
  3.  
  4. local Brick = script.Parent
  5.  
  6.  
  7. local function PlayerTouched(Part)
  8.     local Parent = Part.Parent
  9.     if game.Players:GetPlayerFromCharacter(Parent) then
  10.         Parent.Humanoid.Health = 0
  11.     end
  12. end
  13.  
  14. Brick.Touched:connect(PlayerTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement