Objective:
I’m trying to build an experience where players can configure cars.
- Default config: when they first join, a default car config is loaded for them
- Customizing: players can change attributes like color, name, description
- Saving: Players can save their car config
- Listing: Players can see a list of their saved configs
- Loading: Players can load a config which will be applied to their car
Sample config is a table like this:
--- Car Config Psuedo-Code
local settings = {
name = "Car 1",
nameKey = "Car1",
description = "Your default car",
colors = {
["Back"] = Color3.new(1, 0.25098, 1),
["Right"] = Color3.new(1, 0.25098, 1),
["Left"] = Color3.new(1, 0.25098, 1),
["Top"] = Color3.new(1, 0.25098, 1),
}
}
Issue:
I am completely lost on the best approach to saving and loading this kind of configuration data to the server. Specifically, how to trigger the save/load from the client side.
What I’ve tried:
- Basic DataStore tutorials - can save and load individual attributes like “Player Gold” but only on player connect and player leave. Need to be able to have the player manually trigger saves / list / load.
- Remote Events tutorials - Can’t figure out how to send and receive more complex data payloads (cobfigs or list of configs)
Request:
I’m not looking for script or full solutions, but if you can provide pointers to helpful approaches, methodologies, or dev docs it would be much appreciated, thank you!