Advertisement
Guest User

big paintball script unlock all guns

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