--BROUGHT TO YOU BY RobloxScripter.com!--
local lp = game.Players.LocalPlayer.Character
local Thing = lp:FindFirstChildOfClass("Tool")
local function SetStats(StateName,Value)
Thing:SetAttribute(StateName, Value)
end
Thing:GetAttributeChangedSignal("Ammo"):Connect(function() SetStats("Ammo",math.huge) end)
Thing:GetAttributeChangedSignal("AmmoAdded"):Connect(function() SetStats("AmmoAdded",math.huge) end)
Thing:GetAttributeChangedSignal("Cooldown"):Connect(function() SetStats("Cooldown", 0) end)
Thing:GetAttributeChangedSignal("TimesFired"):Connect(function() SetStats("TimesFired", 0) end)
SetStats("AmmoAdded",1)