Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Name = "hi"
- A = Instance.new("Part", Workspace)
- A.Name = "A"
- A.Locked = true
- A.Anchored = true
- c = script:Clone()
- c.Parent = game.Workspace.A
- A.Size = Vector3.new(20,0.5,24)
- A.BrickColor=BrickColor.new("Maroon")
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if touch~=1 then
- touch=1
- wait(0.1)
- local place=game.Players:findFirstChild(part.Parent.Name)
- if place~=nil then
- place:remove()
- end
- touch=0
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement