I have a script:
local Id = "000000000" -- Don't mind there's should be real Id local TeleportService = game:GetService("TeleportService") local Trigger = game.Workspace.TeleportTriggerLeft Players = game:GetService("Players") Trigger.Touched:Connect(function(trigger) local character = trigger.Parent local player = Players:GetPlayerFromCharacter(character) print(player.Name.. " Touched the trigger!") local Reserve = TeleportService:ReserveServer(game.Id) TeleportService:TeleportToPrivateServer(game.Id, Reserve, player) end)
But when script trying to take Reserve there's error HTTP 403 (Forbidden).
You're using game.Id
wich doesn't exist, you have to use PlaceId
So instead of game.Id
use game.PlaceId
Also, the third argument for :TeleportToPrivateServer()
must be a table, not a player.
So you have to do this
local Id = "000000000" -- Don't mind there's should be real Id local TeleportService = game:GetService("TeleportService") local Trigger = game.Workspace.TeleportTriggerLeft Players = game:GetService("Players") Trigger.Touched:Connect(function(trigger) local character = trigger.Parent local player = Players:GetPlayerFromCharacter(character) print(player.Name.. " Touched the trigger!") local Reserve = TeleportService:ReserveServer(game.PlaceId) TeleportService:TeleportToPrivateServer(game.PlaceId, Reserve, {player}) end)
If this answered your question mark it as the answer!