Ok so, I want to make a private server teleport and I want to send the data through. But the problem is that I cannot receive the data
Teleporter (Server script)
local Coords = Data:GetAsync("UniverseCoords")
if Coords == nil then
Coords = {0, 0, 0}
end
local IsSomeoneAtCoords = Data:GetAsync(tostring(Coords))
if IsSomeoneAtCoords == nil then
IsSomeoneAtCoords = false
end
if IsSomeoneAtCoords == false then
Data:SetAsync(tostring(Coords), true)
local NewServer = Service:ReserveServer(ID here)
Data:SetAsync(tostring(Coords).."ServerID", NewServer)
Service:TeleportToPrivateServer(ID here, NewServer, {Player}, "", Coords)
end
if IsSomeoneAtCoords == true then
local NewServer = Data:GetAsync(tostring(Coords).."ServerID")
Service:TeleportToPrivateServer(ID here, NewServer, {Player}, "", Coords)
end
Receiver script (Local script)
local Service = game:GetService("TeleportService")
local Data = Service:GetLocalPlayerTeleportData()
print(Data)
Tried switching the teleporter script type to local but it gives an error, also tried switching the receiver script type to be local