Is there a way to change something for a place in the root game

uh, so the title looks weird
but basically what im saying is
lets say i have a settings button in my menu
image
i click it then lets say i change graphics but i need to do it for the game’s place
(you know, the places in here image )
is there any way i can change it from the root game basically?

1 Like

What exactly are you looking for? Do you mean that you want to be able to have players set a custom setting, then have that setting persist between place teleports, or are you wanting something else?

1 Like

exactly that first thing you said. setting their own setings then keeping them between teleports

1 Like

I suggest you read about Data Stores.

2 Likes

I would suggest using TeleportingService:SetTeleportSetting()
What this does is it makes a temporary store that can house a table. (and it persists across multiple teleports). so basically you can do this:

local Settings =
	{

		Graphics = "high",
		RenderDistance = "12"


	}

local TeleportService = game:GetService("TeleportService")
TeleportService:SetTeleportSetting(Settings)

then in each place you can use TeleportService:GetTeleportSetting() to import the data, and you can set the correct values from there

If you want to see how to use both of these from the api then look at GetTeleportSetting and SetTeleportSetting

3 Likes