And i need to make something with private servers soo you can create your own server in lobby (it will be playing in Main Game you just create it in lobby) and then share code with friends to make them join your reserved server. Any idea how to make this work?
I´m not asking for code, i just need to know way to do it, i know there is some form of UUID of each server but i dont know how to connect players to it and check if it is correct (if that server exist)
I honestly dont understand this
I looped this for each play that had the server code that I randomly generated and it gave me the error, Can I not create my own codes?
if Command == "Start" then
game.Lighting.HostNumber.Value = game.Lighting.HostNumber.Value - 1
for i, Players in pairs(MyPartyData:GetChildren()) do
local Name = Players.Value
if Name ~= "" then
local Player = game.Players:FindFirstChild(Name)
local code = TS:ReserveServer(ServerCode.Value)
TS:TeleportToPrivateServer(game.PlaceId, code , Player)