Pretty simple.. I have this for do in pairs loop:
for i,v in pairs(_G.PlayerTable) do if v ~= nil then print(v)-- checking _G.PlayerTable[v]:LoadCharacter()-- I want to respawn all the players in the table here, I didn't know what to do so i put that lol its wrong break end end
I'm trying to reference all the players inside of my table, but I don't know how.
Can somebody show me what i'm doing wrong?
for i,v in pairs(_G.PlayerTable) do if v ~= nil then print(_G.PlayerTable[i]) game:GetService("Players"):WaitForChild(_G.PlayerTable[i]):LoadCharacter() end end