DaDogeDevelopment

Kill brick

Jun 13th, 2023 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. --Variables--
  2. local Brick = script.Parent
  3. --End--
  4.  
  5. --Code--
  6. local function PlayerTouched(Part)
  7. local Parent = Part.Parent
  8. if game.Players:GetPlayerFromCharacter(Parent) then
  9. Parent.Humanoid.Health = 0
  10. end
  11. end
  12.  
  13. Brick.Touched:connect(PlayerTouched)
Add Comment
Please, Sign In to add comment