local TS = game:GetService("TeleportService")
local Players = game:GetService("Players")
local code = TS:ReserveServer(1144760042)
local players = Players[HostName.Value].userId -- StringValue
TS:TeleportToPrivateServer(1144760042,code,players)
Can anyone help with this? I can't get around this issue
Error: Unable to cast value to Objects < TS:TeleportToPrivateServer(1144760042,code,players)

2 comments
"players" holds the service not the the array of players, to get an array of players use game:GetService("Players"):GetPlayers()
But doesn't game:GetService("Players"):GetPlayers() Grab all Players? As I'm trying to just grab 1 player