Sure, thanks haha, I forgot.
This is what I made. Btw, I missed up before: to get the path of the script I used preload
This is the script for the global scene (Used in Autorune):
extends Node
var the_variable = 1
const the_constant = 2
func the_function():
pass
Now, the script for the scene where that variable is used is the following:
extends Node2D
var global_script = preload("res://new_script.gd")
func _ready():
print(global_script.the_variable)
This is not the real code, just an exact replica but simplified and clearer (no nicknames I use to design my code xd). If it is made into Godot, it won't work as the script can only find the_function and the_constant.