Here is my code
local event = Instance.new("RemoteEvent")
event.Parent = game.Workspace
event.Name = "SendPlayersToGame"
local TS = game:GetService("TeleportService")
event.OnServerEvent:connect(function(PlaceID,Code,Players)
Code = TS:ReserveServer(Code)
TS:TeleportToPrivateServer(PlaceID,Code,Players)
end)
In a local script I send a random code the players I wan't sent in a list and the place ID I want them sent to but I get this error
Unable to cast instance to int, Line 7

1 comment
In the local script that fires the remote function