
Mastering Roblox Coding
By :

In this exercise, we will combine a lot of the previously learned information about user input. The system you will have to make in this exercise will require some experimenting with combining certain features into one.
In this exercise, we will make leaderstats
containing the number of pizzas a player has eaten. To eat a pizza, the player must equip the Pizza tool and hold their left mouse button, X button for gamepads, or touch their screen for at least 5
seconds. If the player holds their mouse for 3
seconds, for example, then stops and holds it for another 2
seconds, the pizza is not eaten. After a pizza has been eaten, the player can directly eat a new pizza.
A GUI will contain a progress bar that tells the player when to release their input. For phones, this progress bar should be displayed on the right side of the screen. However, for devices with a mouse, the progress bar needs to be displayed next to the mouse icon and the position should...