Hi, I was making a game that reserves a server in another game in the same universe and I need to send data to that server. I have tried this code but when I open the output on the recipient server it tells me that the data is nil, i used TeleportService:GetLocalPlayerTeleportData() in local script
This is the server code
local TeleportService = game:GetService("TeleportService")
local MainLands = 5695803307
game.ReplicatedStorage.JoinServer.OnServerEvent:Connect(function(plr,Function,Friend)
if Function == "Own" then
local Server = TeleportService:ReserveServer(MainLands)
local TPData = {Server,plr.Name}
TeleportService:TeleportToPrivateServer(MainLands, Server, {plr}, TPData)
elseif Function == "Friend" and Friend ~= nil then
end
end)
The event is fired in client and work, pls help me and sorry for my english