Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Teleport Service Error?

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 answer

Where do you specify the PlaceID?

1 comment

0

In the local script that fires the remote function

This discussion is preserved as it was. New answers, comments, and votes are closed.