I’m trying to test if I’m able to reserve a server and teleport the player to it, but I keep getting this error, nothing much to talk about just simple couple lines:
function onPlayerJoined(player)
repeat wait() until player.Character
wait(5)
local rs = TeleportService:ReserveServer(7562242788)
TeleportService:TeleportToPrivateServer(7562242788, rs, player)
end
local TeleportService = game:GetService("TeleportService")
local reservedServerCode = TeleportService:ReserveServer(game.PlaceId)
TeleportService:TeleportToPrivateServer(game.PlaceId, reservedServerCode, { player })
-- Not Full code. You will need need a few changes.