SHOW:
|
|
- or go back to the newest paste.
1 | m = Instance.new("Model",game.Workspace) | |
2 | - | m.Name = "Robux Giver" |
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 green") |
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) |