Can u transmite tables with teleport service?
If yes how?
Can u transmite tables with teleport service?
If yes how?
TeleportData can be passed as one of the arguments in :Teleport
.
ie.
local player = game:GetService("Players").LocalPlayer
local tps = game:GetService("TeleportService")
tps:Teleport(12345, player, {cheese = "nice!"})
Now you can recieve this data using :GetLocalPlayerTeleportData
eg.
local tps = game:GetService("TeleportService")
local data = tps:GetLocalPlayerTeleportData()
if data then
print(data.cheese) --nice!
end
You can read more on the dev hub: