TeleportToPrivateServer with TeleportOptions

Hey!

I’m having some weird issues when sending TeleportOptions using TeleportToPrivateServer().
When Client is teleported to the Private Server, data seems nil.

Brief example:

    local TeleOptions = Instance.new("TeleportOptions")
	TeleOptions:SetTeleportData("someArray")
	
	TPservice:TeleportToPrivateServer(321, passID, PlayersArray, nil, TeleOptions)

These are the supposed parameters that TeleportToPrivateServer() can handle:

Im getting the Client’s TeleOptions by
local TeleOps = TPS:GetLocalPlayerTeleportData()

TeleOps = nil…

Works perfect by using :TeleportAsync(321, PlayersArray, TeleOptions) instead of :TeleportToPrivateServer()

Any suggestion why this is happening? Thank you for reading!

2 Likes

Ok… nevermind… I fixed it… I dont need to set the data as Instance.new("TeleportOptions")

I only need to send it as a normal array/dictionary whatever… Weird, cause by using TeleportAsync() its not possible to send it like that, must be a “TeleportOptions” Instance instead of a normal array/dictionary…

2 Likes