Facebook
From HAROUN, 4 Years ago, written in JavaScript.
This paste is a reply to jailbreak autorob from HAROUN - view diff
Embed
Download Paste or View Raw
Hits: 245
  1. local doJewl=true
  2. local doBank=true
  3. local doTrain=true
  4. local green,red=Color3.fromRGB(0,240,0),Color3.fromRGB(240,0,0)
  5. local maxSpeed = 375 --max studs/s by anti exploit
  6. local vaultMaxSecs = 999
  7. local jewlAllowCrims = false
  8. --interface
  9. local gui = Instance.new("ScreenGui")
  10. gui.ResetOnSpawn=false
  11. gui.Name = "AutoRob"
  12.  
  13. local main = Instance.new("Frame",gui)
  14. main.BackgroundTransparency=0.02
  15. main.BackgroundColor3=Color3.fromRGB(0,50,100)
  16. main.Active=true
  17. main.Draggable=true
  18. main.Position=UDim2.new(0.2,0,0.2,0)
  19. main.Size=UDim2.new(0,350,0,234)
  20. main.ZIndex=3
  21. local indent = Instance.new("Frame",main)
  22. indent.BackgroundTransparency=1
  23. indent.Position=UDim2.new(0,25,0,25)
  24. indent.Size=UDim2.new(1,-50,1,-50)
  25. local CloseBtn = Instance.new("TextButton",main)
  26. CloseBtn.BackgroundTransparency=1
  27. CloseBtn.Position=UDim2.new(1,-20,0,0)
  28. CloseBtn.Size=UDim2.new(0,20,0,20)
  29. CloseBtn.Font=Enum.Font.SourceSansBold
  30. CloseBtn.Text="X"
  31. CloseBtn.TextScaled=true
  32. CloseBtn.TextColor3=Color3.new(1,1,1)
  33. CloseBtn.TextStrokeTransparency=0.7
  34. local CogBtn = Instance.new("ImageButton",main)
  35. CogBtn.BackgroundTransparency=1
  36. CogBtn.Position=UDim2.new(0,0,0,0)
  37. CogBtn.Size=UDim2.new(0,20,0,20)
  38. CogBtn.Image="rbxassetid://135740223"
  39. local AbortBtn = Instance.new("TextButton",indent)
  40. AbortBtn.Style=Enum.ButtonStyle.RobloxRoundButton
  41. AbortBtn.AutoButtonColor=false
  42. AbortBtn.Position=UDim2.new(0.25,0,0.6,-5)
  43. AbortBtn.Size=UDim2.new(0.5,0,0.185,0)
  44. AbortBtn.Font=Enum.Font.SourceSans
  45. AbortBtn.Text="ABORT"
  46. AbortBtn.TextScaled=false
  47. AbortBtn.TextSize=25
  48. local JewlBtn = Instance.new("TextButton",indent)
  49. JewlBtn.BackgroundColor3=doJewl and green or red
  50. JewlBtn.Position=UDim2.new(0.8)
  51. JewlBtn.Size=UDim2.new(0.2,0,0.185,-5)
  52. JewlBtn.Font=Enum.Font.SourceSansSemibold
  53. JewlBtn.Text=doJewl and "YES" or "NO"
  54. JewlBtn.TextScaled=true
  55. local BankBtn =  Instance.new("TextButton",indent)
  56. BankBtn.BackgroundColor3=doBank and green or red
  57. BankBtn.Position=UDim2.new(0.8,0,0.2,0)
  58. BankBtn.Size=UDim2.new(0.2,0,0.185,-5)
  59. BankBtn.Font=Enum.Font.SourceSansSemibold
  60. BankBtn.Text=doBank and "YES" or "NO"
  61. BankBtn.TextScaled=true
  62. local TrainBtn =  Instance.new("TextButton",indent)
  63. TrainBtn.BackgroundColor3=doTrain and green or red
  64. TrainBtn.Position=UDim2.new(0.8,0,0.4,0)
  65. TrainBtn.Size=UDim2.new(0.2,0,0.185,-5)
  66. TrainBtn.Font=Enum.Font.SourceSansSemibold
  67. TrainBtn.Text=doTrain and "YES" or "NO"
  68. TrainBtn.TextScaled=true
  69. local lbl1 = Instance.new("TextLabel",indent)
  70. lbl1.BackgroundTransparency=1
  71. lbl1.Position=UDim2.new(0,0,0,-5)
  72. lbl1.Size=UDim2.new(0.8,0,0.185,0)
  73. lbl1.Font=Enum.Font.SourceSans
  74. lbl1.Text="Auto Rob Jewelry:"
  75. lbl1.TextScaled=true
  76. lbl1.TextColor3=Color3.new(1,1,1)
  77. lbl1.TextStrokeTransparency=0.8
  78. local lbl2 = Instance.new("TextLabel",indent)
  79. lbl2.BackgroundTransparency=1
  80. lbl2.Position=UDim2.new(0,0,0.2,-7)
  81. lbl2.Size=UDim2.new(0.8,0,0.185,0)
  82. lbl2.Font=Enum.Font.SourceSans
  83. lbl2.Text="Auto Rob Bank:"
  84. lbl2.TextScaled=true
  85. lbl2.TextColor3=Color3.new(1,1,1)
  86. lbl2.TextStrokeTransparency=0.8
  87. local lbl3 = Instance.new("TextLabel",indent)
  88. lbl3.BackgroundTransparency=1
  89. lbl3.Position=UDim2.new(0,0,0.4,-7)
  90. lbl3.Size=UDim2.new(0.8,0,0.185,0)
  91. lbl3.Font=Enum.Font.SourceSans
  92. lbl3.Text="Auto Rob Train:"
  93. lbl3.TextScaled=true
  94. lbl3.TextColor3=Color3.new(1,1,1)
  95. lbl3.TextStrokeTransparency=0.8
  96. local Status = Instance.new("TextLabel",indent)
  97. Status.BackgroundTransparency=0.25
  98. Status.BackgroundColor3=Color3.new(1,1,1)
  99. Status.Position=UDim2.new(0,0,0.8,0)
  100. Status.Size=UDim2.new(1,0,0.185,0)
  101. Status.Font=Enum.Font.Code
  102. Status.Text="Status:"
  103. Status.TextScaled=false
  104. Status.TextSize=15
  105. Status.TextXAlignment=Enum.TextXAlignment.Left
  106. local setsframe = Instance.new("Frame",main)
  107. setsframe.BackgroundTransparency=0.02
  108. setsframe.BackgroundColor3=Color3.new(.88,.88,.88)
  109. setsframe.BorderColor3=main.BackgroundColor3
  110. setsframe.BorderSizePixel=5
  111. setsframe.Position=UDim2.new(0,50,1,-70)
  112. setsframe.Size=UDim2.new(0,240,0,65)
  113. local setsoption1 = Instance.new("Frame",setsframe)
  114. setsoption1.BackgroundTransparency=1
  115. setsoption1.Size=UDim2.new(1,0,0.5,0)
  116. local indent1 = Instance.new("Frame",setsoption1)
  117. indent1.BackgroundTransparency=1
  118. indent1.Position=UDim2.new(0,5,0,5)
  119. indent1.Size=UDim2.new(1,-10,1,-10)
  120. local lbl4 = Instance.new("TextLabel",indent1)
  121. lbl4.BackgroundTransparency=1
  122. lbl4.Size=UDim2.new(0.8,0,1,0)
  123. lbl4.Font=Enum.Font.SourceSans
  124. lbl4.Text="Max Secs Inside Vaults"
  125. lbl4.TextScaled=true
  126. local MaxSecsBox = Instance.new("TextBox",indent1)
  127. MaxSecsBox.BackgroundColor3=Color3.new(.95,.95,.95)
  128. MaxSecsBox.Position=UDim2.new(0.83,0,0.2,0)
  129. MaxSecsBox.Size=UDim2.new(0,30,0,15)
  130. MaxSecsBox.Font=Enum.Font.Code
  131. MaxSecsBox.Text=tostring(vaultMaxSecs)
  132. MaxSecsBox.TextScaled=true
  133. local setsoption2 = Instance.new("Frame",setsframe)
  134. setsoption2.BackgroundTransparency=0.95
  135. setsoption2.BackgroundColor3=Color3.new()
  136. setsoption2.Position=UDim2.new(0,0,0.5,0)
  137. setsoption2.Size=UDim2.new(1,0,0.5,0)
  138. local indent2 = Instance.new("Frame",setsoption2)
  139. indent2.BackgroundTransparency=1
  140. indent2.Position=UDim2.new(0,5,0,5)
  141. indent2.Size=UDim2.new(1,-10,1,-10)
  142. local lbl5 = Instance.new("TextLabel",indent2)
  143. lbl5.BackgroundTransparency=1
  144. lbl5.Size=UDim2.new(0.8,0,1,0)
  145. lbl5.Font=Enum.Font.SourceSans
  146. lbl5.Text="Let Crims Enter Jewelry"
  147. lbl5.TextScaled=true
  148. local JewlSetBtn = Instance.new("TextButton",indent2)
  149. JewlSetBtn.BackgroundColor3=Color3.new(.95,.95,.95)
  150. JewlSetBtn.Position=UDim2.new(0.85,0,0.2,0)
  151. JewlSetBtn.Size=UDim2.new(0,20,0,15)
  152. JewlSetBtn.Font=Enum.Font.SourceSansSemibold
  153. JewlSetBtn.Text=jewlAllowCrims and "X" or ""
  154. JewlSetBtn.TextScaled=false
  155. JewlSetBtn.TextSize=20
  156.  
  157. gui.Parent = game.CoreGui
  158. for _,v in ipairs(main:GetChildren()) do
  159.         if v~=setsframe then v.ZIndex = 4 end
  160. end
  161. for _,v in ipairs(indent:GetChildren()) do
  162.         v.ZIndex = 5
  163. end
  164.  
  165. local player = game:GetService("Players").LocalPlayer
  166. local root
  167. local abort=false
  168. --gui code
  169. CloseBtn.MouseButton1Click:Connect(function() gui:Destroy() abort=true end)
  170. CloseBtn.MouseEnter:Connect(function() CloseBtn.TextColor3=red end)
  171. CloseBtn.MouseLeave:Connect(function() CloseBtn.TextColor3=Color3.new(1,1,1) end)
  172.  
  173. JewlBtn.MouseButton1Click:Connect(function()
  174.         doJewl = not doJewl
  175.         JewlBtn.BackgroundColor3=doJewl and green or red
  176.         JewlBtn.Text=doJewl and "YES" or "NO"
  177. end)
  178. BankBtn.MouseButton1Click:Connect(function()
  179.         doBank = not doBank
  180.         BankBtn.BackgroundColor3=doBank and green or red
  181.         BankBtn.Text=doBank and "YES" or "NO"
  182. end)
  183. TrainBtn.MouseButton1Click:Connect(function()
  184.         doTrain = not doTrain
  185.         TrainBtn.BackgroundColor3=doTrain and green or red
  186.         TrainBtn.Text=doTrain and "YES" or "NO"
  187. end)
  188. local function toggleCanAbort(bool)
  189.         AbortBtn.AutoButtonColor=bool
  190.         AbortBtn.Style=bool and "RobloxRoundDefaultButton" or "RobloxRoundButton"
  191. end
  192.  
  193. AbortBtn.MouseButton1Click:Connect(function()
  194.         if AbortBtn.AutoButtonColor==true then
  195.                 toggleCanAbort(false)
  196.                 local hit,p = workspace:FindPartOnRay(Ray.new(player.Character.Head.Position+Vector3.new(0,10,0),Vector3.new(0,20,0)))
  197.                 if hit then
  198.                         player.Character:MoveTo(p)
  199.                 else
  200.                         root.CFrame=root.CFrame+Vector3.new(-40,2,0)
  201.                 end
  202.                 abort=true
  203.                 AbortBtn.Text = "Aborted."
  204.                 wait(3)
  205.                 abort=false
  206.                 wait(7)
  207.                 AbortBtn.Text = "ABORT"
  208.                
  209.         end
  210. end)
  211. local function stprint(txt)
  212.         Status.Text = "Status: "..txt
  213. end
  214. local function strToNum(str)
  215.         return tonumber((tostring(str):gsub("[^%d]", "")))
  216. end
  217.  
  218. local tweenCogOut = game:GetService("TweenService"):Create(CogBtn,TweenInfo.new(0.3),{Rotation=135})
  219. local tweenCogIn = game:GetService("TweenService"):Create(CogBtn,TweenInfo.new(0.3),{Rotation=0})
  220. local cogOut = false
  221. CogBtn.MouseButton1Click:Connect(function()
  222.         cogOut = not cogOut
  223.         if cogOut then
  224.                 setsframe:TweenPosition(UDim2.new(0,50,1,0),nil,"Quart",0.3,true)
  225.                 tweenCogOut:Play()
  226.         else
  227.                 setsframe:TweenPosition(UDim2.new(0,50,1,-70),nil,"Quart",0.3,true)
  228.                 tweenCogIn:Play()
  229.         end
  230. end)
  231. MaxSecsBox:GetPropertyChangedSignal("Text"):Connect(function()
  232.         local num = strToNum(MaxSecsBox.Text),1,999
  233.         if num then
  234.                 num = math.clamp(num,1,999)
  235.                 vaultMaxSecs = num
  236.                 MaxSecsBox.Text = tostring(num)
  237.         else
  238.                 MaxSecsBox.Text = ''
  239.         end
  240. end)
  241. MaxSecsBox.FocusLost:Connect(function() MaxSecsBox.Text=tostring(vaultMaxSecs) end)
  242. JewlSetBtn.MouseButton1Click:Connect(function()
  243.         jewlAllowCrims = not jewlAllowCrims
  244.         JewlSetBtn.Text = jewlAllowCrims and "X" or ""
  245. end)
  246.  
  247. --main code
  248.  
  249. local windowFocused = false
  250. game:GetService("UserInputService").WindowFocused:Connect(function() windowFocused=true end)
  251. game:GetService("UserInputService").WindowFocusReleased:Connect(function() windowFocused=false end)
  252.  
  253. local punchEvent,punchCode,trainEvent,trainCode
  254.  
  255. local function keyclick(num)
  256.         if windowFocused and keypress and keyrelease then
  257.                 keypress(num)
  258.                 wait()
  259.                 keyrelease(num)
  260.         end
  261. end
  262. local function punch()
  263.         if punchEvent then
  264.                 punchEvent:FireServer(unpack(punchCode))
  265.         elseif windowFocused then
  266.                 keyclick(0x46)
  267.         end
  268. end
  269. local function exitVehicle() keyclick(0x20) end
  270.  
  271. local function longTP(cf)
  272.         local original = root.CFrame + Vector3.new(0,math.max(0,140-root.CFrame.y),0) --start high up
  273.         local oldg = workspace.Gravity
  274.         workspace.Gravity=0
  275.         --consistent velocity along a theoretical array of points between
  276.         for i=0,1,1/((original.p-cf.p).magnitude / (maxSpeed*0.25)) do
  277.                 if abort then break end
  278.                 root.CFrame = original:lerp(cf,i)
  279.                 root.Velocity=Vector3.new()
  280.                 wait(0.25)
  281.         end
  282.        
  283.         workspace.Gravity=oldg
  284.         for i=1,5 do
  285.                 if abort then break end
  286.                 root.CFrame = cf
  287.                 wait(0.1)
  288.         end
  289.         wait(0.1)
  290. end
  291.  
  292. local function bigTP(cf)
  293.         repeat
  294.         for i=1,60 do
  295.                 if abort then return end
  296.                 root.CFrame=cf
  297.                 wait()
  298.         end
  299.         until wait(0.3) and (root.Position-cf.p).magnitude<9
  300. end
  301.  
  302. local function isBagFull()
  303.         if player.PlayerGui.MainGui.CollectMoney.Visible==false then
  304.                 return true
  305.         end
  306.         return strToNum(player.PlayerGui.MainGui.CollectMoney.Money.Text)+1 >= strToNum(player.PlayerGui.MainGui.CollectMoney.Maximum.Text)
  307. end
  308.  
  309. local boxcars = {}
  310. for _,v in ipairs(workspace.Trains:GetChildren()) do
  311.         if v.Name=="BoxCar" and v:FindFirstChild("Gold",true) then
  312.                 boxcars[#boxcars+1]=v
  313.         end
  314. end
  315. workspace.Trains.ChildAdded:Connect(function(child)
  316.         wait(10.5)
  317.         if child.Name=="BoxCar" and child.Model.Rob:FindFirstChild("Gold") then
  318.                 boxcars[#boxcars+1]=child
  319.         end
  320. end)
  321. workspace.Trains.ChildRemoved:Connect(function(child)
  322.         for i,car in ipairs(boxcars) do
  323.                 if car==child then
  324.                         table.remove(boxcars,i)
  325.                         break
  326.                 end
  327.         end
  328. end)
  329.  
  330. --pcall(function()
  331. local MT = getrawmetatable(game)
  332. if setreadonly then setreadonly(MT,false) end
  333. if make_writeable then make_writeable(MT) end
  334. local oldNamecall = MT.__namecall
  335. local oldIndex = MT.__index
  336. local oldWTSP = workspace.CurrentCamera.WorldToScreenPoint
  337. MT.__namecall = function(inst,...)
  338.         local args = {...}
  339.         local m = args[#args]
  340.         if m == "WorldToScreenPoint" and inst.ClassName=="Camera" then
  341.                 local ret = oldWTSP(inst,...)
  342.                 return ret,true
  343.         end
  344.         return oldNamecall(inst,...)
  345. end
  346. MT.__index = function(inst,k)
  347.         if k=="Velocity" and inst==root then
  348.                 return Vector3.new()
  349.         end
  350.         return oldIndex(inst,k)
  351. end
  352.  
  353. if setreadonly then setreadonly(MT,true) end
  354. --end)
  355.  
  356. local function isVaultOpenAndCopsTooClose()
  357.         if (workspace.Banks:GetChildren()[1].Door.Closed.Position-Vector3.new(25.6,3.6,815.6)).magnitude > 1 then
  358.                 for _,p in ipairs(game:GetService("Teams").Police:GetPlayers()) do
  359.                         if p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
  360.                                 local diff = (p.Character.HumanoidRootPart.Position-root.Position)
  361.                                 if diff.magnitude < 40 and (diff*Vector3.new(0,1,0)).magnitude < 10 then
  362.                                         return true
  363.                                 end
  364.                         end
  365.                 end
  366.         end
  367.         return false
  368. end
  369.  
  370. local function warnFlash()
  371.         stprint("About to TP")
  372.         local col0 = main.BackgroundColor3
  373.         for i=1,2 do
  374.                 for a=0,1,1/(30*.25) do
  375.                         main.BackgroundColor3 = col0:lerp(red,a)
  376.                         wait()
  377.                 end
  378.                 for a=0,1,1/(30*.25) do
  379.                         main.BackgroundColor3 = red:lerp(col0,a)
  380.                         wait()
  381.                 end
  382.         end
  383.         main.BackgroundColor3 = col0
  384. end
  385.  
  386. local function robJewelry()
  387.         warnFlash()
  388.         stprint("TPing to jewelry...")
  389.         exitVehicle()
  390.         toggleCanAbort(true)
  391.         bigTP(CFrame.new(163.7, 106.6, 1341.6))
  392.         if abort then return end
  393.         root.CFrame = CFrame.new(142.169, 17.88, 1351.084)
  394.         wait(0.5)
  395.         stprint("Robbery started!")
  396.         local notRinging = #workspace.Ringers.Jewelry:GetChildren()==0
  397.         local broke = 0
  398.        
  399.         for _,box in ipairs(workspace.Jewelrys:GetChildren()[1].Boxes:GetChildren()) do
  400.                 if abort or (broke>2 and isBagFull()) then
  401.                         --duffel bag full
  402.                         break
  403.                 end
  404.                
  405.                 local dir = ((box.Position.Z > 1338) and -1) or 1
  406.                 if box.Transparency < 0.9 then
  407.                         if box.Position.X < 115 and box.Position.Z > 1330 then
  408.                                 root.CFrame = CFrame.new(box.Position+box.CFrame.lookVector*2.5+Vector3.new(0,0,-2.5),box.Position)
  409.                         elseif box.Position.Z > 1338 then
  410.                                 root.CFrame = CFrame.new(box.Position+box.CFrame.lookVector*-2.5,box.Position)
  411.                         else
  412.                                 root.CFrame = CFrame.new(box.Position+box.CFrame.lookVector*2.5,box.Position)
  413.                         end
  414.                         wait()
  415.                         for i=1,2 do
  416.                                 if abort~=true and broke==0 and notRinging and jewlAllowCrims then wait(2.25) end
  417.                         end
  418.                         local hits = 0
  419.                         repeat
  420.                                 punch()
  421.                                 hits=hits+1
  422.                                 if punchEvent==nil or (broke==0 and notRinging) then wait(0.5) end
  423.                         until abort or hits>7 or box.Transparency>0.9
  424.                         if punchEvent~=nil then wait(0.3) end
  425.                         broke=broke+1
  426.                 end
  427.         end
  428.        
  429.         wait(0.5)
  430.         stprint("Escaping...")
  431.         bigTP(CFrame.new(-365.3, 35.52, 1578.5))
  432.         toggleCanAbort(false)
  433.         stprint("Jewel success! [10s cooldown]")
  434.         wait(9)
  435. end
  436.  
  437. local function robBank()
  438.         warnFlash()
  439.         stprint("TPing to bank...")
  440.         exitVehicle()
  441.         toggleCanAbort(true)
  442.         bigTP(CFrame.new(119, 95, 840))
  443.         if abort then return end
  444.         root.CFrame = CFrame.new(23.6, 18.07, 853.5)
  445.         wait(0.5)
  446.         if #workspace.Ringers.Bank:GetChildren()==0 then wait(1.5) end
  447.         --gets in vault
  448.         stprint("Robbery started!")
  449.         local elapsed = 0
  450.         for i=1,5 do
  451.                 if abort then break end
  452.         root.CFrame = CFrame.new(15.29, 0.76, 825.36)
  453.                 elapsed=elapsed+wait(0.5)
  454.         end
  455.         --wait for bag to fill or player leaves
  456.         repeat elapsed=elapsed+wait(0.5) until abort or isBagFull() or isVaultOpenAndCopsTooClose() or elapsed>vaultMaxSecs
  457.         stprint("Escaping...")
  458.         longTP(CFrame.new(119, 95, 840))
  459.         toggleCanAbort(false)
  460.         stprint("Bank success! [10s cooldown]")
  461.         wait(9)
  462. end
  463.  
  464. local function robTrain()
  465.         local bcar,gold = boxcars[1],boxcars[1].Model.Rob.Gold
  466.         local trainFront = workspace.Trains.LocomotiveFront.Model.Front
  467.         warnFlash()
  468.         stprint("TPing to train...")
  469.         exitVehicle()
  470.         toggleCanAbort(true)
  471.         bigTP(gold.CFrame+gold.CFrame.rightVector*10)
  472.         repeat longTP(gold.CFrame+gold.CFrame.rightVector*10)
  473.         until (root.Position-gold.Position).magnitude < 97
  474.         for i=1,5 do
  475.                 if abort then break end
  476.                 root.CFrame = gold.CFrame+(gold.CFrame.lookVector*3.5)+Vector3.new(0,1,0)
  477.                 wait(0.1)
  478.         end
  479.         stprint("Opening vault...")
  480.         local holde=true
  481.         keyclick(0x45)
  482.         if keypress and keyrelease then
  483.                 --keypress doesn't seem to "hold" so this is necessary
  484.                 spawn(function()
  485.                         while wait(0.1) and windowFocused and holde do
  486.                                 keypress(0x45)
  487.                         end
  488.                         keyrelease(0x45)
  489.                 end)
  490.         end
  491.         if trainEvent then
  492.                 trainEvent:FireServer(trainCode,bcar.Skeleton.Vault.Part)
  493.         end
  494.  
  495.         local elapsed=0
  496.         if not abort then
  497.         repeat
  498.                 root.CFrame = gold.CFrame+(gold.CFrame.lookVector*4.5)+Vector3.new(0,1,0)
  499.                 elapsed=elapsed+wait(0.25)
  500.         until abort or elapsed>9 or bcar.Skeleton.Vault.Part.Open.Value
  501.         end
  502.         holde,elapsed=false,0
  503.         stprint("Robbery started!")
  504.         if not abort then
  505.         repeat
  506.                 root.CFrame = gold.CFrame+gold.CFrame.lookVector+Vector3.new(0,1,0)
  507.                 elapsed=elapsed+wait(0.25)
  508.         until abort or (elapsed>4 and isBagFull()) or (trainFront.Position-Vector3.new(-1679,25,268)).magnitude<100 or elapsed>vaultMaxSecs
  509.         end
  510.         stprint("Escaping...")
  511.         bigTP(CFrame.new(-365.3, 35.52, 1578.5))
  512.         toggleCanAbort(false)
  513.         stprint("Train success! [10s cooldown]")
  514.         wait(9)
  515. end
  516.  
  517. local spyfunc = hookfunc or replaceclosure
  518. if spyfunc then
  519.         local punchWaiting=false
  520.         local oldFS
  521.         oldFS = spyfunc(Instance.new("RemoteEvent").FireServer,function(self,...)
  522.                 if punchWaiting then
  523.                         punchWaiting=false
  524.                         punchEvent = self
  525.                         punchCode = {...}
  526.                 elseif trainEvent==nil then
  527.                         local args = {...}
  528.                         if tostring(args[2])=="Part" and workspace.Trains:IsAncestorOf(args[2]) then
  529.                                 trainEvent = self
  530.                                 trainCode = args[1]
  531.                         end
  532.                 end
  533.                 return oldFS(self,...)
  534.         end)
  535.         spawn(function()
  536.                 repeat
  537.                         if windowFocused then punchWaiting=true punch() end
  538.                         punchWaiting=false
  539.                         wait(0.1)
  540.                 until punchEvent~=nil
  541.         end)
  542.         oldWTSP = spyfunc(oldWTSP,function(self,v3)
  543.                 local ret = oldWTSP(self,v3)
  544.                 return ret,true
  545.         end)
  546. end
  547.  
  548. local function newchar(char)
  549.         if char then root = char:WaitForChild("HumanoidRootPart",4) end
  550. end
  551. newchar(player.Character)
  552. player.CharacterAdded:Connect(newchar)
  553.  
  554. --main loop
  555. local bankSign = workspace.Banks:GetChildren()[1].Extra.Sign.Decal
  556. local jewlSign = workspace.Jewelrys:GetChildren()[1].Extra.Sign.Decal
  557. local isBankOpen = bankSign.Transparency>0.01
  558. local isJewlOpen = jewlSign.Transparency>0.01
  559. bankSign:GetPropertyChangedSignal("Transparency"):Connect(function() wait() isBankOpen = bankSign.Transparency>0.01 end)
  560. jewlSign:GetPropertyChangedSignal("Transparency"):Connect(function() wait() isJewlOpen = jewlSign.Transparency>0.01 end)
  561. local waiti=0
  562.  
  563. print("Auto-robbery is running")
  564. while wait(0.5) and gui.Parent do
  565.         if doJewl and isJewlOpen then
  566.                 pcall(robJewelry)
  567.                 isJewlOpen=false
  568.         elseif doBank and isBankOpen then
  569.                 pcall(robBank)
  570.                 isBankOpen=false
  571.         elseif doTrain and #boxcars>0 then
  572.                 pcall(robTrain)
  573.                 table.remove(boxcars,1)
  574.         else
  575.                 stprint("Wait for stores to open".. string.rep('.',waiti%3+1))
  576.                 waiti=waiti+1
  577.         end
  578. end
  579.  
  580. return nil

Replies to Re: jailbreak autorob rss

Title Name Language When
Re: Re: jailbreak autorob HAROUN javascript 4 Years ago.