TexlzAye

de

Jul 1st, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.31 KB | None | 0 0
  1. -- Version 7.2
  2. ------------------------------------- [Quick Settings] ----------------------------------------------------------------------
  3. -- note: changing some of this values can make this script unstable and very bugged
  4. Vip = false -- Enable this if you have the VIP gamepass then you will get more money
  5.  
  6. Movment = true -- Enables or disables player movment (by default in false to avoid bugs)
  7. clear_appearance = false -- Useful when you use hide_nametag and clear_appearance together (players wont know who you are)
  8.  
  9. hide_nametag = false -- Disables your nametag for other players (useful to avoid reports)
  10. star = false -- If enabled will show a star for other players if hide nametag is on
  11.  
  12. rob_small_things = true -- Disable this if you don't want to rob small things like: houses, stores...
  13.  
  14. start_toggled = false
  15.  
  16. debug_mode = false -- Enables/disables the debug mode (I use this to test things, idk if is useful for you)
  17. view_invisible_parts = true -- if enabled will show invisble parts if the debug mode is on
  18. show_your_nametag = false
  19.  
  20. bank_cooldown = 500
  21. nightclub_cooldown = 500
  22.  
  23. cant_rob = "Can't rob the %s because %s"
  24. -----------------------------------------------------------------------------------------------------------------------------
  25.  
  26. local busy = false
  27. local busy_with = ""
  28. local robbingBank = false
  29. local robbingNightclub = false
  30. local robbingCasino = false
  31. local robbingJewerly = false
  32. local toggled = false
  33.  
  34.  
  35. function clearAppearance()
  36. if clear_appearance == true then
  37. game.Players.LocalPlayer:ClearCharacterAppearance()
  38. end
  39. end
  40.  
  41. function hideNametag() -- Yes, It replicates because you have the network ownership of your character. Don't fuck me saying that this isn't server sided
  42. if hide_nametag == true and star == true then
  43. game.Players.LocalPlayer.Character.NameTag.Title:Destroy()
  44. game.Players.LocalPlayer.Character.NameTag.Script:Destroy()
  45. game.Players.LocalPlayer.Character.NameTag.Icon.Rank:Destroy()
  46. elseif hide_nametag == true and star == false then
  47. game.Players.LocalPlayer.Character.NameTag:Destroy()
  48. end
  49. end
  50.  
  51. function noclip()
  52. game:GetService("RunService").Stepped:connect(function()
  53. game.Players.LocalPlayer.Character.Head.CanCollide = false
  54. game.Players.LocalPlayer.Character.LowerTorso.CanCollide = false
  55. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  56. game.Players.LocalPlayer.Character.UpperTorso.CanCollide = false
  57. end)
  58. game.Players.LocalPlayer.Character.HumanoidRootPart.Changed:connect(function()
  59. game.Players.LocalPlayer.Character.Head.CanCollide = false
  60. game.Players.LocalPlayer.Character.LowerTorso.CanCollide = false
  61. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  62. game.Players.LocalPlayer.Character.UpperTorso.CanCollide = false
  63. end)
  64. end
  65.  
  66. function message(msg, color)
  67. local msg_color = Color3.fromRGB(0, 0, 0)
  68. if color == "green" then
  69. msg_color = Color3.fromRGB(84, 243, 35)
  70. end
  71. if color == "yellow" then
  72. msg_color = Color3.fromRGB(243, 237, 46)
  73. end
  74. if color == "red" then
  75. msg_color = Color3.fromRGB(243, 4, 4)
  76. end
  77. if color == "dark_red" then
  78. msg_color = Color3.fromRGB(127, 2, 2)
  79. end
  80. if color == "blue" then
  81. msg_color = Color3.fromRGB(65, 48, 255)
  82. end
  83. wait(0.3)
  84. game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
  85. Text = msg;
  86. Color = msg_color;
  87. Font = Enum.Font.Cartoon;
  88. })
  89. end
  90.  
  91. function toggle()
  92. game.Players.LocalPlayer.Chatted:connect(function(msg)
  93. if msg:lower() == "/e toggle" then
  94. if toggled == false then
  95. wait(1)
  96. message("Starting the auto rob...", "yellow")
  97. toggled = true
  98. noclip()
  99. hideNametag()
  100. clearAppearance()
  101. if Movment == false then
  102. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  103. game.Players.LocalPlayer.PlayerScripts.ControlScript.Disabled = true
  104. end
  105. wait(0.5)
  106. message("Auto rob started!", "green")
  107. else
  108. message("Stopping the auto rob...", "yellow")
  109. message("Ending current robs...", "yellow")
  110. repeat
  111. wait()
  112. until(busy == false and robbingBank == false and robbingNightclub == false)
  113. --message("An error ocurred: the script can't stop the auto rob!", "dark_red")
  114. game.Players.LocalPlayer.PlayerScripts.ControlScript.Disabled = false
  115. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  116. toggled = false
  117. --[[for i = 1,10 do
  118. wait(1)
  119. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(2138,25,358)
  120. end]]
  121. wait(0.5)
  122. game.Players.LocalPlayer.Character.Head:Destroy()
  123. message("Auto rob stopped!", "red")
  124. end
  125. end
  126. end)
  127. end
  128.  
  129. --[[function teleport(xyz)
  130. for i = 1,2 do
  131. wait(3)
  132. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(xyz)
  133. end
  134. end]]
  135.  
  136. local died_fix = coroutine.create(function()
  137. while wait() do
  138. game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:Connect(function()
  139. if toggled == true then
  140. toggled = false
  141. wait(10)
  142. message("You died! Resuming the auto rob.", "yellow")
  143. game.Players.LocalPlayer.PlayerScripts.ControlScript.Disabled = false
  144. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  145. wait(5)
  146. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  147. game.Players.LocalPlayer.PlayerScripts.ControlScript.Disabled = true
  148. wait(1)
  149. hideNametag()
  150. clearAppearance()
  151. busy = false
  152. toggled = true
  153. message("Auto rob successfully resumed!", "green")
  154. wait(20)
  155. end
  156. end)
  157. end
  158. end)
  159.  
  160. local debug_things = coroutine.create(function()
  161. if debug_mode == true and view_invisible_parts == true then
  162. for i, v in pairs(workspace:GetDescendants()) do
  163. if v:IsA("Part") and v.Transparency == 1 then
  164. v.Transparency = 0.3
  165. end
  166. end
  167. end
  168. if debug_mode == true and show_your_nametag == true then
  169. game.Players.LocalPlayer.Character.NameTag.Enabled = true
  170. end
  171. end)
  172.  
  173. local antiafk = coroutine.create(function()
  174. local VirtualUser=game:service'VirtualUser'
  175. game:service'Players'.LocalPlayer.Idled:connect(function()
  176. VirtualUser:CaptureController()
  177. VirtualUser:ClickButton2(Vector2.new())
  178. end)
  179. end)
  180.  
  181. local robCashRegister = coroutine.create(function()
  182. while wait(5) do
  183. pcall(function()
  184. if toggled == true and busy == false and robbingBank == false and robbingNightclub == false then
  185. for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  186. if v.Name == "CashRegister" then
  187. local part = v:FindFirstChildOfClass("Part")
  188. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  189. busy = true
  190. busy_with = "robbing cash registers"
  191. wait(1.5)
  192. local pos = v.SmashCash.Position
  193. for i = 1,5 do
  194. wait(1)
  195. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  196. end
  197. wait(0.5)
  198. v.SmashCash.SmashCash.Event:FireServer()
  199. wait(2)
  200. if part.Name == "Nope" and robbingBank == false and robbingNightclub == false then
  201. busy = false
  202. end
  203. end
  204. end
  205. end
  206. elseif debug_mode == true and busy == true then
  207. print(string.format(cant_rob, "cash registers", busy_with))
  208. end
  209. end)
  210. end
  211. end)
  212.  
  213. local robDiamondBox = coroutine.create(function()
  214. while wait(5) do
  215. pcall(function()
  216. if toggled == true and busy == false and robbingBank == false and robbingNightclub == false then
  217. for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  218. if v.Name == "DiamondBox" then
  219. local part = v:FindFirstChildOfClass("Part")
  220. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  221. busy = true
  222. busy_with = "robbing diamond boxes"
  223. wait(1.5)
  224. local pos = v.SmashCash.Position
  225. for i = 1,5 do
  226. wait(1)
  227. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  228. end
  229. wait(0.3)
  230. v.SmashCash.SmashCash.Event:FireServer()
  231. wait(2)
  232. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  233.  
  234. else
  235. busy = false
  236. end
  237. end
  238. end
  239. end
  240. elseif debug_mode == true and busy == true then
  241. print(string.format(cant_rob, "diamond boxes", busy_with))
  242. end
  243. end)
  244. end
  245. end)
  246.  
  247. local robSafe = coroutine.create(function()
  248. while wait(5) do
  249. pcall(function()
  250. if toggled == true and busy == false and robbingBank == false and robbingNightclub == false then
  251. for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  252. if v.Name == "Safe" then
  253. local part = v:FindFirstChildOfClass("Part")
  254. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  255. busy = true
  256. busy_with = "robbing safes"
  257. wait(5)
  258. local pos = v.SmashCash.Position
  259. for i = 1,10 do
  260. wait(0.3)
  261. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  262. end
  263. wait(0.3)
  264. v.SmashCash.SmashCash.Event:FireServer()
  265. wait(2)
  266. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  267.  
  268. else
  269. busy = false
  270. end
  271. end
  272. end
  273. end
  274. elseif debug_mode == true and busy == true then
  275. print(string.format(cant_rob, "safes", busy_with))
  276. end
  277. end)
  278. end
  279. end)
  280.  
  281. local robTipJar = coroutine.create(function()
  282. while wait(5) do
  283. pcall(function()
  284. if toggled == true and busy == false and robbingBank == false and robbingNightclub == false then
  285. for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  286. if v.Name == "TipJar" then
  287. local part = v:FindFirstChildOfClass("Part")
  288. if part.Name == "SmashCash" and robbingBank == false and robbingNightclub == false then
  289. busy = true
  290. busy_with = "robbing tip jars"
  291. local pos = v.SmashCash.Position
  292. for i = 1,5 do
  293. wait(1)
  294. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  295. end
  296. wait(0.3)
  297. v.SmashCash.SmashCash.Event:FireServer()
  298. wait(2)
  299. if part.Name == "SmashCash" and robbingBank == false and robbingNightclub == false then
  300.  
  301. else
  302. busy = false
  303. end
  304. end
  305. end
  306. end
  307. elseif debug_mode == true and busy == true then
  308. print(string.format(cant_rob, "tip jars", busy_with))
  309. end
  310. end)
  311. end
  312. end)
  313.  
  314. local robLuggage = coroutine.create(function()
  315. while wait(5) do
  316. pcall(function()
  317. if toggled == true and busy == false and robbingBank == false and robbingNightclub == false then
  318. for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  319. if v.Name == "Luggage" then
  320. local part = v:FindFirstChildOfClass("Part")
  321. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  322. busy = true
  323. busy_with = "robbing luggage"
  324. wait(1.5)
  325. local pos = v.SmashCash.Position
  326. for i = 1,5 do
  327. wait(1)
  328. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  329. end
  330. wait(0.5)
  331. v.SmashCash.SmashCash.Event:FireServer()
  332. wait(2)
  333. if part.Name == "Nope" and robbingBank == false and robbingNightclub == false then
  334. busy = false
  335. end
  336. end
  337. end
  338. end
  339. elseif debug_mode == true and busy == true then
  340. print(string.format(cant_rob, "cash registers", busy_with))
  341. end
  342. end)
  343. end
  344. end)
  345.  
  346. local robCash = coroutine.create(function()
  347. while wait(5) do
  348. wait()
  349. pcall(function()
  350. if toggled == true and busy == false and robbingBank == false and robbingNightclub == false then
  351. for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  352. if v.Name == "Cash" then
  353. local part = v:FindFirstChildOfClass("MeshPart")
  354. if part.Name == "Cash" and robbingBank == false and robbingNightclub == false then
  355. busy = true
  356. busy_with = "robbing cash"
  357. local pos = v.Cash.Position
  358. for i = 1,10 do
  359. wait(0.3)
  360. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  361. end
  362. wait(0.3)
  363. v.Cash.Cash.Event:FireServer()
  364. wait(2)
  365. if part.Name == "Cash" and robbingBank == false and robbingNightclub == false then
  366.  
  367. else
  368. busy = false
  369. end
  370. end
  371. end
  372. end
  373. elseif debug_mode == true and busy == true then
  374. print(string.format(cant_rob, "cash", busy_with))
  375. end
  376. end)
  377. end
  378. end)
  379.  
  380. local robTv = coroutine.create(function()
  381. while wait(5) do
  382. pcall(function()
  383. if toggled == true and busy == false and robbingBank == false and robbingNightclub == false then
  384. for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  385. if v.Name == "TV" then
  386. local part = v:FindFirstChildOfClass("Part")
  387. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  388. busy = true
  389. busy_with = "robbing TVs"
  390. wait(3)
  391. local pos = v.StealTV.Position
  392. for i = 1,5 do
  393. wait(1)
  394. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  395. end
  396. wait(0.3)
  397. v.StealTV.StealTV.Event:FireServer()
  398. wait(2)
  399. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  400.  
  401. else
  402. busy = false
  403. end
  404. end
  405. end
  406. end
  407. elseif debug_mode == true and busy == true then
  408. print(string.format(cant_rob, "TVs", busy_with))
  409. end
  410. end)
  411. end
  412. end)
  413.  
  414. local robAtm = coroutine.create(function()
  415. while wait(5) do
  416. pcall(function()
  417. if toggled == true and busy == false and robbingBank == false and robbingNightclub == false then
  418. for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  419. if v.Name == "ATM" then
  420. local part = v:FindFirstChildOfClass("Part")
  421. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  422. busy = true
  423. busy_with = "robbing ATMs"
  424. wait(1.5)
  425. local pos = v.ATM.Position
  426. for i = 1,5 do
  427. wait(1)
  428. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  429. end
  430. wait(0.3)
  431. v.ATM.ATM.Event:FireServer()
  432. wait(2)
  433. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  434.  
  435. else
  436. busy = false
  437. end
  438. end
  439. end
  440. end
  441. elseif debug_mode == true and busy == true then
  442. print(string.format(cant_rob, "ATMs", busy_with))
  443. end
  444. end)
  445. end
  446. end)
  447.  
  448. local robSlotmachine = coroutine.create(function()
  449. while wait(5) do
  450. pcall(function()
  451. if toggled == true and busy == false and robbingBank == false and robbingNightclub == false then
  452. for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  453. if v.Name == "SlotMachine" then
  454. local part = v:FindFirstChildOfClass("Part")
  455. if part.Name ~= "Nope" and part.name == "SlotMachine" and robbingBank == false and robbingNightclub == false then
  456. busy = true
  457. busy_with = "robbing slot machines"
  458. wait(1.5)
  459. local pos = v.SlotMachine.Position
  460. for i = 1, 1,5 do
  461. wait(1)
  462. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  463. end
  464. wait(0.5)
  465. v.SlotMachine.SlotMachine.Event:FireServer()
  466. wait(2)
  467. if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  468. else
  469. busy = false
  470. end
  471. end
  472. end
  473. end
  474. elseif debug_mode == true and busy == true then
  475. print(string.format(cant_rob, "slot machines", busy_with))
  476. end
  477. end)
  478. end
  479. end)
  480.  
  481. local robBank = coroutine.create(function()
  482. while wait(2) do
  483. pcall(function()
  484. if toggled == true and game.ReplicatedStorage.HeistStatus.Bank.Locked.Value == false and robbingNightclub == false then
  485. robbingBank = true
  486. busy = true
  487. busy_with = "robbing bank"
  488. if debug_mode == true then
  489. warn("All robs have been paused to rob the bank")
  490. end
  491. wait(5)
  492. --[[for i, v in pairs (workspace.ObjectSelection:GetChildren()) do
  493. if v.Name == "HackComputer" then
  494. for i = 1,10 do
  495. wait(1.5)
  496. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(636.778, 27.5895, 529.505)
  497. v.HackComputer.HackComputer.Event:FireServer()
  498. end
  499. v.HackComputer.HackComputer.Event:FireServer()
  500. wait(1)
  501. v.HackComputer.HackComputer.Event:FireServer()
  502. wait(1.5)
  503. return
  504. end
  505. wait(3)
  506. break
  507. end]]
  508. for i = 1,5 do
  509. wait(1.5)
  510. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(739,0,488)
  511. end
  512. wait(.5)
  513. local pos = workspace.Bank.MoneyBags["Money Bag"].Position
  514. for i = 1,5 do
  515. wait(1.5)
  516. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  517. end
  518. if Vip == false then
  519. repeat
  520. wait()
  521. until game.Players.LocalPlayer.PlayerGui.MainGUI.StatsHUD.CashBagHUD.Cash.Amount.Text == "$3000"
  522. else
  523. repeat
  524. wait()
  525. until game.Players.LocalPlayer.PlayerGui.MainGUI.StatsHUD.CashBagHUD.Cash.Amount.Text == "$6000"
  526. end
  527.  
  528. for i = 1,10 do
  529. wait(.5)
  530. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(2034, 25, 447)
  531. game.Players.LocalPlayer.Character.Humanoid:ChangeState(3)
  532. end
  533. robbingBank = false
  534. busy = false
  535. wait(bank_cooldown)
  536. elseif debug_mode == true and busy == true then
  537. warn(string.format(cant_rob, "bank", "it's closed"))
  538. end
  539. end)
  540. end
  541. end)
  542.  
  543. local robNightclub = coroutine.create(function()
  544. while wait(1) do
  545. pcall(function()
  546. if toggled == true and game.ReplicatedStorage.HeistStatus.Club.Locked.Value == false and robbingNightclub == false then
  547. robbingNightclub = true
  548. busy = true
  549. busy_with = "robbing night club"
  550. wait(5)
  551. if debug_mode == true then
  552. warn("All robs have been paused to rob the night club")
  553. end
  554. for i = 1,5 do
  555. wait(.5)
  556. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(1362,42,-153)
  557. end
  558. wait(3)
  559. for i = 1,5 do
  560. wait(.5)
  561. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(1349,142,-100)
  562. end
  563. wait(0.3)
  564. for i, v in pairs(workspace.ObjectSelection.HackKeyPad:GetChildren()) do
  565. if v.Name == "HackKeyPad" then
  566. v.HackKeyPad.Event:FireServer()
  567. end
  568. end
  569. wait(3)
  570. for i = 1,5 do
  571. wait(.3)
  572. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(1361,142,-155)
  573. end
  574. if Vip == false then
  575. repeat
  576. wait()
  577. until game.Players.LocalPlayer.PlayerGui.MainGUI.StatsHUD.CashBagHUD.Cash.Amount.Text == "$6000"
  578. else
  579. repeat
  580. wait()
  581. until game.Players.LocalPlayer.PlayerGui.MainGUI.StatsHUD.CashBagHUD.Cash.Amount.Text == "$12000"
  582. end
  583. for i = 1,10 do
  584. wait(.5)
  585. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(2034, 25, 447)
  586. game.Players.LocalPlayer.Character.Humanoid:ChangeState(3)
  587. end
  588. robbingNightclub = false
  589. busy = false
  590. wait(nightclub_cooldown)
  591. elseif debug_mode == true and game.ReplicatedStorage.HeistStatus.Club.Locked.Value == true then
  592. warn(string.format(cant_rob, "night club", "it's closed"))
  593. end
  594. end)
  595. end
  596. end)
  597.  
  598. coroutine.resume(antiafk)
  599. coroutine.resume(died_fix)
  600. --coroutine.resume(busy_fix)
  601. coroutine.resume(debug_things)
  602.  
  603. coroutine.resume(robNightclub)
  604. coroutine.resume(robBank)
  605.  
  606. if rob_small_things == true then
  607. coroutine.resume(robCashRegister)
  608. coroutine.resume(robDiamondBox)
  609. coroutine.resume(robSafe)
  610. coroutine.resume(robTipJar)
  611. coroutine.resume(robLuggage)
  612.  
  613. coroutine.resume(robCash)
  614. coroutine.resume(robTv)
  615. coroutine.resume(robAtm)
  616. coroutine.resume(robSlotmachine)
  617. end
  618.  
  619. if start_toggled == true then
  620. message("Thanks for using TheLondiux's auto rob script!", "blue")
  621. message("Starting...", "yellow")
  622. noclip()
  623. hideNametag()
  624. clearAppearance()
  625. toggle()
  626. toggled = true
  627. message("Starting...")
  628. else
  629. message("Thanks for using Londiuh's auto rob script!\n\nTo start/stop use \"/e toggle\"", "blue")
  630. toggle()
  631. end
Advertisement
Add Comment
Please, Sign In to add comment