How to make an in-game money system + autosave?

Hey there! Today I have 2 things I want to learn how to do in Roblox Studio

Money System
I’m making a money system in my game, since I need users to be able to use it to buy vehicles/houses. I made a GUI which displays the current amount of money, but it doesn’t do anything right now, and I want it to display the starting amount of cash ($30,000) if the user is playing for the first time. I also want it to add a random amount between $200 and $2000 every once and a while. The user’s money should also decrease whenever they purchase something, like a vehicle or house. If they are on a specific team (e.g. police) then they should get a little bit more money for working.

Autosave (Data Stores)
In addition to the money system, all things like the player’s inventory, owned items (vehicles and more), current level of XP, and pretty much everything else. The game should be able to retrieve these assets when the player re-joins the game, or create a new session for a new player that joins/leaves.

I know this is a lot to ask, probably my largest post ever, but it would be appreciated if you could help out or know a bit of this stuff.

Regards,
OH20

1 Like

Hi! I could send you an example of a script with explanation.

1 Like

Appreciate that, thanks!

1 Like

Have a look at this tutorial by AlvinBlox.

Good luck,

@Noah :cookie:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.