hookfunction(gcinfo, function()
return math.random(200,350)
end)
-- // Constants \\ --
-- [ Services ] --
local Services = setmetatable({}, {__index = function(Self, Index)
local NewService = game:GetService(Index)
if NewService then
Self[Index] = NewService
end
return NewService
end})
-- [ LocalPlayer ] --
local LocalPlayer = Services.Players.LocalPlayer
-- // Variables \\ --
local Connections = {
Weapon1 = nil;
Weapon2 = nil;
Weapon3 = nil;
Backpack = nil;
}
local RoundNumber = workspace.RoundNum
-- // Event Listeners \\ --
local function CharacterAdded(Character)
local Backpack = LocalPlayer:WaitForChild('Backpack')
local function ChildAdded(Child)
if Child.Name == "Weapon1" or Child.Name == "Weapon2" or Child.Name ==
"Weapon3" then
local Module = require(Child)
if Connections[Child.Name] then
Connections[Child.Name]:Disconnect()
Connections[Child.Name] = nil
end
Connections[Child.Name] =
Services.RunService.RenderStepped:Connect(function()
Module.Ammo = Module.MaxAmmo
Module.StoredAmmo = Module.MaxAmmo
Module.HeadShot = 250 + (RoundNumber.Value * 10)
Module.TorsoShot = 250 + (RoundNumber.Value * 10)
Module.LimbShot = 250 + (RoundNumber.Value * 10)
Module.BulletPenetration = 1000
end)
end
end
if Connections.Backpack then
Connections.Backpack:Disconnect()
Connections.Backpack = nil
end
for i,v in ipairs(Backpack:GetChildren()) do
ChildAdded(v)
end
Connections.Backpack = Backpack.ChildAdded:Connect(ChildAdded)
end
LocalPlayer.CharacterAdded:Connect(CharacterAdded)
CharacterAdded(LocalPlayer.Character)