Pretty self explanatory, when I enter the game, get teleported, it doesn't load the data. Here are the scripts:
Teleport Game (ServerScript):
script.Parent.Triggered:Connect(function(plr)
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
-- Get the PlaceId of the sub-place (replace with the actual ID)
local subPlaceId = 84211439060742
-- Get the player to teleport
local playerToTeleport = plr
local teleportData = {
classId = "OMGLOAD"
}
-- Create an array containing the player
local playersToTeleport = {playerToTeleport}
-- Teleport the player
TeleportService:TeleportAsync(subPlaceId, playersToTeleport)
end)
Receiving Data Game (LocalScript):
script.Parent.Triggered:Connect(function(plr)
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
-- Get the PlaceId of the sub-place (replace with the actual ID)
local subPlaceId = 84211439060742
-- Get the player to teleport
local playerToTeleport = plr
local teleportData = {
classId = "OMGLOAD"
}
-- Create an array containing the player
local playersToTeleport = {playerToTeleport}
-- Teleport the player
TeleportService:TeleportAsync(subPlaceId, playersToTeleport)
end)
