Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I get data from a teleport?

Hello, I made a script to teleport player to another place, but I need to send data from the original server

My place where I want to teleport script:

local Teleport = game:GetService('TeleportService')

Teleport.LocalPlayerArrivedFromTeleport:Connect(function(loadingGui, DataTable)
	print(unpack(unpack(DataTable)))
end)

My teleport script:

local Teleport = game:GetService('TeleportService')
local PrivateServer = Teleport:ReserveServer(id)

Teleport:TeleportToPrivateServer(id, PrivateServer, PlayerTable, "SpawnLocation", ServInfo, game.ReplicatedStorage.TpGui) 

And I want the "ServInfo" table to be received from the other place, but it's not working.. Anyone know how to fix this?

1 answer

✓ Accepted answer

Hey msdarckdu802,

This might help solve your issue. It's a function that collects the data a player is sent with.

This discussion is preserved as it was. New answers, comments, and votes are closed.