Hey,
Thought I would post another resource. This is a car dealership system with the following details:
- Data saving
- Easy to customize cars, prices, names, datastorename, stat path, etc.
- Debounces to prevent spam
- Buy and spawn car options (Once you buy the car you can spawn it)
The guis are completely temporary and were used to use the scripts, if you don’t like the guis you can easily replace them.
Car_Dealer_Opensource1.rbxl (49.4 KB)
Setup and important locations:
Click on the arrows
Changing datastore name
Location: ServerScriptService.Dealership_Handler
Variable: "cardata"
Changing what stat is used
Location: ServerScriptService.Dealership_Handler
Variable: "playerstats"
Adding Cars
- To add a car please take your car model and move it into
ServerStorage.Cars
- To add a new button for your car to be bought, please go to
StarterGui.CarDealerShip.Frame.Cars_Layout
and duplicate a “Car” button. - Go into the script of that button, and change the
carname
variable to the EXACT name of the model you put intoServerStorage.Cars
. - Next, change the
price
andwaittime
variables to what you wish.
If the button is not working for you, please go back through these steps
Changing the ConfirmGui text
Location: StarterGui.CarDealerShip.ConfirmUI.ConfirmHandler
CHANGE WHERE ANNOTATED
Make sure to have the file published and API services turned on.
I hope some developers find use of this system whether you are stuck on a script or need a push. This system is not only limited to a car dealership and may be used however you please.
Let me know if you have any questions of how to add onto this system, bugs, etc.