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 into ServerStorage.Cars.
Next, change the price and waittime 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.
I have this in my game. But when I go to spawn a car after buying, it brings up the buy GUI again. And it never takes anything from the cash (yes, it’s the right datastore.)
Im sorry to revive this topic but it does not take money out of my leaderstat if i “Buy” a car and for my new car i am getting an error “CFrame is not a valid member of Model “2021 Koenigsegg” - Server - Dealership_Handler:60”