Advertisement
xloyed

Untitled

Aug 15th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | None | 0 0
  1. --[[
  2.  
  3. Welcome to AutoRob V1.1!
  4.  
  5. AutoRob is a little grinding tool developed by PlutoGFX to automatically
  6. generate money. It's pretty simple on paper:
  7.  
  8. THE BANK OPENS
  9. -> Enter the bank
  10. -> Place the explosives
  11. -> Collect the money
  12. -> Escape
  13.  
  14. This script attempts to automate that process, leaving you with plenty of
  15. spare money in your pockets! I hope that you find this useful and tune
  16. in for future updates!
  17.  
  18. \/ SCROLL DOWN FOR CHANGELOG \/
  19.  
  20. CHANGELOG
  21.  
  22. V1
  23. +Created AutoRob
  24. +Successfully Automated Bank Robbery
  25.  
  26. V1.1
  27. +Optimized Writing to The 'Status' TextLabel
  28. +Detects If Player is Criminal / Prisoner, and NOT Police
  29. +Automatically Escapes If Police Get Too Close
  30. -Removed The "Placing Dynamite" Portion
  31. =Left The "Placing Dynamite" Portion Commented
  32.  
  33. V1.2
  34. TODO: Detect If Player is Criminal / Prisoner, and NOT Police
  35. TODO: Check For Guards Entering the Bank to Escape Quickly
  36. TODO: Check If Automated Process is Interrupted
  37. TODO: Basic Bug Fixes
  38. TODO: Optimize. Optimize. Optimize.
  39.  
  40. ]]
  41.  
  42.  
  43. function Get(model)
  44. return game:GetService'Workspace'[tostring(model)]:GetChildren()[1].Extra:FindFirstChild'Sign'.Decal;
  45. end
  46.  
  47. function goto(x, y, z)
  48. game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x, y, z)
  49. end
  50.  
  51. function Scan(Start, End)
  52. Result = {}
  53. Box = Region3.new(Start, End)
  54. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Box,nil,100)) do
  55. if Part.Parent ~= nil then
  56. if Game:GetService("Players"):findFirstChild(Part.Parent.Name) then
  57. if Part.Parent.Humanoid ~= nil then
  58. table.insert(Result, Game:GetService("Players"):WaitForChild(Part.Parent.Name))
  59. end
  60. end
  61. end
  62. end
  63. return Result
  64. end
  65.  
  66. local toggle = false;
  67.  
  68. local PlutoGUI = Instance.new("ScreenGui")
  69. PlutoGUI.Name = "PlutoGUI"
  70. PlutoGUI.Parent = game.CoreGui
  71. PlutoGUI.ResetOnSpawn = false
  72. -------
  73. local Main = Instance.new("Frame")
  74. Main.BackgroundColor3 = Color3.new(0.647059, 0.643137, 0.654902)
  75. Main.BorderColor3 = Color3.new(1, 1, 1)
  76. Main.BorderSizePixel = 2
  77. Main.Position = UDim2.new(0, 22, 0, 500)
  78. Main.Size = UDim2.new(0, 200, 0, 150)
  79. Main.ClipsDescendants = true
  80. Main.Draggable = true
  81. Main.Parent = PlutoGUI
  82. -------
  83. local Title = Instance.new("TextLabel")
  84. Title.Active = true
  85. Title.BorderColor3 = Color3.new(1, 1, 1)
  86. Title.BorderSizePixel = 2
  87. Title.Name = "Title"
  88. Title.Size = UDim2.new(0, 200, 0, 25)
  89. Title.Font = Enum.Font.Legacy
  90. Title.FontSize = Enum.FontSize.Size10
  91. Title.Text = "PlutoGFX's AutoRob | OFF"
  92. Title.Parent = Main
  93. -------
  94. local Status = Instance.new("TextLabel")
  95. Status.Active = true
  96. Status.BackgroundTransparency = 1
  97. Status.BorderColor3 = Color3.new(1, 1, 1)
  98. Status.BorderSizePixel = 2
  99. Status.Name = "Status"
  100. Status.Position = UDim2.new(0, 0, 0, 30)
  101. Status.Size = UDim2.new(0, 200, 0, 50)
  102. Status.Font = Enum.Font.Legacy
  103. Status.FontSize = Enum.FontSize.Size10
  104. Status.Text = "Currently Off"
  105. Status.Parent = Main
  106. -------
  107. local Toggle = Instance.new("TextButton")
  108. Toggle.Active = true
  109. Toggle.BorderColor3 = Color3.new(1, 1, 1)
  110. Toggle.Name = "Toggle"
  111. Toggle.Position = UDim2.new(0, 25, 0, 90)
  112. Toggle.Selectable = true
  113. Toggle.Size = UDim2.new(0, 150, 0, 50)
  114. Toggle.Style = Enum.ButtonStyle.Custom
  115. Toggle.Font = Enum.Font.Legacy
  116. Toggle.FontSize = Enum.FontSize.Size14
  117. Toggle.Text = "Turn ON"
  118. Toggle.Parent = Main
  119. Toggle.MouseButton1Down:connect(function()
  120. if(toggle==true) then
  121. toggle = false;
  122. Title.Text = "PlutoGFX's AutoRob | OFF"
  123. Status.Text = "Currently Off"
  124. Toggle.Text = "Turn ON"
  125. else
  126. if(game:GetService('Teams').Police == game:GetService('Players').LocalPlayer.Team) then
  127. Status.Text = "Join Prisoner Team"
  128. wait(3)
  129. Status.Text = "Currently Off"
  130. return
  131. end
  132. toggle = true;
  133. Title.Text = "PlutoGFX's AutoRob | ON"
  134. Status.Text = "Waiting..."
  135. Toggle.Text = "Turn OFF"
  136. end
  137. end)
  138.  
  139. print("\n\n-------------------------\nAutoRob V1 by PlutoGFX loaded!\n-------------------------\n\n");
  140. local bank = Get('Banks')
  141.  
  142. bank.Changed:connect(function(prop)
  143. if(toggle) then
  144. if prop == 'Transparency' then
  145. if bank.Transparency ~= 0 then
  146. Status.Text = "Bank is Open"
  147. wait(3)
  148. Status.Text = "Triggering Alarm"
  149. if(toggle) then goto(42, 18, 850) end
  150. wait(3)
  151. --Status.Text = "Placing Dynamite"
  152. --if(toggle) then goto(32, 2.6, 818.5) end
  153. --wait(15)
  154. Status.Text = "Looting the Bank"
  155. if(toggle) then goto(23, 0.5, 801.5) end
  156. local i = 0
  157. while(i<6) do
  158. wait(5)
  159. area = Scan(Vector3.new(30, 3.5, 825), Vector3.new(100.5, 0.5, 808))
  160. for i,v in pairs(area) do
  161. if(game:GetService('Teams').Police == v.Team) then
  162. i = 6
  163. end
  164. print(v.Name)
  165. end
  166. i = i + 1
  167. end
  168. Status.Text = "Escaping"
  169. if(toggle) then goto(226.5, 18, 1585.5) end
  170. wait(3)
  171. Status.Text = "Completed Cycle!"
  172. wait(3)
  173. Status.Text = "Waiting..."
  174. end
  175. end
  176. end
  177. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement