Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. local kel = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  2. local kek = game:GetService("Players").LocalPlayer.Character.Humanoid
  3. local repStor = game:GetService("ReplicatedStorage")
  4. warn("Loaded AUTO AFK Farm - Heists by Disterso")
  5. function checkbal()
  6. local a = game:GetService("Players").LocalPlayer.Data
  7. local b = a.BackpackSize.Value * 50
  8. local c = a:WaitForChild("CashCarried").Value
  9. if c <= b and c + 100 >= b then
  10. return true
  11. end
  12. end
  13.  
  14. function tp(hideout)
  15. wait(0.5)
  16. for i,v in pairs(game.Workspace[hideout].Doors.VD:GetChildren()) do
  17. local c = v.Door.Trig.CFrame
  18. kel.CFrame = c
  19. end
  20. end
  21. end
  22.  
  23. function tycoon()
  24. local a = game:GetService("Players").LocalPlayer.Data
  25. local b = a.HideoutNumber.Value
  26. local c = workspace:FindFirstChild("Hideout" .. b)
  27. tp(tostring(c))
  28. end
  29.  
  30. function start()
  31. while wait(12) do
  32. kek.Sit = true
  33. wait(0.5)
  34. for i,v in pairs(game.Workspace.Items.Items:GetChildren()) do
  35. if(v:FindFirstChild("D") and checkbal()) then
  36. local Diamond = v.D.CFrame
  37. local A = v.D
  38. kel.CFrame = Diamond
  39. wait(0.3)
  40. repStor.remoteGiveCashCarried:FireServer(A)
  41. wait(0.3)
  42. elseif(checkbal() == false) then
  43. tycoon()
  44. wait(0.3)
  45. repStor.remoteDepoVaultCash:FireServer()
  46. end
  47. end
  48. for i,v in pairs(workspace.Items.Items:GetChildren()) do
  49. if(v:FindFirstChild("1G") and checkbal()) then
  50. local Gold = v["1G"].CFrame
  51. local B = v["1G"]
  52. kel.CFrame = Gold
  53. wait(0.3)
  54. repStor.remoteGiveCashCarried:FireServer(B)
  55. wait(0.3)
  56. elseif(checkbal() == false) then
  57. tycoon()
  58. wait(0.3)
  59. repStor.remoteDepoVaultCash:FireServer()
  60. end
  61. end
  62. for i,v in pairs(workspace.Items.Items:GetChildren()) do
  63. if(v:FindFirstChild("P") and checkbal()) then
  64. local ATM = v.P.CFrame
  65. local C = v.P
  66. kel.CFrame = ATM
  67. wait(0.3)
  68. repStor.remoteGiveCashCarried:FireServer(C)
  69. wait(0.3)
  70. elseif(checkbal() == false) then
  71. tycoon()
  72. wait(0.3)
  73. repStor.remoteDepoVaultCash:FireServer()
  74. end
  75. end
  76. for i,v in pairs(workspace.Items.Items:GetChildren()) do
  77. if(v:FindFirstChild("Spade") and checkbal()) then
  78. local Spade = v.Spade.CFrame
  79. local N = v.Spade
  80. kel.CFrame = Spade
  81. wait(0.3)
  82. repStor.remoteGiveCashCarried:FireServer(N)
  83. wait(0.3)
  84. elseif(checkbal() == false) then
  85. tycoon()
  86. wait(0.3)
  87. repStor.remoteDepoVaultCash:FireServer()
  88. end
  89. end
  90. tycoon()
  91. wait(0.3)
  92. repStor.remoteDepoVaultCash:FireServer()
  93. for i,v in pairs(workspace.Items.Items:GetChildren()) do
  94. if(v:FindFirstChild("Union") and checkbal()) then
  95. local Bucket = v.Union.CFrame
  96. local O = v.Union
  97. kel.CFrame = Bucket
  98. wait(0.3)
  99. repStor.remoteGiveCashCarried:FireServer(O)
  100. wait(0.3)
  101. elseif(checkbal() == false) then
  102. tycoon()
  103. wait(0.3)
  104. repStor.remoteDepoVaultCash:FireServer()
  105. end
  106. end
  107. end
  108. end
  109. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement