kipr987

Bank

Oct 6th, 2025 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.83 KB | None | 0 0
  1. repeat wait() until workspace.CurrentCamera.CameraType == Enum.CameraType.Custom
  2. wait(1)
  3.  
  4. local player = game:GetService("Players").LocalPlayer
  5. local RunService = game:GetService("RunService")
  6. local TweenService = game:GetService("TweenService")
  7. local VirtualInputManager = game:GetService("VirtualInputManager")
  8. local TeleportService = game:GetService("TeleportService")
  9.  
  10. local ff = 23
  11. local hh = 6
  12. local speed = 50
  13.  
  14. -- Координаты для разных банков
  15. local bank5 = {
  16.     Vector3.new(14, 19, 862), Vector3.new(27, 19, 860), Vector3.new(40, 19, 926),
  17.     Vector3.new(60, 18, 922), Vector3.new(103, 1, 914), Vector3.new(96, -13, 878),
  18.     Vector3.new(91, -13, 856), Vector3.new(144, -8, 847), Vector3.new(159, -8, 844)
  19. }
  20. local bank7 = {
  21.     Vector3.new(14, 19, 862), Vector3.new(27, 19, 860), Vector3.new(40, 19, 926),
  22.     Vector3.new(60, 18, 922), Vector3.new(103, 1, 914), Vector3.new(90, 1, 845),
  23.     Vector3.new(57, 0, 852), Vector3.new(48, 0, 800)
  24. }
  25. local bank4 = {
  26.     Vector3.new(14, 19, 862), Vector3.new(27, 19, 860), Vector3.new(40, 19, 926),
  27.     Vector3.new(60, 18, 922), Vector3.new(103, 1, 914), Vector3.new(97, 1, 876),
  28.     Vector3.new(23, 1, 888)
  29. }
  30. local bankof1 = {
  31.     Vector3.new(14, 19, 862), Vector3.new(27, 19, 860), Vector3.new(40, 19, 926),
  32.     Vector3.new(60, 18, 922), Vector3.new(75, 28, 918), Vector3.new(75, 60, 838),
  33.     Vector3.new(28, 60, 842), Vector3.new(30, 67, 852), Vector3.new(33, 60, 867),
  34.     Vector3.new(41, 67, 866), Vector3.new(54, 60, 864), Vector3.new(56, 67, 877),
  35.     Vector3.new(59, 60, 895), Vector3.new(50, 67, 896), Vector3.new(39, 60, 898),
  36.     Vector3.new(42, 67, 911), Vector3.new(45, 60, 927), Vector3.new(53, 67, 925),
  37.     Vector3.new(83, 60, 919)
  38. }
  39. local bank3 = {
  40.     Vector3.new(14, 19, 862), Vector3.new(27, 19, 860), Vector3.new(40, 19, 926),
  41.     Vector3.new(55, 17, 922), Vector3.new(57, -8, 922), Vector3.new(63, -8, 918),
  42.     Vector3.new(190, -8, 900)
  43. }
  44. local bank8 = {
  45.     Vector3.new(-729, 20, -5962), Vector3.new(-627, 19, -5998), Vector3.new(-588, 2, -6015),
  46.     Vector3.new(-587, 2, -6016), Vector3.new(-563, 2, -5959), Vector3.new(-615, 2, -5963),
  47.     Vector3.new(-635, 3, -5953)
  48. }
  49. local bank9 = {
  50.     Vector3.new(-728, 20, -5962), Vector3.new(-632, 19, -5995), Vector3.new(-628, -7, -5997),
  51.     Vector3.new(-607, -6, -6006), Vector3.new(-575, -6, -5938), Vector3.new(-615, -6, -5921),
  52.     Vector3.new(-631, -6, -5964)
  53. }
  54. local bank2of = {
  55.     Vector3.new(-728, 20, -5962), Vector3.new(-632, 19, -5995), Vector3.new(-615, 10, -6003),
  56.     Vector3.new(-602, 10, -6009), Vector3.new(-593, 0, -5987), Vector3.new(-585, 0, -5965),
  57.     Vector3.new(-604, -8, -5959), Vector3.new(-628, -8, -5991), Vector3.new(-640, -8, -5964),
  58.     Vector3.new(-675, -8, -5950)
  59. }
  60. local bank6 = {
  61.     Vector3.new(-729, 20, -5962), Vector3.new(-627, 19, -5998), Vector3.new(-630, 1, -5998),
  62.     Vector3.new(-731, 1, -5955)
  63. }
  64.  
  65. -- Установка скорости ходьбы
  66. RunService.RenderStepped:Connect(function()
  67.     pcall(function()
  68.         player.Character.Humanoid.WalkSpeed = 80
  69.     end)
  70. end)
  71.  
  72. -- Функция телепортации
  73. function teleport(pos, speed, dis)
  74.     local hrp = player.Character.HumanoidRootPart
  75.     if hrp:FindFirstChild("Vel") then
  76.         hrp.Vel:Destroy()
  77.     end
  78.     local vel = Instance.new("BodyVelocity", hrp)
  79.     vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  80.     vel.Name = "Vel"
  81.     vel.P = 0
  82.     local d = (hrp.Position - pos).Magnitude
  83.     local cood = pos
  84.     repeat
  85.         task.wait()
  86.         vel.Velocity = CFrame.lookAt(hrp.Position, cood).LookVector * (d / d) * speed
  87.     until (hrp.Position - pos).Magnitude < dis
  88.     vel.Velocity = Vector3.new(0, 0, 0)
  89.     task.wait(0.5)
  90.     vel:Destroy()
  91. end
  92.  
  93. -- Телепорты для входа в игру
  94. teleport(player.Character.HumanoidRootPart.Position + Vector3.new(0, 200, 0), 300, 100)
  95. teleport(Vector3.new(-1214, 220, -1321), 80, 10)
  96. teleport(Vector3.new(-1214, 30, -1321), 600, 10)
  97.  
  98. -- Логика сидения и прыжка для взаимодействия
  99. player.Character.Humanoid.Sit = true
  100. task.wait(0.2)
  101. player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  102. repeat
  103.     VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E, false, game)
  104.     task.wait(0.05)
  105.     VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E, false, game)
  106. until player.Character.Humanoid.Sit == true
  107.  
  108. -- Функция удаления препятствий
  109. function remove()
  110.     for _, v in pairs(workspace:GetChildren()) do
  111.         if v.Name == "SlideDoor" then
  112.             v:Destroy()
  113.         end
  114.     end
  115.     for _, v in pairs(workspace.Banks:GetDescendants()) do
  116.         if (v.Name == "BarbedWire" or v.Name == "Door") and v:IsA("Part") or
  117.            (v:IsA("Part") and v:FindFirstChild("TouchInterest") and v.BrickColor == BrickColor.new("Dusty Rose")) or
  118.            (v.Name == "Part" and v:FindFirstChild("TouchInterest")) then
  119.             v.CanTouch = false
  120.             v.CanCollide = false
  121.             v.Transparency = 1
  122.         end
  123.         if v.Name == "SlideDoor" or v.Name == "SwingDoor" or v.Name == "Doors" or v.Name == "BankDoor" then
  124.             for _, f in pairs(v:GetDescendants()) do
  125.                 if f:IsA("Part") or f:IsA("MeshPart") then
  126.                     f.CanCollide = false
  127.                     f.Transparency = 1
  128.                 end
  129.             end
  130.         end
  131.     end
  132. end
  133.  
  134. -- Флаги для событий
  135. local plane = false
  136. local train = false
  137. local bank1 = false
  138. local bank2 = false
  139.  
  140. -- Ожидание события
  141. repeat
  142.     task.wait()
  143.     print(workspace.Banks.Bank.Extra.Sign.Decal.Transparency)
  144.     if workspace:FindFirstChild("Plane") then
  145.         plane = true
  146.     end
  147.     if workspace:FindFirstChild("Train") then
  148.         train = true
  149.     end
  150.     if workspace.Banks.Bank.Extra.Sign.Decal.Transparency >= 0.7 then
  151.         bank1 = true
  152.     end
  153.     if workspace.Banks.Bank2.Extra.Light.SurfaceLight.Enabled == true then
  154.         bank2 = true
  155.     end
  156. until plane or train or bank1 or bank2
  157.  
  158. -- Функция реджойна
  159. function rejoin()
  160.     player:Kick("\nRejoining...")
  161.     task.wait()
  162.     TeleportService:Teleport(game.PlaceId, player)
  163. end
  164.  
  165. -- Функция движения к точке с твином
  166. local function moveToPoint(targetPos)
  167.     local hrp = player.Character.HumanoidRootPart
  168.     local distance = (targetPos - hrp.Position).Magnitude
  169.     local time = distance / speed
  170.     local tweenInfo = TweenInfo.new(time, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
  171.     local tween = TweenService:Create(hrp, tweenInfo, {CFrame = CFrame.new(targetPos)})
  172.     tween:Play()
  173.     tween.Completed:Wait()
  174. end
  175.  
  176. -- Функция для фарма банка (вперед и назад)
  177. local function farmBank(points,name)
  178.     for i = 1, #points do
  179.         moveToPoint(points[i])
  180.     end
  181. repeat wait() until game:GetService("Players").LocalPlayer.PlayerGui.RobberyMoneyGui.Enabled == true
  182. speed = 75
  183.     for i = #points, 1, -1 do
  184.         moveToPoint(points[i])
  185.     end
  186.     task.wait(hh)
  187.     rejoin()
  188. end
  189.  
  190. -- Логика для bank1
  191. if bank1 then
  192.     teleport(player.Character.HumanoidRootPart.Position + Vector3.new(0, 200, 0), 400, 100)
  193.     teleport(Vector3.new(1, 219, 865), 800, 20)
  194.     teleport(Vector3.new(1, 19, 865), 300, 20)
  195.     task.wait(1)
  196.     VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E, false, game)
  197.     task.wait(0.05)
  198.     VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E, false, game)
  199.     remove()
  200.     local layout = workspace.Banks.Bank.Layout
  201.     if layout:FindFirstChild("05Underwater") then
  202.         farmBank(bank5)
  203.     elseif layout:FindFirstChild("07TheMint") then
  204.         farmBank(bank7)
  205.     elseif layout:FindFirstChild("04Remastered") then
  206.         farmBank(bank4)
  207.     elseif layout:FindFirstChild("01UpperManagement") then
  208.         farmBank(bankof1)
  209.     elseif layout:FindFirstChild("03Corridor") then
  210.         farmBank(bank3)
  211.     end
  212. elseif bank2 then
  213.     teleport(player.Character.HumanoidRootPart.Position + Vector3.new(0, 500, 0), 400, 100)
  214.     teleport(Vector3.new(-751, 520, -5954), 800, 20)
  215.     teleport(Vector3.new(-751, 20, -5954), 300, 20)
  216.     task.wait(1)
  217.     VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E, false, game)
  218.     task.wait(0.05)
  219.     VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E, false, game)
  220.     remove()
  221.     local layout = workspace.Banks.Bank2.Layout
  222.     if layout:FindFirstChild("08Deductions") then
  223.         farmBank(bank8)
  224.     elseif layout:FindFirstChild("09Presidential") then
  225.         farmBank(bank9)
  226.     elseif layout:FindFirstChild("02Basement") then
  227.         farmBank(bank2of)
  228.     elseif layout:FindFirstChild("06TheBlueRoom") then
  229.         farmBank(bank6)
  230.     end
  231. end
  232.  
  233. -- Если появился plane или train, реджойн
  234. if plane or train then
  235.     rejoin()
  236. end
  237.  
Advertisement
Add Comment
Please, Sign In to add comment