Advertisement
Mateusz667

Untitled

Apr 4th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. function poopy()
  2. row = 1
  3. for i,v in pairs(workspace:GetChildren()) do
  4. if v.Name ~= "Terrain" and v.Name ~= "Camera" then
  5. local button =Instance.new("TextButton")
  6. button.Parent = script.Parent.Parent
  7. button.Name = v.Name
  8. button.Text = v.Name
  9. button.BackgroundColor = BrickColor.new("Bright green")
  10. button.BackgroundTransparency = 0.5
  11. button.Size = UDim2.new(0, 25, 0, 35)
  12. button.Position = UDim2.new(0, 25, 0, 33*row)
  13. row = row+1
  14. function poopyo()
  15. v:remove()
  16. button:remove()
  17. end
  18.  
  19. button.MouseButton1Down:connect(poopyo)
  20. end
  21. end
  22. end
  23.  
  24. script.Parent.MouseButton1Down:connect(poopy)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement