I'm trying to teleport one player to a private server, but I keep getting the error unable to cast value to objects and have not found a solution. Here is the server script.
script.Parent.Touched:Connect(function(hit)
local ts = game:GetService("TeleportService")
local Server = ts:ReserveServer(6068467327)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
local plr = {}
table.insert(plr, player)
if hit.Parent.Humanoid then
ts:TeleportToPrivateServer(6068467327,Server,{plr}) --error coming from this line
end
end)

3 comments
i dont think u can tp to private servers
yes u can
so please is there any fix to this?