print(string.char(98, 121, 32, 114, 117, 108, 101, 32, 124, 32, 120, 117, 113, 111, 114))
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local function fixGCTables()
for _, v in pairs(getgc(true)) do
if type(v) == "table" then
if rawget(v, "AmmoPerShot") ~= nil then
rawset(v, "AmmoPerShot", 0)
end
if rawget(v, "MagSize") ~= nil then
rawset(v, "MagSize", 999999)
end
if rawget(v, "Reserve") ~= nil and type(rawget(v, "Reserve")) == "number" then
rawset(v, "Reserve", 999999)
end
end
end
end
local function processTool(tool)
if not tool or not tool:IsA("Tool") then return end
for _, child in ipairs(tool:GetChildren()) do
if child:IsA("ModuleScript") and child.Name:lower():find("setting") then
pcall(function()
local settingsMod = require(child)
if type(settingsMod) == "table" then
settingsMod.AmmoPerShot = 0
if settingsMod.MagSize then settingsMod.MagSize = 999999 end
if settingsMod.Reserve then settingsMod.Reserve = 999999 end
end
end)
end
end
for _, desc in ipairs(tool:GetDescendants()) do
if desc:IsA("ValueBase") then
local name = desc.Name:lower()
if name == "ammo" or name == "clip" or name == "mag" or name == "reserve" or name == "defaultreserve" then
pcall(function() desc.Value = 999999 end)
desc.Changed:Connect(function(newVal)
if type(newVal) == "number" and newVal < 999999 then
pcall(function() desc.Value = 999999 end)
end
end)
end
end
end
for attr, val in pairs(tool:GetAttributes()) do
local lowerAttr = attr:lower()
if type(val) == "number" and (lowerAttr == "ammo" or lowerAttr == "clip" or lowerAttr == "reserve" or lowerAttr == "mag") then
pcall(function() tool:SetAttribute(attr, 999999) end)
tool:GetAttributeChangedSignal(attr):Connect(function()
local current = tool:GetAttribute(attr)
if type(current) == "number" and current < 999999 then
pcall(function() tool:SetAttribute(attr, 999999) end)
end
end)
end
end
end
local function scanAll()
fixGCTables()
if LocalPlayer.Character then
for _, child in ipairs(LocalPlayer.Character:GetChildren()) do
if child:IsA("Tool") then processTool(child) end
end
end
if LocalPlayer.Backpack then
for _, child in ipairs(LocalPlayer.Backpack:GetChildren()) do
if child:IsA("Tool") then processTool(child) end
end
end
end
if LocalPlayer.Backpack then
LocalPlayer.Backpack.ChildAdded:Connect(function(child)
if child:IsA("Tool") then processTool(child) end
end)
end
LocalPlayer.CharacterAdded:Connect(function(char)
char.ChildAdded:Connect(function(child)
if child:IsA("Tool") then processTool(child) end
end)
end)
if LocalPlayer.Character then
LocalPlayer.Character.ChildAdded:Connect(function(child)
if child:IsA("Tool") then processTool(child) end
end)
end
task.spawn(function()
while true do
scanAll()
task.wait(0.3)
end
end)inf ammo nothinh more lol
No comments yet. Be the first to comment!
1print(string.char(98, 121, 32, 114, 117, 108, 101, 32, 124, 32, 120, 117, 113, 111, 114))
2
3local Players = game:GetService("Players")
4local LocalPlayer = Players.LocalPlayer
5
6local function fixGCTables()
7 for _, v in pairs(getgc(true)) do
8 if type(v) == "table" then
9 if rawget(v, "AmmoPerShot") ~= nil then
10 rawset(v, "AmmoPerShot", 0)
11 end
12 if rawget(v, "MagSize") ~= nil then
13 rawset(v, "MagSize", 999999)
14 end
15 if rawget(v, "Reserve") ~= nil and type(rawget(v, "Reserve")) == "number" then
16 rawset(v, "Reserve", 999999)
17 end
18 end
19 end
20end
21
22local function processTool(tool)
23 if not tool or not tool:IsA("Tool") then return end
24
25 for _, child in ipairs(tool:GetChildren()) do
26 if child:IsA("ModuleScript") and child.Name:lower():find("setting") then
27 pcall(function()
28 local settingsMod = require(child)
29 if type(settingsMod) == "table" then
30 settingsMod.AmmoPerShot = 0
31 if settingsMod.MagSize then settingsMod.MagSize = 999999 end
32 if settingsMod.Reserve then settingsMod.Reserve = 999999 end
33 end
34 end)
35 end
36 end
37
38 for _, desc in ipairs(tool:GetDescendants()) do
39 if desc:IsA("ValueBase") then
40 local name = desc.Name:lower()
41 if name == "ammo" or name == "clip" or name == "mag" or name == "reserve" or name == "defaultreserve" then
42 pcall(function() desc.Value = 999999 end)
43 desc.Changed:Connect(function(newVal)
44 if type(newVal) == "number" and newVal < 999999 then
45 pcall(function() desc.Value = 999999 end)
46 end
47 end)
48 end
49 end
50 end
51
52 for attr, val in pairs(tool:GetAttributes()) do
53 local lowerAttr = attr:lower()
54 if type(val) == "number" and (lowerAttr == "ammo" or lowerAttr == "clip" or lowerAttr == "reserve" or lowerAttr == "mag") then
55 pcall(function() tool:SetAttribute(attr, 999999) end)
56 tool:GetAttributeChangedSignal(attr):Connect(function()
57 local current = tool:GetAttribute(attr)
58 if type(current) == "number" and current < 999999 then
59 pcall(function() tool:SetAttribute(attr, 999999) end)
60 end
61 end)
62 end
63 end
64end
65
66local function scanAll()
67 fixGCTables()
68 if LocalPlayer.Character then
69 for _, child in ipairs(LocalPlayer.Character:GetChildren()) do
70 if child:IsA("Tool") then processTool(child) end
71 end
72 end
73 if LocalPlayer.Backpack then
74 for _, child in ipairs(LocalPlayer.Backpack:GetChildren()) do
75 if child:IsA("Tool") then processTool(child) end
76 end
77 end
78end
79
80if LocalPlayer.Backpack then
81 LocalPlayer.Backpack.ChildAdded:Connect(function(child)
82 if child:IsA("Tool") then processTool(child) end
83 end)
84end
85
86LocalPlayer.CharacterAdded:Connect(function(char)
87 char.ChildAdded:Connect(function(child)
88 if child:IsA("Tool") then processTool(child) end
89 end)
90end)
91
92if LocalPlayer.Character then
93 LocalPlayer.Character.ChildAdded:Connect(function(child)
94 if child:IsA("Tool") then processTool(child) end
95 end)
96end
97
98task.spawn(function()
99 while true do
100 scanAll()
101 task.wait(0.3)
102 end
103end)