Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local rep = game:GetService('ReplicatedStorage', 1)
- if not rep then return end
- local ws = rep:WaitForChild('WeaponsSystem', 1)
- if not ws then return end
- local lib = ws:WaitForChild('Libraries', 1)
- if not lib then return end
- local bw = lib:WaitForChild('BaseWeapon', 1)
- if not bw then return end
- local module
- pcall(function()
- module = require(bw)
- end)
- if not module or (module and typeof(module) ~= 'table') then return end
- local gcf = rawget(module, 'getConfigValue')
- if not gcf or (gcf and typeof(gcf) ~= 'function') then return end
- rawset(module, 'getConfigValue', function(...)
- local val = ({...})[2]
- print(val)
- if rawequal(val, 'ShotCooldown') or rawequal(val, 'RecoilMin') or rawequal(val, 'RecoilMax') or rawequal(val, 'ReloadTime') then
- return 0
- elseif rawequal(val,'FireMode') then
- return 'auto'
- end
- return gcf(...)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement