19xjohnnyx

Big Paintball (Unlock Every Gun)

Apr 14th, 2022 (edited)
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. local library = require(game:GetService("ReplicatedStorage").Framework.Library)
  2. local env = getsenv(game:GetService("Players").LocalPlayer.PlayerScripts.Scripts.Game["First Person Controller"])
  3. local unlock_all = true
  4. --// Gun Bypass
  5. local old_fire = library.Network.Fire
  6. library.Network.Fire = newcclosure(function(self, ...)
  7. local args = {...}
  8. if unlock_all and tostring(self) == "Request Respawn" then
  9. args[1] = "1"
  10. end
  11. return old_fire(self, unpack(args))
  12. end)
  13. local old_own = env.DoesOwnGun
  14. env.DoesOwnGun = function(...)
  15. return (unlock_all and true) or old_own(...)
  16. end
  17. --
  18. --// Unlock All
  19. local old_own_gun = library.GunCmds.DoesOwnGun
  20. library.GunCmds.DoesOwnGun = newcclosure(function(self, ...)
  21. return (unlock_all and true) or old_own_gun(self, ...)
  22. end)
  23. --
  24. --// Unlock Offsale
  25. for _, gun in next, library.Directory.Guns do
  26. gun["offsale"] = false
  27. end
  28. --
Add Comment
Please, Sign In to add comment