Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get data from a teleport?

Asked by 3 years ago
Edited 3 years ago

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

Log in to vote
1
Answered by 3 years ago

Hey msdarckdu802,

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

Ad

Answer this question