so my tp stuff doesnt work, also i need something to detect if the player is in the correct lobby to get tpd.
function Check(Lobby, Player, Jojn, Start)
for i, v in pairs(game.ReplicatedStorage.InLobby:GetChildren()) do
if v.Name ~= "Template" then
local LobbyPeople = {}
if Jojn == true then
if Lobby == v.Name then
table.insert(LobbyPeople, Player)
print(LobbyPeople)
end
end
if Jojn == false then
if Lobby == v.Name then
table.remove(LobbyPeople, Player)
end
end
if Start == true then
local code = game["Teleport Service"]:ReserveServer(17521168237)
game["Teleport Service"]:TeleportToPrivateServer(17521168237, code, {LobbyPeople})
local Clone = script.TeleportGui:Clone()
Clone.Main.Transpo.Enabled = true
Clone.Parent = v.PlayerGui
end
end
end
end





