Как создать геймпас в roblox
Game passes let you create special items that can only be bought once per player using Robux ( ) . Examples are special access to a articles/Collision Filtering Team Doors|restricted area , an in-game avatar item, or a permanent power-up .
For items that a player might purchase multiple times, such as potions, temporary power-ups , or in-game currency, please refer to Developer Products.Creating a Game Pass
To make a new game pass, go to the Create page on the Roblox website. Once there, make sure that the My Creations tab is selected and that Games is selected in the left column.
Now follow these steps to create a game pass:
- Determine the game you want to create a pass for.
- In the settings drop-down menu on the right-hand side, select Create Game Pass .
Create an Icon
Game pass icons should be designed as follows:
- In an image editing application, design a circular game pass (a template of 512×512 pixels is recommended). The final icon will be trimmed/cropped into a circular image, so you shouldn’t include important details outside the circular boundaries.
- Save the game pass image in .jpg , .jpg , .jpg , .tga , or .bmp format.
Upload the Pass
The next step in the creation process is uploading the pass:
- Back on the Roblox website, click the small button next to Find your image.
- Find the game pass image on your computer and confirm that you’d like to upload it.
- Type in a name and description for the game pass. Remember that players will see this on your game’s page, so be creative and accurately describe what the pass does.
- When you’re ready, click Preview. On the next screen, review the details for the game pass and click Verify Upload.
Configure the Pass
Once you’ve created the game pass, it will appear on the same page, slightly further down. The final step is configuring the pass so players can buy it.
Prompting In-Game Purchases
Players can buy game passes directly from your game’s main page by clicking the Store tab and browsing the game passes you’ve made available to them:
However, it’s also a great idea to offer in-game purchases to players through a shop or vendor NPC within the game. The following scripts are a basic model for prompting players to buy a game pass.
Server-Side Code
This code should be located in a Script object (not a LocalScript ) within ServerScriptService so the server can handle the ability or bonus given to the player.
Creating a Game Pass
To make a new game pass, go to the Create page on the Roblox website. Once there, make sure that the My Creations tab is selected and that Games is selected in the left column.
Now follow these steps to create a game pass:
- Determine the game you want to create a pass for.
- In the settings drop-down menu on the right-hand side, select Create Game Pass .
Create an Icon
Game pass icons should be designed as follows:
- In an image editing application, design a circular game pass (a template of 512×512 pixels is recommended). The final icon will be trimmed/cropped into a circular image, so you shouldn’t include important details outside the circular boundaries.
- Save the game pass image in .jpg , .jpg , .jpg , .tga , or .bmp format.
Upload the Pass
The next step in the creation process is uploading the pass:
- Back on the Roblox website, click the small button next to Find your image.
- Find the game pass image on your computer and confirm that you’d like to upload it.
- Type in a name and description for the game pass. Remember that players will see this on your game’s page, so be creative and accurately describe what the pass does.
- When you’re ready, click Preview. On the next screen, review the details for the game pass and click Verify Upload.
Configure the Pass
Once you’ve created the game pass, it will appear on the same page, slightly further down. The final step is configuring the pass so players can buy it.
Game passes allow Roblox developers to create special passes that can only be bought once per player using Robux. They can be used to give players special access to a restricted area, an in-game avatar item, or a permanent power-up. Since players only need to purchase a game pass once, they’ll always have this special effect, even after leaving and rejoining a game.
Create a new Game Pass
Making a new game pass is done through the Roblox website. There, you can create a game pass and give it details like a description and change its cost in Robux. After creating a game pass online, you’ll then need to add a script that lets players buy the pass and activate it’s effect.
If you haven’t published your game to Roblox, publish it now. For information on publishing your game, click here.
Go to the Create page where you manage games.
In My Creations > Games > find your published game. On the right side, in the settings drop-down menu, select Create Game Pass.
- Your game pass needs an icon that is shown to players. To download a premade icon to test with, right click on the image below and save it to your desktop.
Creating Your Own Icon »
To create your own icon, you’ll need to change a template icon. Game passes require an image of exactly 150×150 pixels.
- Save the following template to your computer by right-clicking the image and selecting Save Image As….
- In an image editor or drawing application, fill in the blank circular area with your artwork.
- Save your customized game pass image with a new file name.
As you work, keep in mind the following:
- The black corners will be invisible in the final image, so be careful not to draw over them.
- Don’t resize the template — uploaded game pass images must be exactly 150×150 pixels.
- Click Choose File to upload your icon.
- Give your game pass a name and description.
Practicing Ethical Entrepreneurship: Writing Descriptions
A description should let the player know exactly what they’re getting so they feel their purchase was fair.
Not specific enough: Gives you something cool!
Specific: Leaves a red trail wherever your spoon goes!
- Press Preview to double-check your work and then click Verify Upload.
Icon Images Don't Show up Instantly
You might not see your icon right-away. Anything uploaded to Roblox, like icons, needs to be approved by the moderation team. This helps keep users safe from harmful content.
Change the Game Pass Price
Game passes can be bought using Robux, Roblox’s virtual currency.
- To the right of your game pass, click the gear and select Configure.
- Click the toggle next to Item for Sale to allow players to see the game pass in your game’s store.
- Set the price. For example, 50 is a reasonable price that users might pay.
Setting Good Prices for Items »
Too high a price means fewer players will buy it.
To come up with a good price for your game pass, try:
- Asking a friend who plays Roblox how much they would pay.
- Playing other Roblox games and looking at the prices they charge for similar game passes.
- Thinking about how much impact it has on the game. A game pass that gives a simple special effect should be worth less than a game pass that gives players access to a brand new area in the game.
Marketplace Fees »
While Roblox offers many tools for free, like Roblox Studio and hosting your games online, it does charge a Marketplace Fee for any purchases players make in your game. The money earned through this fee helps Roblox continue to provide new features and keep online servers for your games running.
Giving Game Passes an Effect
Once a player buys a game pass, they will naturally expect to get its special ability or bonus when they start playing. This does not happen automatically, so you must check which players already own the pass and assign the ability/bonus to them.
This example script checks when any player enters the game and then checks if they own the game pass with the matching ID set in the variable gamePassID .
To find the ID of a game pass, inspect the URL in your web browser which will look similar to one of these, depending on whether you're configuring or viewing the pass: The game pass ID is the number within the URL, for example 0123456 as shown here. Simply use that ID on line 4 of the code example above. This code should be located in a Script object (not a LocalScript ) within ServerScriptService so the server can handle the ability or bonus given to the player.Как создать геймпас в roblox
Геймпасс это вещь которую ты можешь купить в плэйсе за робуксы
Дима, а если создаш свой плэйс и добавишь туда например вип за 100 робуксов то с каждой покупки випа ты получаешь 10 робуксов.
Добавляется он БЕСПЛАТНО
За базу возьму данное видео.
Следующей строкой у нас идёт название нашего игрового пропуска. Краткое и ёмкое!
Теперь переключаем рычажок (1) и появляется дополнительное поле для ввода стоимости (2) нашего пропуска:
Поздравляю! Вы сейчас не только создали пропуск, но и стали его обладателем, как разработчик! В этом вы можете убедиться наличием кнопки Delete в меню.
Внимание! Если вы удалите его, то робуксы вам не прибавятся, а вернуть его вы сможете, только купив его у самого себя.
Если теперь вернуться в магазин игры (щёлкнув по иконке игры, например), то в её магазине Store вы увидите наличие данного GamePass.
Но нас на этой странице больше всего интересует не её содержание, а её адрес! Точней, цифровой код содержащийся в нём. В моём случае это: 7988151
Это и есть ссылка на наш GamePass для использования его в игре.
Но, для начала создадим второй пропуск и удалим его. Проверить же надо?! 🙂
Как видим первый (7986207) мы должны купить, а второй (7988151) у нас в наличии.
Данный код будет выполняться когда мы будем нажимать на соответствующую кнопку. Соответственно id должен быть в коде разный!
Что осталось? Проверять их наличие и соответственно исполнять то, для чего они куплены.
Для наглядности, вместо светлячка увеличивается высота прыжка. Запускаем и наслаждаемся!
Прыжок увеличен сразу после входа игрока. А скорость бега увеличивается, как только мы производим покупку.
Что собственно нам и нужно было.
Честно говоря я запарился делать такой длинный урок, который на видео помещается в менее, чем 7 минут. А ведь ещё, по уму, надо скрывать уже приобретённые геймпассы.
Читайте также: