Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't this teleportservice script work properly?

Asked by 4 years ago
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

0
I'm not familiary with the teleport service so I'm running this in my place now, give me a moment. mateyz 22 — 4y

1 answer

Log in to vote
0
Answered by
mateyz 22
4 years ago

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.

0
Doesn't work. goodadmins 111 — 4y
Ad

Answer this question