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

How to I keep it from Reloading? [closed]

Asked by 10 years ago
01function Reload()
02    if Cooldown==true then return end
03    if (GoalPercent~=0) and (TargetCFrame~=GunHolds["Camera_Zoom"][2]) then return end
04    Cooldown=true  
05    TargetCFrame=GunHolds["Camera_Reload"][2]
06    GoalPercent=1
07    ggoaly=math.rad(-15)
08    wait(0.25)
09    for i = 0,0.9,0.09 do
10        TransitionWeld(LArmCFs["L_Arm"][2],LArmCFs["L_RP_Trans"][2],armW,i)
11        TransitionWeld(GArmCFs["L_Arm"][2],GArmCFs["L_RP_Trans"][2],garmW,i)
12        wait()
13    end
14    ggun.c1.Transparency=1
15    gun.c1.Transparency=1
View all 62 lines...

This reloads and makes the TotalAmmo in my guns go negative numbers instead of staying at 0 how do I fix that?

0
Around line 30, check how much ammo is left before you do the math. GoldenPhysics 474 — 10y

Closed as Too Broad by OniiCh_n, Lacryma, and BlueTaslem

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?