I had working code that would save a variable to to user data and then would compare that to the current 'score' variable, I wanted to switch this to an array or the top ten scores, what I've found is the the user data file is empty and nothing is being saved anymore, does anyone know how I can just save my variables to an Array, and then do I need to save each index?
this is the "player scene"

and this is my current Global scene, (I understand that its messy)



right now the ready output is
"lists
0
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
ready called
[9, 2, 3, 4, 5, 6, 7, 8, 9, 0]
"
and the user data txt file is completely empty whenever I check it.