You can write your topic however you want, but you need to answer these questions:
Im making a game where im in need of a lobby system, utilizing 2 places in 1 experience.
Im getting "Attempted to teleport to a place that is restricted, but i know for a fact it isnt. Triple, quadrouple checked everything and googled for 2 days.
I have tried multiple different systems made by different people, and i tried scripting myself but nothing changed. Still getting the same error. And i have tried using a Third-Party game (WITH 3RD PARTY SETTINGS ON DONT MENTION IT) with no avail.
game:GetService("ReplicatedStorage").Remote:WaitForChild("Start").OnServerEvent:connect(function(player,ServerName)
local PlayerTable = {}
for i , v in pairs (game:GetService("ReplicatedStorage").ServerStok:FindFirstChild(ServerName).Player:GetChildren()) do
wait()
if game.Players:FindFirstChild(v.Value) then
game:GetService("ReplicatedStorage").Teleporting:Clone().Parent = game.Players:FindFirstChild(v.Value).PlayerGui
table.insert(PlayerTable,game.Players:FindFirstChild(v.Value))
end
end
local TP = game:GetService("TeleportService")
local bruh = TP:ReserveServer(10479046925)
TP:TeleportToPrivateServer(10479046925,bruh,PlayerTable)
game:GetService("ReplicatedStorage").ServerStok:FindFirstChild(ServerName):Destroy()
end)
The code does not seem to have an issue at first glance so instead let’s do a little bit of trouble shooting to see exactly what the problem is.
Instead of acquiring the table of players, attempt to teleport just yourself into the private server and see if it still fails. Test this in-game, not from studio, obviously.
Tried using two different modules made by people, and error “Unable to cast Value to Objects” appears both times. I may be getting the player wrong, but dont think i am.
Well, basically go into the view tab then click AssetManager then Places then Double Click on the place your teleporting to. This should open a new roblox studio window in the place you are teleporting to, then click File -> Publish To Roblox