Advertisement
Vzurxy

Tool Service [Lua]

Aug 22nd, 2018
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. local keepitem = false -- If you make it true then when you save, you still have tools in your backpack.
  2. local ToolThing = Instance.new("ScreenGui")
  3. local BG = Instance.new("Frame")
  4. local BGDETAIL = Instance.new("Frame")
  5. local Info = Instance.new("TextLabel")
  6. local save = Instance.new("TextButton")
  7. local drop = Instance.new("TextButton")
  8. local get = Instance.new("TextButton")
  9. local exit = Instance.new("ImageLabel")
  10.  
  11. ToolThing.Name = "ToolThing"
  12. ToolThing.Parent = game.CoreGui
  13.  
  14. BG.Name = "BG"
  15. BG.Parent = ToolThing
  16. BG.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  17. BG.BorderColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  18. BG.Position = UDim2.new(0.770731688, 0, 0.573705196, 0)
  19. BG.Size = UDim2.new(0, 211, 0, 201)
  20. BG.Active = true
  21. BG.Draggable = true
  22.  
  23. BGDETAIL.Name = "BGDETAIL"
  24. BGDETAIL.Parent = BG
  25. BGDETAIL.BackgroundColor3 = Color3.new(0.956863, 0, 0)
  26. BGDETAIL.BorderColor3 = Color3.new(0.392157, 0, 0)
  27. BGDETAIL.Size = UDim2.new(0, 211, 0, 18)
  28.  
  29. Info.Name = "Info"
  30. Info.Parent = BGDETAIL
  31. Info.BackgroundColor3 = Color3.new(1, 1, 1)
  32. Info.BackgroundTransparency = 1
  33. Info.Size = UDim2.new(0, 211, 0, 18)
  34. Info.Font = Enum.Font.SourceSansBold
  35. Info.Text = "Tool Utility"
  36. Info.TextColor3 = Color3.new(1, 1, 1)
  37. Info.TextScaled = true
  38. Info.TextSize = 14
  39. Info.TextWrapped = true
  40.  
  41. save.Name = "save"
  42. save.Parent = BG
  43. save.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  44. save.BorderColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  45. save.Position = UDim2.new(0.137440756, 0, 0.154228851, 0)
  46. save.Size = UDim2.new(0, 152, 0, 42)
  47. save.Font = Enum.Font.SourceSans
  48. save.Text = "Save Tool"
  49. save.TextColor3 = Color3.new(1, 1, 1)
  50. save.TextScaled = true
  51. save.TextSize = 14
  52. save.TextWrapped = true
  53.  
  54. drop.Name = "drop"
  55. drop.Parent = BG
  56. drop.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  57. drop.BorderColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  58. drop.Position = UDim2.new(0.137440756, 0, 0.393034816, 0)
  59. drop.Size = UDim2.new(0, 152, 0, 42)
  60. drop.Font = Enum.Font.SourceSans
  61. drop.Text = "Drop Tool"
  62. drop.TextColor3 = Color3.new(1, 1, 1)
  63. drop.TextScaled = true
  64. drop.TextSize = 14
  65. drop.TextWrapped = true
  66.  
  67. get.Name = "get"
  68. get.Parent = BG
  69. get.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  70. get.BorderColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  71. get.Position = UDim2.new(0.137440756, 0, 0.636815906, 0)
  72. get.Size = UDim2.new(0, 152, 0, 42)
  73. get.Font = Enum.Font.SourceSans
  74. get.Text = "Retrieve Tools"
  75. get.TextColor3 = Color3.new(1, 1, 1)
  76. get.TextScaled = true
  77. get.TextSize = 14
  78. get.TextWrapped = true
  79.  
  80. exit.Name = "exit"
  81. exit.Parent = BG
  82. exit.BackgroundColor3 = Color3.new(0.956863, 0, 0)
  83. exit.BackgroundTransparency = 1
  84. exit.BorderColor3 = Color3.new(0.392157, 0, 0)
  85. exit.Size = UDim2.new(0, 18, 0, 18)
  86. exit.Image = "rbxassetid://1904135741"
  87.  
  88. exit.MouseButton1Down:connect(function()
  89. ToolThing:Destroy()
  90. end)
  91.  
  92. get.MouseButton1Down:connect(function()
  93. for _,v in pairs(game.Players.LocalPlayer:GetChildren()) do
  94. if (v:IsA("Tool")) then
  95. v.Parent = game.Players.LocalPlayer.Backpack
  96. end
  97. end
  98. end)
  99.  
  100. save.MouseButton1Down:connect(function()
  101. for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  102. if (v:IsA("Tool")) then
  103. v.Parent = game.Players.LocalPlayer
  104. if keepitem = true then
  105. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  106. end
  107. end
  108. end
  109. end)
  110.  
  111. drop.MouseButton1Down:connect(function()
  112. for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  113. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
  114. v.Parent = workspace
  115. end
  116. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement