This is the server sided code for reloading:
local function reload(player)
task.spawn(function()
task.wait(0.1)
ReloadSound:Play()
end)
task.spawn(function()
AllowedToShoot.Value = false
task.wait(1.7)
AllowedToShoot.Value = true
end)
local maxAmmo = tool:GetAttribute("MaxAmmoInGun")
local neededAmmo = maxAmmo - ReadyToShoot.Value
if AmmoInGun.Value > 0 and neededAmmo > 0 then
if AmmoInGun.Value >= neededAmmo then
AmmoInGun.Value -= neededAmmo
ReadyToShoot.Value += neededAmmo
else
ReadyToShoot.Value += AmmoInGun.Value
AmmoInGun.Value = 0
end
end
print("Ready to shoot: " .. ReadyToShoot.Value)
print("Ammo In Gun: " .. AmmoInGun.Value)
end
** You are now Level 3! **
it's not one of your guns, it's all of them