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

Why doesn't this teleportservice script work properly?

local TS = game:GetService("TeleportService")
local PrivateServer = TS:ReserveServer(17541193)

script.Parent.Touched:Connect(function(H)
	TS:TeleportToPrivateServer(17541193, PrivateServer, game.Players[H.Parent.Name])
end)



It says unable to cast, on line 5

1 comment

0

I'm not familiary with the teleport service so I'm running this in my place now, give me a moment.

1 answer

17541193 is the place ID that you've given in your code.

Is that this place ?

https://www.roblox.com/games/17541193/

Maybe you've given the wrong place ID and that's probably why it's not letting you create a private server. You have to own the game and have it connected for that to work I believe.

1 comment

0

Doesn't work.

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