Hey guys, having an issue trying to call a function from a Module script in a local script.
Module Script:
function Settings.Update_Gui(Ammo, StoredAmmo)
if Settings.Gui and Settings.CanUpdateGui then
Settings.Gui.Frame.AmmoDisplay.Text = Ammo .. "|" .. StoredAmmo --Line 77
end
end
Local Script:
local Ammo = script.Ammo -- NumberValue
local StoredAmmo = script.StoredAmmo -- NumberValue
Settings.Update_Gui(Ammo.Value, StoredAmmo.Value)
Error: Players.Player1.Backpack.M1911.Settings:77: attempt to concatenate local 'StoredAmmo' (a nil value)
Let me know if you can figure out why I am getting this odd error or if you need a bit more information.
Thanks.

1 comment
For whatever reason, StoredAmmo is not being passed to the Update_Gui function. Use some print() statements on both sides of the function call (inside and outside the Module script) to see at what point you're losing the data.