How to save/load global variables?

Can someone help me?

You don’t directly save/load global variables. Storage and filesystem events only access scene variables directly.

You can however convert a global variable to JSON when saving, load that json back to a scene variable, then parse that JSON into a global variable. Refer to the Advanced Save/load tutorial on the official youtube channel for more details: