Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local PlayerGui = Players.LocalPlayer.PlayerGui
- while wait(1) do
- local clientScriptEnv
- pcall(function()
- local clientScript = PlayerGui.autoExec.client
- clientScriptEnv = getsenv(clientScript)
- end)
- if not clientScriptEnv then
- continue
- end
- local clientReloadFunc = clientScriptEnv.reload
- local weaponStatsTable = debug.getupvalue(clientReloadFunc, 3)
- for _, toolStats in pairs(weaponStatsTable) do
- if toolStats.isGun then
- toolStats.curAmmo = math.huge
- toolStats.maxAmmo = math.huge
- toolStats.exAmmo = math.huge
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement