How do I get data from a teleport?
Asked by
4 years ago Edited 4 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:
1 | local Teleport = game:GetService( 'TeleportService' ) |
3 | Teleport.LocalPlayerArrivedFromTeleport:Connect( function (loadingGui, DataTable) |
4 | print ( unpack ( unpack (DataTable))) |
My teleport script:
1 | local Teleport = game:GetService( 'TeleportService' ) |
2 | local PrivateServer = Teleport:ReserveServer(id) |
4 | 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?