Advertisement
Upscalefanatic3

(Roblox) Base Raiders OP GUN MOD

Mar 28th, 2020
1,510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. for i, item in next, game:GetService("Players").LocalPlayer.Backpack:GetChildren() do
  2. if item:FindFirstChild("Ranged") then
  3. -- table.foreach(game.Players.LocalPlayer.Backpack:GetChildren(), print)
  4. local shoot = getsenv(item:FindFirstChild("Ranged")).shoot -- Gets the shoot function to get and modify its upvalues
  5. local tab = debug.getupvalue(shoot,2) -- Upvalue number 2 is the modulescript containing gun info
  6.  
  7. -- Modify properties here
  8. rawset(tab,"fireMode",1) -- Automatic
  9. rawset(tab,"range",999999) -- Long bullet range
  10. rawset(tab, "reloadTime",0.01) -- (Almost) no reload
  11. rawset(tab, "magSize",math.huge) -- Inifite mag size (required for infinite ammo)
  12. rawset(tab, "minSpread",0) -- No spread
  13. rawset(tab, "maxSpread",0) -- No spread
  14. debug.setupvalue(shoot, 2, tab) -- Sets the new and modified table to upvalue number 2
  15. debug.setupvalue(shoot, 7, 0.07) -- This is the firerate upvalue
  16. debug.setupvalue(shoot, 3, math.huge) -- This is the ammo upvalue, Infinite ammo
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement