Errors "restricted" although the game is published



image

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)

Have you tried setting the game to public?
Cuz tht might work

image
I have the playability setting to public but it still doesn’t work

I noticed something


When i go to a place i created, i get a different menu, maybe you set the main game to public, but not the actual place.

EDIT: i just realised you’re changing it in studio, not on the site

1 Like

I alt+p’d to update the game and it worked. Thanks for your help!

No problem!

This text will be blurred