
So I have a “lobby” place and a “game” place and I made it so if you click a button it teleports the player to the “game” place. However it gives me an error saying the “game” place isn’t published/restricted. I published the place and also have third party teleports enabled. Can someone tell me why it gives me this error?
here’s the code:
ReplicatedStorage.Teleport.OnServerEvent:Connect(function(Player,PlaceId)
local success,errormessage = pcall(function()
TeleportService:Teleport(PlaceId,Player)
end)
if success == false then
warn(errormessage)
end
end)