Advertisement
Brack2

Untitled

Jul 13th, 2021
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. local rep = game:GetService('ReplicatedStorage', 1)
  2. if not rep then return end
  3. local ws = rep:WaitForChild('WeaponsSystem', 1)
  4. if not ws then return end
  5. local lib = ws:WaitForChild('Libraries', 1)
  6. if not lib then return end
  7. local bw = lib:WaitForChild('BaseWeapon', 1)
  8. if not bw then return end
  9.  
  10. local module
  11. pcall(function()
  12. module = require(bw)
  13. end)
  14. if not module or (module and typeof(module) ~= 'table') then return end
  15.  
  16. local gcf = rawget(module, 'getConfigValue')
  17. if not gcf or (gcf and typeof(gcf) ~= 'function') then return end
  18.  
  19. rawset(module, 'getConfigValue', function(...)
  20. local val = ({...})[2]
  21. print(val)
  22.  
  23. if rawequal(val, 'ShotCooldown') or rawequal(val, 'RecoilMin') or rawequal(val, 'RecoilMax') or rawequal(val, 'ReloadTime') then
  24. return 0
  25. elseif rawequal(val,'FireMode') then
  26. return 'auto'
  27. end
  28.  
  29. return gcf(...)
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement