Exercise 9.1 – building a currency system
In this exercise, we will create a simple currency system that uses the previously learned information. First, we need to make a data store that contains money. Then, players should be able to purchase a 2x Cash game pass. Besides this, players should be able to purchase 500 coins through a developer product. If players purchase this developer product while owning the 2x Cash game pass, they should get 1,000 coins instead of 500. In addition, we must implement a Premium Benefit. For our current game, we will give Premium users 10% more in-game money when they purchase it through a developer product. This means that Premium users without the double money game pass will get 550 coins and that the players with the game pass will receive 1,100 coins.
Now that we know what system we will implement, let us start making it. First, we will create a new game. Follow these steps:
- Open Roblox Studio and create a new Baseplate.
- Publish...