Best way to make first time join gui

Hi! My goal is to create a first-time join GUI configuration. I want to store the player’s class, display name, and use that data to unlock certain features(if player dont have this data then he need to recomplete configuuration). I’m considering using either DataStore or ProfileService for this. Which one should I use?

Thanks, also sorry for my bad english.

1 Like

Do you mean DataStore2? Anyhow, all the libraries use the DataStore service. If you want to write your own data system then great, but if you want something bulletproof then go for the popular libraries like ProfileService and DataStore2.

You need to to save a boolean value like “first_session” with a value of true, and do an if statement in a PlayerAdded event to see if this is this is the player’s first time playing. Then you set that value to false, and that if statement will never run again unless you reset your data.

I’m not sure what you mean by “first-time join GUI configuration”, but if you wish to have a GUI show up when a player first joins, then also check if its the player’s first time joining on the client and the GUI show up. Then have a RemoteEvent fire to the server with the desired save details (There are security complications with this, but as long as the data isn’t too important and you do the right checks on the server, you’ll be fine).

3 Likes

Thanks, but i also wonder how to send data like player’s class to another experience, which will give you boosts and etc.

You can use sub places, under the main experience being “Main Game”, then add two sub places under the experience. They share data across the experiences. Take a look at this documentation and see if it aligns with what you are looking for.