Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local keepitem = false -- If you make it true then when you save, you still have tools in your backpack.
- local ToolThing = Instance.new("ScreenGui")
- local BG = Instance.new("Frame")
- local BGDETAIL = Instance.new("Frame")
- local Info = Instance.new("TextLabel")
- local save = Instance.new("TextButton")
- local drop = Instance.new("TextButton")
- local get = Instance.new("TextButton")
- local exit = Instance.new("ImageLabel")
- ToolThing.Name = "ToolThing"
- ToolThing.Parent = game.CoreGui
- BG.Name = "BG"
- BG.Parent = ToolThing
- BG.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- BG.BorderColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- BG.Position = UDim2.new(0.770731688, 0, 0.573705196, 0)
- BG.Size = UDim2.new(0, 211, 0, 201)
- BG.Active = true
- BG.Draggable = true
- BGDETAIL.Name = "BGDETAIL"
- BGDETAIL.Parent = BG
- BGDETAIL.BackgroundColor3 = Color3.new(0.956863, 0, 0)
- BGDETAIL.BorderColor3 = Color3.new(0.392157, 0, 0)
- BGDETAIL.Size = UDim2.new(0, 211, 0, 18)
- Info.Name = "Info"
- Info.Parent = BGDETAIL
- Info.BackgroundColor3 = Color3.new(1, 1, 1)
- Info.BackgroundTransparency = 1
- Info.Size = UDim2.new(0, 211, 0, 18)
- Info.Font = Enum.Font.SourceSansBold
- Info.Text = "Tool Utility"
- Info.TextColor3 = Color3.new(1, 1, 1)
- Info.TextScaled = true
- Info.TextSize = 14
- Info.TextWrapped = true
- save.Name = "save"
- save.Parent = BG
- save.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- save.BorderColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- save.Position = UDim2.new(0.137440756, 0, 0.154228851, 0)
- save.Size = UDim2.new(0, 152, 0, 42)
- save.Font = Enum.Font.SourceSans
- save.Text = "Save Tool"
- save.TextColor3 = Color3.new(1, 1, 1)
- save.TextScaled = true
- save.TextSize = 14
- save.TextWrapped = true
- drop.Name = "drop"
- drop.Parent = BG
- drop.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- drop.BorderColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- drop.Position = UDim2.new(0.137440756, 0, 0.393034816, 0)
- drop.Size = UDim2.new(0, 152, 0, 42)
- drop.Font = Enum.Font.SourceSans
- drop.Text = "Drop Tool"
- drop.TextColor3 = Color3.new(1, 1, 1)
- drop.TextScaled = true
- drop.TextSize = 14
- drop.TextWrapped = true
- get.Name = "get"
- get.Parent = BG
- get.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- get.BorderColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- get.Position = UDim2.new(0.137440756, 0, 0.636815906, 0)
- get.Size = UDim2.new(0, 152, 0, 42)
- get.Font = Enum.Font.SourceSans
- get.Text = "Retrieve Tools"
- get.TextColor3 = Color3.new(1, 1, 1)
- get.TextScaled = true
- get.TextSize = 14
- get.TextWrapped = true
- exit.Name = "exit"
- exit.Parent = BG
- exit.BackgroundColor3 = Color3.new(0.956863, 0, 0)
- exit.BackgroundTransparency = 1
- exit.BorderColor3 = Color3.new(0.392157, 0, 0)
- exit.Size = UDim2.new(0, 18, 0, 18)
- exit.Image = "rbxassetid://1904135741"
- exit.MouseButton1Down:connect(function()
- ToolThing:Destroy()
- end)
- get.MouseButton1Down:connect(function()
- for _,v in pairs(game.Players.LocalPlayer:GetChildren()) do
- if (v:IsA("Tool")) then
- v.Parent = game.Players.LocalPlayer.Backpack
- end
- end
- end)
- save.MouseButton1Down:connect(function()
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool")) then
- v.Parent = game.Players.LocalPlayer
- if keepitem = true then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- end
- end)
- drop.MouseButton1Down:connect(function()
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
- v.Parent = workspace
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement