Hello! So, I’m trying to make a background system so that players can customize a background while reading articles in a game, How would I make something like this,
that will save the background and when the player comes back then it will be the same?
For an e.g
Player1 clicks settings bar, they change their background theme to the Classic ROBLOX games and get Classic Roblox Music, when they leave and rejoin then that exact music will still only be the ones that will be playing, and player1 will also still have classic Roblox games as backgrounds like SFOTH for an e.g.
For something like this you’d simply have to use some type of DSS, i.e berezas datastore, DS2, profileService, etc, and simply save their choice and enable this for the client when they rejoin. This might seem complicated, but you’re really just saving an extra value and then changing it later.
When a player leaves, we’ll save the background’s name. Then when the player joins back, you’d access that datastore, then you’d have to have a folder or something containing all of the backgrounds. You would do, for example
local bg = game.ServerStorage.Backgrounds:FindFirstChild(background_you_got_from_ds_name)
Once you have the background, all you do is load it. Fire a remote event and pass in the background.