Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local goeatgarbage = Instance.new("Part")
- goeatgarbage.Name = "oh yeah yeah"
- goeatgarbage.BrickColor = BrickColor.new("Institutional White")
- -----------------END-------------------------------------------
- script.Parent = goeatgarbage
- function onTouch(part)
- local humanoid = part.Parent:FindFirstChild("Humanoid")
- if (humanoid ~= nil) then -- if a humanoid exists, then
- humanoid.Health = 0 -- damage the humanoid
- end
- end
- script.Parent.Touched:connect(onTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement