it says that the place doesnt exist even though i copied the place id directly from the game explorer
script:
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
part.Touched:Connect(function(plr)
if db == false then
local player = Players:GetPlayerFromCharacter(plr.Parent)
if not player then return end
TeleportService:TeleportToPrivateServer(6064649414, Code, {player})
end
end)
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.
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