Gamepasses
Gamepasses are a great and simple way to monetize your experience through a one-time fee. Once a pass has been purchased, it often rewards the user with some sort of in-game perk or item. In this recipe, we will examine how to create a gamepass that rewards the player with gear of our choosing.
How to do it…
We will begin this recipe by creating an icon using the provided template. Next, we will create a new gamepass and set the image, title, and description. After uploading the gamepass, we will put it up for sale and change the price. We will then open Studio, insert a script into the ServerScriptService object, and place our gear of choice into the ServerStorage object. Finally, we will copy and paste the gamepass’s AssetID object into the script. Let’s see how:
- To begin, you will need to create a
512x512
image for your gamepass icon. To do this, download the template provided in theChapter
9
folder:
Figure...