Advertisement
Default_Modded

Redwood INF

Jan 29th, 2023
1,117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local PlayerGui = Players.LocalPlayer.PlayerGui
  3.  
  4. while wait(1) do
  5.     local clientScriptEnv
  6.     pcall(function()
  7.         local clientScript = PlayerGui.autoExec.client
  8.         clientScriptEnv = getsenv(clientScript)
  9.     end)
  10.    
  11.     if not clientScriptEnv then
  12.         continue
  13.     end
  14.    
  15.     local clientReloadFunc = clientScriptEnv.reload
  16.     local weaponStatsTable = debug.getupvalue(clientReloadFunc, 3)
  17.  
  18.     for _, toolStats in pairs(weaponStatsTable) do
  19.         if toolStats.isGun then
  20.            toolStats.curAmmo = math.huge
  21.            toolStats.maxAmmo = math.huge
  22.            toolStats.exAmmo = math.huge
  23.         end
  24.     end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement