-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] --[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6b117ea336fcee5ec93d60d9"))() end) end) --[[rscripts:analytics:end]] local genv = getgenv() if type(genv.__ttk_ia_unload) == "function" then pcall(genv.__ttk_ia_unload) end local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Modules = ReplicatedStorage:WaitForChild("Modules") local GunController = require(Modules.Client.Controllers.GunController) local Config = { Enabled = true, KeepReserveFull = true, ToggleKey = Enum.KeyCode.F9 } genv.TTK_InfiniteAmmo = Config local magCache = GunController._magCache local magSizeCache = GunController._magSizeCache local magArrayCache = GunController._magArrayCache local ammoChanged = GunController.AmmoChanged local fireSignal = ammoChanged and ammoChanged.Fire local function refillAllMags() if not (Config.KeepReserveFull and type(magCache) == "table" and type(magSizeCache) == "table") then return end for wName, size in magSizeCache do if type(size) == "number" and size > 0 then if type(magCache[wName]) == "number" and magCache[wName] < size then magCache[wName] = size end local arr = type(magArrayCache) == "table" and magArrayCache[wName] if type(arr) == "table" then for i = 1, #arr do if type(arr[i]) == "number" and arr[i] < size then arr[i] = size end end end end end end local lastReserveSync = 0 local hbConn = RunService.Heartbeat:Connect(function() if not Config.Enabled then return end local weapon = GunController.Weapon if type(weapon) == "table" then local name = weapon.Name local maxMag = weapon.MaxMagSize or (name and magSizeCache and magSizeCache[name]) or 30 if type(weapon.MagAmmo) == "number" and weapon.MagAmmo < maxMag then weapon.MagAmmo = maxMag if name and magCache then magCache[name] = maxMag end if fireSignal then local mags = GunController._magazines local reserve = 999 if mags and type(mags.GetReserve) == "function" then local ok, r = pcall(mags.GetReserve, mags) if ok and type(r) == "number" then reserve = r end end pcall(fireSignal, ammoChanged, maxMag, reserve) end end end local now = os.clock() if now - lastReserveSync >= 0.5 then lastReserveSync = now refillAllMags() end end) local inputConn = UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Config.ToggleKey then Config.Enabled = not Config.Enabled end end) genv.__ttk_ia_unload = function() if hbConn then pcall(function() hbConn:Disconnect() end) hbConn = nil end if inputConn then pcall(function() inputConn:Disconnect() end) inputConn = nil end genv.__ttk_ia_unload = nil end