im trying to make a first person shooter but im trying to get my ammo to show up with this
weaponui.text = weapondata["Name"] + ": " + weapon_data["Ammo"] + "/" + "ExtraAmmo"
but apparently it wont work here is the rest of the code btw this is from another script
var weapondata = {
"Name" : weaponname,
"Image" : weaponimage,
"ExtraAmmo" : str(extraammo),
"Ammo" : str(ammoinmag)
}