Advertisement
Josemmoya

goeatgarbage

Jan 27th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local goeatgarbage = Instance.new("Part")
  2. goeatgarbage.Name = "oh yeah yeah"
  3. goeatgarbage.BrickColor = BrickColor.new("Institutional White")
  4. -----------------END-------------------------------------------
  5. script.Parent = goeatgarbage
  6.  
  7. function onTouch(part)
  8. local humanoid = part.Parent:FindFirstChild("Humanoid")
  9. if (humanoid ~= nil) then -- if a humanoid exists, then
  10. humanoid.Health = 0 -- damage the humanoid
  11. end
  12. end
  13.  
  14. script.Parent.Touched:connect(onTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement