Object not objecting

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
1 Like

Also i dont know the error except http error, my http services are on

try doing game:GetService(“TeleportService”) instead of game[“Teleport Service”]

same issisue

word limitttttttttt

can you send screenshot of output when the error happens

can you send screenshot of line 34 in that script because teleportservice seems to be ok

you can’t debug teleportservice in roblox studio

you need to play test in roblox player to do that

b r u h

word limitttttttttttttt

can you send screenshot of line 149

the line 149 is in between of check and start event…

I see your code is very broken and most likely copy pasted

Your code will not teleport anyone because 2nd argument is nil when calling Check() function

(Player is nil)

Zrzut ekranu 2024-05-18 143544

1 Like

uh so what come i do

word limitttttttt

its the start lobby and tp script

Try this in OnServerEvent function

Check(Lobby,Lobby,false,true)

im just gonna set the second lobby to the player…