AutoLoad variable not working

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By None

enter image description here
enter image description here
enter image description here

I register an autoloadfile but when i try to play game, the error ‘invalid get index’ displayed with variable i registered in autoload gdscript file

:bust_in_silhouette: Reply From: Cire_arievilo1

Try

Gravity.text = String(GlobalPlayer.player_gravity)

if this “gravity.text” is a label node.

Yes i just found it yesterday, the error is very unclear, anyway thank you for answer

None | 2022-10-26 05:03