Im in uncharted territory... Anyone know how?
In the script which is in the game workspace has a global table
tablee = {"Player1"}
Im trying to access it from a local script inside the players Backpack with:
for i, v in pairs(tablee) do if v == player.Name then table.remove(tablee, i) print(table.concat(tablee, ", ")) end end
And i get an error saying:
Players.Player1.Backpack.TouchedEvent:35: bad argument #1 to 'pairs' (table expected, got nil)
To make things Global, instead of adding local before the variable/function/ect, add a "_G."
_G.tablee = {}