I want my code to loop through a table, setting all the saved SteamID’s players to teleport somewhere. How would I do that?
if MonsAm == 0 then print("killedallmonsters") for i=1,PlayerAm do names*:SetPos(Vector(0,0+(i*100),0)) end
Error I get is :
bad key to string index (number expected, got string)
I know I have to input a number value behind SetPos(), but I really have no clue how to derive one from a table.
Edit: SteamID’s are saved in to the table
Edit: Can you even use SteamIDs to teleport???