Advertisement
jjsnappy

Retail Tycoon 2

Feb 2nd, 2022
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.50 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("Retail Tycoon 2")
  3. local b = w:CreateFolder("AutoFarm")
  4. local f = w:CreateFolder("Vehicle")
  5. local g = w:CreateFolder("Character")
  6. local e = w:CreateFolder("Mix")
  7. local u = w:CreateFolder("Credits")
  8. SelectedItemToPlace = ""
  9. Items = {}
  10. for i,v in pairs(game:GetService("ReplicatedStorage").Sellables:GetChildren()) do
  11. for i,v1 in pairs(v.Variants:GetChildren()) do
  12. table.insert(Items,v1.Name)
  13. end
  14. end
  15.  
  16. b:Dropdown("Select Item",Items,true,function(a)
  17. SelectedItemToPlace = a
  18. end)
  19.  
  20. b:Toggle("Place Item",function(bool)
  21. shared.toggle = bool
  22. Place = bool
  23. end)
  24.  
  25. b:Button("Place All Items (Buggy)",function()
  26. Plot = nil
  27. for i,v in pairs(game:GetService("Workspace"):GetDescendants()) do
  28. if v.ClassName == "TextLabel" then
  29. if tostring(v.Name) == tostring("StoreName") then
  30. if tostring(v.Text) == tostring(game:GetService("Players").LocalPlayer.Name.."'s Store") then
  31. Plot = v.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name
  32. end
  33. end
  34. end
  35. end
  36. for i,v in pairs(game:GetService("Workspace").Map.Plots[Plot].Objects:GetDescendants()) do
  37. if string.find(v.Name,"Shelves") then
  38. for i,v1 in pairs(game:GetService("ReplicatedStorage").Sellables:GetChildren()) do
  39. for i,v2 in pairs(v1.Variants:GetChildren()) do
  40. pcall(function()
  41. game:GetService("ReplicatedStorage").Remotes.StockShelfFunction:InvokeServer(v,tostring(v2.Name))
  42. end)
  43. end
  44. end
  45. end
  46. end
  47. end)
  48.  
  49. f:Button("Tp Base",function()
  50. Plot = nil
  51. for i,v in pairs(game:GetService("Workspace"):GetDescendants()) do
  52. if v.ClassName == "TextLabel" then
  53. if tostring(v.Name) == tostring("StoreName") then
  54. if tostring(v.Text) == tostring(game:GetService("Players").LocalPlayer.Name.."'s Store") then
  55. Plot = v.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name
  56. end
  57. end
  58. end
  59. end
  60. for i,v in pairs(game:GetService("Workspace").PlayerVehicles["Vehicle_"..game:GetService("Players").LocalPlayer.Name]:GetChildren()) do
  61. if v.ClassName == "MeshPart" or v.ClassName == "Part" then
  62. v.CFrame = CFrame.new(game:GetService("Workspace").Map.Plots[Plot].Sign.SignBase.CFrame.Position + Vector3.new(-30,10,0))
  63. end
  64. end
  65. end)
  66.  
  67. f:Button("Tp Market",function()
  68. for i,v in pairs(game:GetService("Workspace").PlayerVehicles["Vehicle_"..game:GetService("Players").LocalPlayer.Name]:GetChildren()) do
  69. if v.ClassName == "MeshPart" or v.ClassName == "Part" then
  70. for i,v1 in pairs(game:GetService("Workspace").Map.Landmarks["Loading Dock"]:GetDescendants()) do
  71. if v1.Name == "Detector" then
  72. v.CFrame = CFrame.new(v1.CFrame.Position + Vector3.new(-10,0,0))
  73. end
  74. end
  75. end
  76. end
  77. end)
  78.  
  79. f:Button("Unload Truck",function()
  80. Plot = nil
  81. for i,v in pairs(game:GetService("Workspace"):GetDescendants()) do
  82. if v.ClassName == "TextLabel" then
  83. if tostring(v.Name) == tostring("StoreName") then
  84. if tostring(v.Text) == tostring(game:GetService("Players").LocalPlayer.Name.."'s Store") then
  85. Plot = v.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name
  86. end
  87. end
  88. end
  89. end
  90. for i,v in pairs(game:GetService("Workspace").PlayerVehicles["Vehicle_"..game:GetService("Players").LocalPlayer.Name]:GetChildren()) do
  91. if v.ClassName == "MeshPart" or v.ClassName == "Part" then
  92. for i,v1 in pairs(game:GetService("Workspace").Map.Plots[Plot]:GetDescendants()) do
  93. if string.find(v1.Name,"Door") then
  94. if v1:FindFirstChild("Base") then
  95. spawn(function()
  96. v1.Base.CanCollide = false
  97. v.CFrame = CFrame.new(v1.Base.CFrame.Position + Vector3.new(0,0,0))
  98. end)
  99. end
  100. end
  101. end
  102. end
  103. end
  104. wait(1)
  105. game:GetService("ReplicatedStorage").Remotes.UnloadVehicle:InvokeServer()
  106. end)
  107.  
  108. g:Button("Tp Base",function()
  109. Plot = nil
  110. for i,v in pairs(game:GetService("Workspace"):GetDescendants()) do
  111. if v.ClassName == "TextLabel" then
  112. if tostring(v.Name) == tostring("StoreName") then
  113. if tostring(v.Text) == tostring(game:GetService("Players").LocalPlayer.Name.."'s Store") then
  114. Plot = v.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name
  115. end
  116. end
  117. end
  118. end
  119. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Workspace").Map.Plots[Plot].Sign.SignBase.CFrame.Position + Vector3.new(-30,10,0))
  120. end)
  121.  
  122. g:Button("Tp Market",function()
  123. for i,v in pairs(game:GetService("Workspace").Map.Landmarks["Loading Dock"]:GetDescendants()) do
  124. if v.Name == "Detector" then
  125. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.CFrame.Position + Vector3.new(0,0,0))
  126. end
  127. end
  128. end)
  129.  
  130. e:Toggle("AntiAfk",function(bool)
  131. shared.toggle = bool
  132. AntiAfk = bool
  133. end)
  134.  
  135. --Credits
  136. u:Label("Youtube Subs: "..getgenv().Subscribers,{
  137. TextSize = 25;
  138. TextColor = Color3.fromRGB(255,255,255);
  139. BgColor = Color3.fromRGB(69,69,69)
  140. })
  141.  
  142. u:Label("Discord Members: "..getgenv().TotalMembers,{
  143. TextSize = 25;
  144. TextColor = Color3.fromRGB(255,255,255);
  145. BgColor = Color3.fromRGB(69,69,69)
  146. })
  147.  
  148. u:Label("Pastebin Views: "..getgenv().TotalPastebinViews,{
  149. TextSize = 25;
  150. TextColor = Color3.fromRGB(255,255,255);
  151. BgColor = Color3.fromRGB(69,69,69)
  152. })
  153.  
  154. u:Button("Discord Server",function()
  155. setclipboard(getgenv().Discord)
  156. end)
  157.  
  158. u:Button("Youtube Channel",function()
  159. setclipboard(getgenv().Youtube)
  160. end)
  161.  
  162. u:Button("Pastebin Page",function()
  163. setclipboard(getgenv().Pastebin)
  164. end)
  165.  
  166. u:Button(getgenv().Username,function()
  167. setclipboard(getgenv().Username)
  168. end)
  169.  
  170. game:GetService('RunService').Stepped:connect(function()
  171. spawn(function()
  172. if AntiAfk == true then
  173. local bb=game:service'VirtualUser'
  174. bb:CaptureController()
  175. bb:ClickButton2(Vector2.new())
  176. end
  177. end)
  178. end)
  179.  
  180. while wait() do
  181. if Place == true then
  182. Plot = nil
  183. for i,v in pairs(game:GetService("Workspace"):GetDescendants()) do
  184. if v.ClassName == "TextLabel" then
  185. if tostring(v.Name) == tostring("StoreName") then
  186. if tostring(v.Text) == tostring(game:GetService("Players").LocalPlayer.Name.."'s Store") then
  187. Plot = v.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name
  188. end
  189. end
  190. end
  191. end
  192. for i,v in pairs(game:GetService("Workspace").Map.Plots[Plot].Objects:GetDescendants()) do
  193. if string.find(v.Name,"Shelves") then
  194. pcall(function()
  195. game:GetService("ReplicatedStorage").Remotes.StockShelfFunction:InvokeServer(v,SelectedItemToPlace)
  196. end)
  197. end
  198. end
  199. end
  200. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement