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
Where do you specify the PlaceID?