The problem was that roblox actually didn't published target place I edited,so it was baseplate. only in studio,it wasn't baseplate. I fixed it by adding print("no") ,a actually useless thing in a script and publishing it so they recognize it changed.

questions before fix are below:

In a same game and different place,I teleported player to there. while teleporting,it displayed target place name,but didnt load maps and script,just baseplate only. also I got HTTP 403 (forbidden) error while trying in studio.

local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local Part = script.Parent.Parent.Part
local Display = script.Parent
local PlayersOnPart = {}

Part.Touched:Connect(function (touched)
	local player = touched:FindFirstAncestorWhichIsA("Model")
	if Players:FindFirstChild(player.Name) then
		local Player = Players:FindFirstChild(player.Name)
		table.insert(PlayersOnPart,#PlayersOnPart+1,Player)
		local server = TeleportService:ReserveServer(targetPlaceId)
		TeleportService:TeleportToPrivateServer(targetPlaceId,server,PlayersOnPart)
		PlayersOnPart = {}
	end
end)

targetPlaceId is just for example of my place Id

1 comment

0

Teleports don't work in Studio, hence the error. Try testing it in an actual game.