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
I'm not familiary with the teleport service so I'm running this in my place now, give me a moment.