-- 3) vault is closed -> buy C4 and blow it open (the only path that touches the vault) if not VaultBlown() then if os.clock() - LastPlant < PlantCooldown then Report("waiting on the C4 charge (" .. math.floor(PlantCooldown - (os.clock() - LastPlant)) .. "s)") task.wait(1) continue end local VaultPrompt, VaultPart = VaultPrompt() if not (VaultPrompt and VaultPart) then Report("vault prompt not found") task.wait(2) continue end local C4 = FarmTool("C4") if not C4 then local Shop = Workspace:FindFirstChild("GUNS") local C4Model = Shop and Shop:FindFirstChild("C4", true) local Handle = C4Model and C4Model:FindFirstChild("Handle", true) local Buy = Handle and Handle:FindFirstChild("BuyPrompt") local Money = LocalPlayer.stored and LocalPlayer.stored.Money.Value or 0 if Buy and Money >= 1200 then Report("buying C4") FarmTeleport(CFrame.new(Handle.Position + Vector3.new(0, 3, 0)), 5) pcall(fireproximityprompt, Buy) task.wait(0.8) C4 = FarmTool("C4") else Report("no C4 and not enough money for one") task.wait(2) continue end end if not C4 then Report("C4 purchase failed - retrying soon") LastPlant = os.clock() PlantCooldown = 4 task.wait(1) continue end local Hum = Equipment() if C4.Parent ~= LocalPlayer.Character and Hum then pcall(function() Hum:EquipTool(C4) end) task.wait(0.4) end local Approach = VaultPart.CFrame.LookVector Approach = Vector3.new(Approach.X, 0, Approach.Z) if Approach.Magnitude < 0.1 then Approach = Vector3.new(0, 0, 1) end Approach = Approach.Unit local Spot = CFrame.new(VaultPart.Position + Approach * 3 + Vector3.new(0, 2, 0), VaultPart.Position) FarmTeleport(Spot, 8) local Cam = Workspace.CurrentCamera if Cam then Cam.CFrame = CFrame.new(VaultPart.Position + Approach * 6 + Vector3.new(0, 2, 0), VaultPart.Position) end task.wait(0.4) local Char = LocalPlayer.Character local HRP = Char and Char:FindFirstChild("HumanoidRootPart") if HRP and (HRP.Position - VaultPart.Position).Magnitude < 7.5 then Report("planting C4 on the vault") pcall(function() VaultPrompt:InputHoldBegin() end) task.wait(1.2) pcall(function() VaultPrompt:InputHoldEnd() end) task.wait(0.5) if FarmTool("C4") then pcall(fireproximityprompt, VaultPrompt) task.wait(0.7) end LastPlant = os.clock() if FarmTool("C4") then PlantCooldown = 8 Report("the C4 did not take - will retry") else PlantCooldown = 40 Registers = {} ScannedAt = 0 Report("C4 planted - waiting for the blast") end else Report("too far from the vault - retrying") PlantCooldown = 0 end continue end -- 4) the vault is open: cash can be taken LastPlant = 0 PlantCooldown = 0 local Result = GrabOne()