#Reserved Servers Data

1 messages · Page 1 of 1 (latest)

jaunty sparrow
#

Hey so I'm having trouble with sending data through TeleportService:TeleportToPrivateServer(), am i doing it wrong?

local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")

local Place = 129608931550702

task.wait(5)

local success, result = pcall(function()
    TeleportService:ReserveServer(Place)
end)

if success then
    for _,v in Players:GetPlayers() do
        local Data = {v:WaitForChild("leaderstats").Coins.Value}
        TeleportService:TeleportToPrivateServer(
            Place,
            result,
            {v},
            nil,
            Data
        )
    end
else
    warn(result)
end
#

this other script receives the data

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
    local Data = Player:GetJoinData()
    
    if Data then
        print(Player.Name.." has data")
        for _,v in ipairs(Data) do
            print(v)
        end
    else
        print(Player.Name.. "has no data")
    end
end)
boreal tiger
#

Do not send data through GetJoinData that you do NOT want tampered

#

look up the functions you are using maybe then you'll understand what they do

jaunty sparrow
#

I got a solution already

#

and btw I readed the teleportservice thing in the wiki before but didnt understand anything

boreal tiger
#

read it again until you do