Hey raistlintheweezymage thanks for the reply. I tried using that but get an error "Invalid get index 'game_section' (on base: 'Node ()')". I am indeed just looking for a true/false (boolean).
This Area2D scene is an item the player picks up, at which point this global variable is set to true and I want this item to be gone, if the player restarts the level. Currently, this item is present every time the level is restarted, even if picked up multiple times. So the code basically is just to check if this variable it true, and if it is, to queue_free() this item.
Here is the code on this Area2D node (the item)
@export var game_section = ""
func _ready():
if GAME.game_section == true:
queue_free()
And here are some of the variables in the global GAME script just to give you an idea
var one = false
var two = false
var three = false
var four = false
var five = false
var six = false
var seven = false
var eight = false
var nine = false
var ten = false
var eleven = false
var twelve = false
var thirteen = false
var fourteen = false
var fifteen = false
var sixteen = false
var seventeen = false