Teleport failed for my game

it says that the place doesnt exist even though i copied the place id directly from the game explorer


local TeleportService = game:GetService("TeleportService")
local part = script.Parent
local Code = TeleportService:ReserveServer(game.PlaceId) -- returns a code
local Players = game:GetService("Players")
local players = Players:GetPlayers()
local db = false

	if db == false then
		local player = Players:GetPlayerFromCharacter(plr.Parent)
		if not player then return end
		TeleportService:TeleportToPrivateServer(6064649414, Code, {player})


Is it a local script or a script? And where is it?

1 Like

Kick message says it all, I think the problem might be because of your Code, try creating a new one right before you teleport the player to the private server. Also @xKod_i it is a server script and it is inside a part as you can tell… And if the code is not your problem then your PlaceId is.

its a serverscript in the workspace currently

wait yeah nvm its in the part it used to be in the workspace so i got mixed up

theres no way its my code because if i just add game.placeid it would work with the normal game place but i want it to teleport to a separate place inside the game