Advertisement
sina4

Untitled

Oct 27th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. script.Name = "hi"
  2. A = Instance.new("Part", Workspace)
  3. A.Name = "A"
  4. A.Locked = true
  5. A.Anchored = true
  6. c = script:Clone()
  7. c.Parent = game.Workspace.A
  8. A.Size = Vector3.new(20,0.5,24)
  9. A.BrickColor=BrickColor.new("Maroon")
  10.  
  11.  
  12.  
  13.  
  14. function onTouched(part)
  15. if part.Parent ~= nil then
  16. local h = part.Parent:findFirstChild("Humanoid")
  17. if h~=nil then
  18. if touch~=1 then
  19. touch=1
  20. wait(0.1)
  21. local place=game.Players:findFirstChild(part.Parent.Name)
  22. if place~=nil then
  23. place:remove()
  24. end
  25. touch=0
  26. end
  27.  
  28. end
  29. end
  30. end
  31.  
  32. script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement