Why does this not work?
for i = 1,100 do
print(_G.players_not_in_safe_zone[i])
end
Expected output:
nil (100x)
What the output is:
Workspace.GOODEVER.LocalScript:18: attempt to index nil with number
The reason I need this is because I have a array that is a list of players and it can vary from 0 players to 100 players, the way you get in this array is you enter a zone in the game (Also it needs to constantly check the array to accurately edit attributes of those players), I tried sharing data between scripts through attributes and other ways before this and I’m kinda stuck at this, any help would be appreciated