Project_MAtrix_ZERGO

MadCity Hack Auto Rob

Apr 11th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.91 KB | None | 0 0
  1. Movment = false -- Enables or disables player movment (by default in false to avoid bugs)
  2. Noclip = true -- Not toggable
  3. Invisible = false -- Not aviable in this version
  4.  
  5. bank_cooldown = 500
  6. cratedrop_cooldown = 500
  7. nightclub_cooldown = 500
  8. casino_cooldown = 500
  9.  
  10. cant_rob = "Can't rob the %s because %s"
  11. -------------------------------------------------------------------------------------------------
  12.  
  13. local busy = false
  14. local busy_with = "busy_with"
  15. local thing = "thing"
  16. local robbingBank = false
  17. local robbingNightclub = false
  18. local robbingCasino = false
  19. local robbingJewerly = false
  20.  
  21. function noclip()
  22. game:GetService("RunService").Stepped:connect(function()
  23.     game.Players.LocalPlayer.Character.Head.CanCollide = false
  24.         game.Players.LocalPlayer.Character.LowerTorso.CanCollide = false
  25.         game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  26.         game.Players.LocalPlayer.Character.UpperTorso.CanCollide = false
  27.    end)
  28.    game.Players.LocalPlayer.Character.HumanoidRootPart.Changed:connect(function()
  29.        game.Players.LocalPlayer.Character.Head.CanCollide = false
  30.        game.Players.LocalPlayer.Character.LowerTorso.CanCollide = false
  31.        game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  32.        game.Players.LocalPlayer.Character.UpperTorso.CanCollide = false
  33.    end)
  34. end
  35.  
  36.  
  37. function movment()
  38. if Movment == false then
  39. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  40.        game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  41.        warn("Movment disabled")
  42. else
  43. --girlfriend:Kiss()
  44. end
  45. end
  46.  
  47. local robCashRegister = coroutine.create(function()
  48.    while wait(5) do
  49.    pcall(function()
  50.    if busy == false and robbingBank == false and robbingNightclub == false then
  51.   for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  52.           if v.Name == "CashRegister" then
  53.           local part = v:FindFirstChildOfClass("Part")
  54.           if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  55.           busy = true
  56.           busy_with = "robbing cash registers"
  57.           wait(1.5)
  58.           local pos = v.SmashCash.Position
  59.                           for i = 1,10 do
  60.                               wait(0.3)
  61.                               game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  62.                           end
  63.               wait(0.5)
  64.               if v.SmashCash.SmashCash.Event then
  65.              v.SmashCash.SmashCash.Event:FireServer()
  66.               else
  67.              busy = false
  68.               end
  69.               wait(2)
  70.               if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  71.              
  72.               else
  73.               busy = false
  74.               end
  75.           end  
  76.           end
  77.   end
  78. else
  79.    print(string.format(cant_rob, "cash registers", busy_with))
  80. end    
  81.    end)
  82.    end
  83. end)
  84.  
  85. local robDiamondBox = coroutine.create(function()
  86.    while wait(5) do
  87.    pcall(function()
  88.    if busy == false and robbingBank == false and robbingNightclub == false then
  89.   for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  90.           if v.Name == "DiamondBox" then
  91.           local part = v:FindFirstChildOfClass("Part")
  92.           if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  93.           busy = true
  94.           busy_with = "robbing diamond boxes"
  95.           wait(1.5)
  96.           local pos = v.SmashCash.Position
  97.                           for i = 1,10 do
  98.                               wait(0.3)
  99.                               game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  100.                           end
  101.               wait(0.3)
  102.               v.SmashCash.SmashCash.Event:FireServer()
  103.               wait(2)
  104.               if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  105.              
  106.               else
  107.               busy = false
  108.               end
  109.           end  
  110.           end
  111.   end
  112.    else
  113.    print(string.format(cant_rob, "diamond boxes", busy_with))
  114. end    
  115.    end)
  116.    end
  117. end)
  118.  
  119. local robSafe = coroutine.create(function()
  120.    while wait(5) do
  121.    pcall(function()
  122.    if busy == false and robbingBank == false and robbingNightclub == false then
  123.   for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  124.           if v.Name == "Safe" then
  125.           local part = v:FindFirstChildOfClass("Part")
  126.           if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  127.           busy = true
  128.           busy_with = "robbing safes"
  129.           wait(5)
  130.           local pos = v.SmashCash.Position
  131.                           for i = 1,10 do
  132.                               wait(0.3)
  133.                               game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  134.                           end
  135.               wait(0.3)
  136.               v.SmashCash.SmashCash.Event:FireServer()
  137.               wait(2)
  138.               if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  139.              
  140.               else
  141.               busy = false
  142.               end
  143.           end  
  144.           end
  145.   end
  146.    else
  147.    print(string.format(cant_rob, "safes", busy_with))
  148. end    
  149.    end)
  150.    end
  151. end)
  152.  
  153. local robTipJar = coroutine.create(function()
  154.    while wait(5) do
  155.    pcall(function()
  156.    if busy == false and robbingBank == false and robbingNightclub == false then
  157.   for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  158.           if v.Name == "TipJar" then
  159.           local part = v:FindFirstChildOfClass("Part")
  160.           if part.Name == "SmashCash" and robbingBank == false and robbingNightclub == false then
  161.           busy = true
  162.           busy_with = "robbing tip jars"
  163.           local pos = v.SmashCash.Position
  164.                           for i = 1,10 do
  165.                               wait(0.3)
  166.                               game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  167.                           end
  168.               wait(0.3)
  169.               v.SmashCash.SmashCash.Event:FireServer()
  170.               wait(2)
  171.               if part.Name == "SmashCash" and robbingBank == false and robbingNightclub == false then
  172.            
  173.               else
  174.               busy = false
  175.               end
  176.           end  
  177.           end
  178.   end
  179.    else
  180.    print(string.format(cant_rob, "tip jars", busy_with))
  181. end    
  182.    end)
  183.    end
  184. end)
  185.  
  186. local robCash = coroutine.create(function()
  187.    while wait(5) do
  188.    pcall(function()
  189.    if busy == false and robbingBank == false and robbingNightclub == false then
  190.   for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  191.           if v.Name == "Cash" then
  192.           local part = v:FindFirstChildOfClass("MeshPart")
  193.           if part.Name == "Cash" and robbingBank == false and robbingNightclub == false then
  194.           busy = true
  195.           busy_with = "robbing cash"
  196.           local pos = v.Cash.Position
  197.                           for i = 1,10 do
  198.                               wait(0.3)
  199.                               game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  200.                           end
  201.               wait(0.3)
  202.               v.Cash.Cash.Event:FireServer()
  203.               wait(2)
  204.               if part.Name == "Cash" and robbingBank == false and robbingNightclub == false then
  205.              
  206.               else
  207.               busy = false
  208.               end
  209.           end  
  210.           end
  211.   end
  212.    else
  213.    print(string.format(cant_rob, "cash", busy_with))
  214. end    
  215.    end)
  216.    end
  217. end)
  218.  
  219. local robTv = coroutine.create(function()
  220.    while wait(5) do
  221.    pcall(function()
  222.    if busy == false and robbingBank == false and robbingNightclub == false then
  223.   for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  224.           if v.Name == "TV" then
  225.           local part = v:FindFirstChildOfClass("Part")
  226.           if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  227.           busy = true
  228.           busy_with = "robbing TVs"
  229.           wait(3)
  230.           local pos = v.StealTV.Position
  231.                           for i = 1,10 do
  232.                               wait(0.3)
  233.                               game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  234.                           end
  235.               wait(0.3)
  236.               v.StealTV.StealTV.Event:FireServer()
  237.               wait(2)
  238.               if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  239.            
  240.               else
  241.               busy = false
  242.               end
  243.           end  
  244.           end
  245.   end
  246.    else
  247.    print(string.format(cant_rob, "TVs", busy_with))
  248. end    
  249.    end)
  250.    end
  251. end)
  252.  
  253. local robDropCrate = coroutine.create(function()
  254.    while wait(5) do
  255.    pcall(function()
  256.    if busy == false and robbingBank == false and robbingNightclub == false then
  257.   for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  258.           if v.Name == "DropCrate" then
  259.           local part = v:FindFirstChildOfClass("Part")
  260.           if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  261.           busy = true
  262.           busy_with = "robbing drop crates"
  263.           local pos = v.DropCrate.Position
  264.                           for i = 1,10 do
  265.                               wait(0.3)
  266.                               game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  267.                           end
  268.               wait(0.3)
  269.               v.DropCrate.DropCrate.Event:FireServer()
  270.               wait(2)
  271.               if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  272.            
  273.               else
  274.               busy = false
  275.               end
  276.           end  
  277.           end
  278.   end
  279.    else
  280.    print(string.format(cant_rob, "drop crates", busy_with))
  281. end    
  282.    end)
  283.    end
  284. end)
  285.  
  286. local robAtm = coroutine.create(function()
  287.    while wait(5) do
  288.    pcall(function()
  289.    if busy == false and robbingBank == false and robbingNightclub == false then
  290.   for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  291.           if v.Name == "ATM" then
  292.           local part = v:FindFirstChildOfClass("Part")
  293.           if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  294.           busy = true
  295.           busy_with = "robbing ATMs"
  296.                   wait(1.5)
  297.           local pos = v.ATM.Position
  298.                           for i = 1,10 do
  299.                               wait(0.3)
  300.                               game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  301.                           end
  302.               wait(0.3)
  303.               v.ATM.ATM.Event:FireServer()
  304.               wait(2)
  305.               if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then
  306.          
  307.               else
  308.               busy = false
  309.               end
  310.           end  
  311.           end
  312.   end
  313.    else
  314.    print(string.format(cant_rob, "ATMs", busy_with))
  315. end    
  316.    end)
  317.    end
  318. end)
  319.  
  320. local robSlotmachine = coroutine.create(function()
  321.    while wait(5) do
  322.    pcall(function()
  323.    if busy == false and robbingBank == false and robbingNightclub == false then
  324.   for i, v in pairs(workspace.ObjectSelection:GetChildren()) do
  325.           if v.Name == "SlotMachine" then
  326.           local part = v:FindFirstChildOfClass("Part")
  327.           if part.Name ~= "Nope" and part.name == "SlotMachine" and robbingBank == false and robbingNightclub == false then
  328.           busy = true
  329.           busy_with = "robbing slot machines"
  330.           wait(1.5)
  331.           local pos = v.SlotMachine.Position
  332.                           for i = 1, 1,10 do
  333.                               wait(0.3)
  334.                               game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  335.                           end
  336.               wait(0.5)
  337.               if v.SlotMachine.SlotMachine then
  338.              v.SlotMachine.SlotMachine.Event:FireServer()
  339.               else
  340.              busy = false
  341.               end
  342.               wait(2)
  343.               if part.Name ~= "Nope" and robbingBank == false and robbingNightclub == false then  
  344.               else
  345.               busy = false
  346.               end
  347.           end  
  348.           end
  349.   end
  350.    else
  351.    print(string.format(cant_rob, "slot machines", busy_with))
  352. end    
  353.    end)
  354.    end
  355. end)
  356.  
  357. local robBank = coroutine.create(function()
  358.    while wait(1) do
  359.    pcall(function()
  360. if game.ReplicatedStorage.HeistStatus.Bank.Locked.Value == false and robbingNightclub == false then
  361.   robbingBank = true
  362.   busy = true
  363.   busy_with = "robbing bank"
  364.   warn("All robs have been paused to rob the bank")
  365.   wait(5)
  366.   --[[for i, v in pairs (workspace.ObjectSelection:GetChildren()) do
  367.   if v.Name == "HackComputer" then
  368.   for i = 1,10 do
  369.                           wait(1.5)
  370.                           game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(636.778, 27.5895, 529.505)
  371.                           v.HackComputer.HackComputer.Event:FireServer()
  372.   end
  373.   v.HackComputer.HackComputer.Event:FireServer()
  374.   wait(1)
  375.   v.HackComputer.HackComputer.Event:FireServer()
  376.   wait(1.5)
  377.   return
  378.   end
  379.   wait(3)
  380.   break
  381. end]]
  382. for i = 1,10 do
  383.                    wait(1)
  384.                    game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(739,0,488)
  385. end
  386. wait(.5)
  387.    local pos = workspace.Bank.MoneyBags["Money Bag"].Position
  388.                for i = 1,10 do
  389.                    wait(1)
  390.                    game.Players.LocalPlayer.Character.HumanoidRootPart.Position = pos
  391.                end
  392.                wait(25)
  393.            for i = 1,10 do
  394.                    wait(0.5)
  395.                    game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(2138,25,358)
  396.            end
  397.            robbingBank = false
  398.            busy = false
  399.            wait(bank_cooldown)
  400. else
  401. warn(string.format(cant_rob, "bank", "it's closed"))
  402.    end
  403.    end)
  404.    end
  405. end)
  406.  
  407. local robNightclub = coroutine.create(function()
  408.    while wait(1) do
  409.    pcall(function()
  410. if game.ReplicatedStorage.HeistStatus.Club.Locked.Value == false then
  411.   robbingNightclub = true
  412.   busy = true
  413.   busy_with = "robbing night club"
  414.   wait(5)
  415.   warn("All robs have been paused to rob the night club")
  416.   for i = 1,10 do
  417.                   wait(1)
  418.                   game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(1363,43,-151)
  419.   end
  420.   wait(3)
  421.  
  422.   for i = 1,10 do
  423.                   wait(0.5)
  424.                   game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(1349,142,-100)
  425.   end
  426.   wait(0.3)
  427.   workspace.ObjectSelection.HackKeyPad.HackKeyPad.HackKeyPad.Event:FireServer()
  428.   wait(3)
  429.  
  430.   for i = 1,10 do
  431.                   wait(0.5)
  432.                   game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(1361,142,-155)
  433.   end
  434.               wait(35)
  435.            
  436.           for i = 1,10 do
  437.                   wait(1)
  438.                   game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(2138,25,358)
  439.           end
  440.           robbingNightclub = false
  441.           busy = false
  442.           wait(nightclub_cooldown)
  443.  else
  444.  warn(string.format(cant_rob, "night club", "it's closed"))
  445.    end
  446.    end)
  447.    end
  448. end)
  449.  
  450. local robCasino = coroutine.create(function()
  451.    while wait(1) do
  452.    pcall(function()
  453. if game.ReplicatedStorage.HeistStatus.Casino.Locked.Value == false then
  454.   robbingCasino = true
  455.   busy = true
  456.   busy_with = "robbing casino"
  457.   --[[for i, v in pairs (workspace.ObjectSelection:GetChildren()) do
  458.   if v.Name == "HackComputer" then
  459.   for i = 1,10 do
  460.                           wait(1.5)
  461.                           game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(636.778, 27.5895, 529.505)
  462.                           v.HackComputer.HackComputer.Event:FireServer()
  463.   end
  464.   v.HackComputer.HackComputer.Event:FireServer()
  465.   wait(1)
  466.   v.HackComputer.HackComputer.Event:FireServer()
  467.   wait(1.5)
  468.   return
  469.   end
  470.   wait(15)
  471.   break
  472.    end]]
  473.    warn("All robs have been paused to rob the casino")
  474.    wait(5)
  475. for i = 1,10 do
  476.                    wait(0.5)
  477.                    game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(1646,142,-155)
  478. end
  479.                wait(35)
  480.            for i = 1,10 do
  481.                    wait(0.5)
  482.                    game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(2138,25,358)
  483.            end
  484.            robbingCasino = false
  485.            busy = false
  486.            wait(casino_cooldown)
  487. else
  488. warn(string.format(cant_rob, "casino", "it's closed"))
  489.    end
  490.    end)
  491.    end
  492. end)
  493.  
  494. noclip()
  495. movment()
  496. wait(0.5)
  497. coroutine.resume(robNightclub)
  498. wait(1)
  499. coroutine.resume(robBank)
  500. coroutine.resume(robCashRegister)
  501. coroutine.resume(robDiamondBox)
  502. coroutine.resume(robSafe)
  503. coroutine.resume(robTipJar)
  504. coroutine.resume(robCash)
  505. coroutine.resume(robTv)
  506. --coroutine.resume(robDropCrate)
  507. coroutine.resume(robAtm)
  508. coroutine.resume(robSlotmachine)
  509.  
  510. while wait(10) do
  511. movment()
  512. end
Add Comment
Please, Sign In to add comment