InfMods

easy if player touches part they die script

Sep 24th, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. step 1: create a part
  2. step 2: add local script
  3.  
  4. step 3:
  5. paste script into local script
  6.  
  7.  
  8. for _,i in pairs(workspace.death:GetChildren()) do
  9. i.BrickColor = BrickColor.Red()
  10. i.Touched:connect(function(hit)
  11. if (game.Players:FindFirstChild(hit.Parent.Name)) then
  12. hit.Parent.Head:Destroy()
  13. end
  14. end)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment