Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gun System won't reload clips?

Asked by 5 years ago
Edited 5 years ago

https://gyazo.com/7b0745b93fc93c78a1f4cd9041ee8bff

https://gyazo.com/7816d616153e25658cf51715977bbbcc

Whats Wrong? When i reload, clip anim plays, but it wont add ammo

if Module.LimitedAmmoEnabled then

if Module.ShotgunEnabled == false then

local Magazine = 1

if Ammo > 0 then

Ammo = Ammo - Magazine

Mag = Module.AmmoPerMag

elseif Module.ShotgunEnabled == true then

local ammoToUse = math.min(Module.AmmoPerMag - Mag, Ammo)

print(ammoToUse)

Mag = Mag + ammoToUse

Ammo = Ammo - ammoToUse

end

end

else

Mag = Module.AmmoPerMag

end

It does not print anything, why?

0
What is in the output? itz_rennox 412 — 5y
0
mag is current ammo, ammo is current mags SunxLightz 30 — 5y

1 answer

Log in to vote
-1
Answered by 5 years ago

What is in the Output?

0
nothing SunxLightz 30 — 5y
Ad

Answer this question