Issue with Telepot Data Join Data

Hello, when I set join data, and then receive it, theres nothing in it, here is my code:

-- main game that teleports the player, it teleports me with no error
local ts = game:GetService("TeleportService")

r.OnServerEvent:Connect(function(plr)
	print("player wants singleplayer")
	local teleportOptions = Instance.new("TeleportOptions")
	local teleportData = {Mode="Singleplayer"}
	teleportOptions:SetTeleportData(teleportData)
	wait(0.05)
	local code
	code = ts:ReserveServer(15591987221)
	
	local sucx,eor = pcall(function()
		game.ReplicatedStorage.TeleportGui:FireClient(plr)
		ts:TeleportToPrivateServer(15591987221,code,{plr},teleportOptions)
	end)
end)
-- Recieving game

pcall(function()
			local jd = plr:GetJoinData()
			local td = jd.TeleportData
			print(jd,#jd,jd[1],td)
			if plr:GetJoinData().TeleportData then
				for i,v in pairs(jd) do
					print(i,v)
				end
				for i,v in pairs(td) do
					print(i,v)
				end
				if td.Mode == "Singleplayer" then
					print("singleplayer")
					return
				end
			else
				print("no joindata")
			end
		end)
		print("not singleplayer")

What Prints

I think it’s better not to use join data, it’s too unreliable. Could you try using MemoryStoreService?

I just switched over and everything works :smiley:

one more thing, when I set the teleport gui from the client, the gui is white when I teleport, here is the code:

local c = game:GetService("ContentProvider")
c:PreloadAsync({script.ScreenGui.ImageLabel.Image})
game.ReplicatedStorage.TeleportGui.OnClientEvent:Connect(function()
	game["Teleport Service"]:SetTeleportGui(script.ScreenGui:Clone())
end)

with that i cannot help unfortunately, i didnt use :SetTeleportGui yet

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.