Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ScreenGui = Instance.new("ScreenGui")
- ScrollingFrame = Instance.new("ScrollingFrame")
- but = Instance.new("TextButton")
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ResetOnSpawn = false
- ScrollingFrame.Parent = ScreenGui
- ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- ScrollingFrame.BackgroundTransparency = 0.69999998807907
- ScrollingFrame.Position = UDim2.new(0.135553837, 0, 0.158125922, 0)
- ScrollingFrame.Size = UDim2.new(0, 268, 0, 406)
- ScrollingFrame.Draggable = true
- ScrollingFrame.Active = true
- but.Name = "but"
- but.Parent = ScreenGui
- but.BackgroundColor3 = Color3.new(1, 1, 1)
- but.Position = UDim2.new(10, 0, 10, 0)
- but.Size = UDim2.new(0, 200, 0, 50)
- but.Font = Enum.Font.SourceSans
- but.FontSize = Enum.FontSize.Size14
- but.TextColor3 = Color3.new(0, 0, 0)
- but.TextSize = 14
- local located
- function list(location)
- ScrollingFrame:ClearAllChildren()
- b = but:Clone()
- b.Position = UDim2.new(0, 0, 0, 0)
- b.Text = "Back"
- b.MouseButton1Down:connect(function()
- spawn(function()list(location.Parent)located = location.Parent end)
- end)
- bb = but:Clone()
- bb.Position = UDim2.new(0, 0, 0, 50)
- bb.Text = "Delete Object"
- bb.MouseButton1Down:connect(function()
- pcall(function()location.Locked = false end)
- spawn(function()list(location.Parent)located = location.Parent end)
- game.Players.LocalPlayer.Backpack.Delete.delete:FireServer(location)
- end)
- bbb= but:Clone()
- bbb.Position = UDim2.new(0, 0, 0, 100)
- bbb.Text = "Close"
- bbb.MouseButton1Down:connect(function()
- ScreenGui:Destroy()
- end)
- b.Parent = ScrollingFrame
- bb.Parent = ScrollingFrame
- bbb.Parent = ScrollingFrame
- for i,v in pairs (location:GetChildren()) do
- loc = but:Clone()
- loc.Parent = nil
- loc.Position = UDim2.new(0, 0, 0, i * 50 + 100)
- loc.Text = v.Name
- loc.Name = v.Name
- loc.MouseButton1Down:connect(function()
- list(v)
- end)
- loc.Parent = ScrollingFrame
- end
- end
- list(game)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement