Usage of player's IP to find experience host - teleport of ID - how to read table

I am currently making lobby that’s “story” like and it should take IP of first person to join, and then send it with this person and his crew to later on be used to localize host to save leaderstats to this person.
Sadly i dont know
1- how to read table, or table located in table (ill show what i mean)
2 - for some reason i cannot print table value even if my script seems to be good
3 - I want to teleport my data to another experience but i dont know how to do it
4 - i dont know if my implementation of function is working
i’ve got smth like that:

local lobbies = {}
local ServerStore = game.DataStoreService:GetDataStore("ServerStore")
function createLobby(plr) 
	local lobby = {  
		hostID = plr.UserId, 
		playerIDs = {plr.UserId}
	}
	if not table.find(lobbies, lobby) then
		table.insert(lobbies, lobby)
		ServerStore:SetAsync(plr.UserId, lobbies[plr.UserId])
	end
	return lobby 
end

createLobby()

print(hostID)

here i dont know how to read - and GET host ID as a value, it just doesnt work
and here is the proxi promt part:

script.Parent.Overhead.ProximityPrompt.Triggered:Connect(function(plr)
	if plr.Character then
		if teleporting == false then
			local char = plr.Character
			local duplicate = false
			
			for i=1, #queue do
				if queue[i] == char.Name then
					duplicate = true
				end
			end
			
			if duplicate == false then
				if #queue < maxPlayers then
					table.insert(queue, char.Name)
					leaveButtonEvent:FireClient(plr)
					updatePlayerCount()
				end
				    
				plr.CharacterRemoving:Connect(function(char)
					for i = 1, #queue do 
						if queue[i] == char.Name then
							table.remove(queue, i)
							updatePlayerCount()
						end
					end
				end)
			end
			
		end
	end
	createLobby(plr)
end)

i dont know if it works because function createLobby(plr) isnt working
and last thing is:

                local server = teleportservice:ReserveServer(placeId)
                local players = {}

		teleportservice:TeleportToPrivateServer(placeId, server, players, teleportData)

thats just part of a script as a whole for teleportation but just this seems to be the problem. I localise place Id, reserve server for lobby, then set players who teleport (everyone who joined the lobby, that works for me already) and normal guides seem to stop here, where do i set the teleport data in here? And how do i read it considering its table and value i want to have is hostID.

1 Like

Yo guys is it really that hard that noone can help me? Really? Aint there no single answer out there?