Im trying to make a teleport system that will teleport a single player to a reserved server, I have read the Reserved server and teleporting to a reserved server. They still don't help me. I keep get a 403 http error thanks! Heres My code:
local TS = game:GetService("TeleportService")
local code = TS:ReserveServer(4742624633)
script.Parent.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
TS:TeleportToPrivateServer(4742624633,code,player)
end
end)
I also get a unable to cast value to object error.

2 comments
Remove the part where it says code in the teleportation I don’t think that’s supposed to be their but I don’t work with teleport
I Read the Teleport To reserved server and Thats how it reserves a server, by making a code and using the code to teleport to the server