m0bamb1 Create a class and declare methods as static. They can be called from anywhere using Class.method()
class_name MyFunctions
extends RefCounted
static func foo():
print("foo")
static func bar():
print("bar")
The above script class doesn't have to be attached to any node. Just save the script and static functions will be accessible globally.
So from any other script simply do:
MyFunctions.foo()
MyFunctions.bar()