Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function poopy()
- row = 1
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name ~= "Terrain" and v.Name ~= "Camera" then
- local button =Instance.new("TextButton")
- button.Parent = script.Parent.Parent
- button.Name = v.Name
- button.Text = v.Name
- button.BackgroundColor = BrickColor.new("Bright green")
- button.BackgroundTransparency = 0.5
- button.Size = UDim2.new(0, 25, 0, 35)
- button.Position = UDim2.new(0, 25, 0, 33*row)
- row = row+1
- function poopyo()
- v:remove()
- button:remove()
- end
- button.MouseButton1Down:connect(poopyo)
- end
- end
- end
- script.Parent.MouseButton1Down:connect(poopy)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement