Advertisement
Guest User

Tix Giver

a guest
Jun 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. m = Instance.new("Model",game.Workspace)
  2. m.Name = "Tix Giver"
  3. h = Instance.new("Humanoid",m)
  4. h.MaxHealth = 0
  5. h.Health = 0
  6. p = Instance.new("Part")
  7. p.Size = Vector3.new(1,1,1)
  8. p.BrickColor = BrickColor.new("Bright yellow")
  9. p.Name = "Head"
  10. p.Parent = m
  11. p.Anchored = true
  12.  
  13. p.Touched:connect(function(hit)
  14. if not hit.Parent:findFirstChild("Humanoid") then return end
  15. hit.Parent.Humanoid.Health = 0
  16. end)
  17.  
  18. p.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement