#numbervalue not workin

1 messages · Page 1 of 1 (latest)

boreal hill
#
    if reloading then return end
    if reloadmags >0 then
        reloading = true
        local reloadAnim = animations.Reload
        local reloadTrack = tool.Parent:WaitForChild("Humanoid"):LoadAnimation(reloadAnim)
        reloadTrack:Play()
        sounds.Reload:Play()
        wait(1)
        reloadTrack:Stop()
        ammo = 30
        reloading = false
        ammoLabel.Text = ammo
        reloadmags -= 1
        magLabel.Text = reloadmags.." left."
    else
        sounds.Click:Play()
        magLabel.Text = "you dont got mags boi"
    end
end```
#

reloadmags is a numbervalue

#

and it starts at 3

cobalt sable
boreal hill
#

mags is the number value

cobalt sable
#

Show everything

boreal hill
#

u want me to show

#

the entire gun script

cobalt sable
#

Yes

boreal hill
#

why would i

#

it gives me this error

pseudo wing
boreal hill
boreal hill
#

no way its just that

#

lemme try

pseudo wing
#

cus reloadmags is an instance right?

boreal hill
#

yes

cobalt sable
low bone
#

i did this so much tbh

#

i kept on refering the instance not the value

cobalt sable
#

Hey guys so umm yeah I was right I saved this person's life I saved the world

silent vector
boreal hill
#

i just ended up doing something else

cobalt sable
boreal hill