How to make a GAMEPASS Button | Roblox Studio Tutorial

  Рет қаралды 12,869

Itz_FloppyFish

Itz_FloppyFish

Күн бұрын

Happy new year to everyone,I look forward to seeing what 2024 has in store for us!
In todays video I show you how to make a gamepass button in Roblox Studio, this system can also be used in a variety of different ways. These are used to allow players to purchase gamepasses while still in the game. This is a great way to increase revenue throughout your game.
I really enjoy making these videos for you all so I hope you enjoy them just as much as I do!
Script 1 (Simple script, Just Prompts the gamepass)
local MarketplaceService = game:GetService("MarketplaceService")
local GamepassID = 1234567890 -- Change this ID to your Gamepass ID
script.Parent.MouseButton1Click:Connect(function()
MarketplaceService:PromptGamePassPurchase(game.Players.LocalPlayer, GamepassID)
end)
--------------------
Script 2 (Advanced, Opens a gui if the player already has the gamepass)
script.Parent.MouseButton1Click:Connect(function()
local MarketplaceService = game:GetService("MarketplaceService")
local GamepassID = 1234567890 -- Change to your Gamepass ID
local HasPass
local Gui = script.Parent.Parent.OpenGui -- Change OpenGui to whatever your gui that is going to open is called
local Player = game.Players.LocalPlayer
local success, message = pcall(function()
HasPass = MarketplaceService:UserOwnsGamePassAsync(Player.UserId, GamepassID)
end)
if HasPass then
Gui.Visible = true
wait(3) -- You can adjust how long the other frame is open if the player already has the gamepass
Gui.Visible = false
else
MarketplaceService:PromptGamePassPurchase(Player, GamepassID)
end
end)
----------------------
If you are a bit confused what to do, Feel free to create a ticket in my discord server and we can help you out!
NEW! Floppys Obby Game : www.roblox.com/games/14917960...
Floppys Simulator Game: www.roblox.com/games/13963457...
FloppyFish Merch Store: itz-floppyfish.creator-spring...
If you would like to support me even more, Super Thanks and becoming a Member is also another way to show your appreciation!
🌟 Floppys Discord Server: / discord
🌟 Floppys Roblox Game : www.roblox.com/games/11301003...
Roblox Studio Tutorial
Roblox Studio
Studio Tutorials

Пікірлер: 84
@Itz_FloppyFish
@Itz_FloppyFish 6 ай бұрын
Thank you all so much for the support, Happy new year! I look forward to seeing what 2024 has in store for us!
@henry4915
@henry4915 6 ай бұрын
and you
@NotAxolotl
@NotAxolotl 6 ай бұрын
Happy new years
@titanspeackerman131
@titanspeackerman131 6 ай бұрын
i know i hope you become the owner of roblox :)
@titanspeackerman131
@titanspeackerman131 6 ай бұрын
and happy new year
@Flamingjo1
@Flamingjo1 6 ай бұрын
the code isnt working idk why
@Rob3rt_YT
@Rob3rt_YT 6 ай бұрын
Happy new year floppy! You even post in new year that’s crazy!
@Jing.TheKing
@Jing.TheKing 6 ай бұрын
Happy new yearr! Thank you so much for these vids man. I started making roblox games early this year and youve helped a lot. Ive made 10 games (12 if you include unfinished ones AHHAHAA) and i have a commission! Crazy cuz the dude who hired me wants his game to have a gamepass and i was just gna find a vid like this Hope yall have a great new year, this year was crazy but im sure that 2024'll be pretty great
@julie.a2483
@julie.a2483 5 ай бұрын
amazing stuff. keep it up 😄
@TQNY
@TQNY 6 ай бұрын
Love this Video - Happy New Year to You & Everyone here ‼
@Itz_FloppyFish
@Itz_FloppyFish 6 ай бұрын
So glad to hear you enjoyed it!
@onellydd7188
@onellydd7188 2 күн бұрын
Thanks! Subbed!
@Corentinlepro
@Corentinlepro 6 ай бұрын
thank you for this video :)
@MoopCity
@MoopCity 2 ай бұрын
Amazing. thanks so much for the code
@Imagine858
@Imagine858 3 ай бұрын
your the best dev i know on this plant!! TYSM
@kashmirandal6282
@kashmirandal6282 18 күн бұрын
plant
@user-wl3qj4xq5p
@user-wl3qj4xq5p Ай бұрын
Your videos take long to finish, but your tutorials are great!
@itsandroid_18
@itsandroid_18 3 ай бұрын
tysm man ur the best
@prankychris97385
@prankychris97385 5 ай бұрын
Happy new year
@lusty10
@lusty10 2 ай бұрын
Thank you! This helped so much, defo going to sub!
@CyberRover-dk2nw
@CyberRover-dk2nw 4 ай бұрын
TYSM it worked
@crazypancake7165
@crazypancake7165 3 ай бұрын
This guy is underrated
@MRTTOSIM23
@MRTTOSIM23 4 ай бұрын
AYOOOOOOOOOOOOOOOOOOOOOOOOOOO TYSM EVRYTHING I MAKE IN THIS GAME 30% GOES TO U UR A GOAT TYSM
@seventh5876
@seventh5876 5 ай бұрын
hey floppy, great video it was very helpful! next episode can you make it where if a player owns several/all existing badges, they get awarded a badge (something like a collectors badge)? I would appreciate it
@TorenBrick
@TorenBrick 5 ай бұрын
frrrr I've thought abt that!
@XEL230
@XEL230 6 ай бұрын
Thank you so much!
@Itz_FloppyFish
@Itz_FloppyFish 6 ай бұрын
Glad it helped!
@ItzfloppyfishsHeater
@ItzfloppyfishsHeater 6 ай бұрын
Happy new year buddy ol’ pal! New year new heater. What’s your new year resolution? Mine is to do 10 backflips in a row
@ArlxGamlng
@ArlxGamlng 6 ай бұрын
You can test it in studio without actually deleting the pass
@its-hex
@its-hex 5 ай бұрын
Yo great video. Can you make a video on how to make a unlockable door with coins?
@Roxy_pis_dans_sa_tache
@Roxy_pis_dans_sa_tache 3 ай бұрын
i learn with you its no just a suck model thx
@TheSNFfootballer
@TheSNFfootballer 5 ай бұрын
Hey on your teleport gui video a few months ago the teleporter doesn’t work when it’s too far away is there any solution to that?
@PeanutDaBeastW
@PeanutDaBeastW 5 ай бұрын
Does this also work with the botton leading to a shop gui then having the gampass there?
@ArlxGamlng
@ArlxGamlng 6 ай бұрын
When are you going live
@piberaroo
@piberaroo 5 ай бұрын
Could you do a badge that unlocks after having other badges?
@Do_Not_Click_This_Profile_Pls
@Do_Not_Click_This_Profile_Pls 5 ай бұрын
Can you please teach us how to create an item in a game only obtainable by joining the group.
@Elmin_Gaming
@Elmin_Gaming 5 ай бұрын
Can you make a script that makes you go upside down
@Flamingjo1
@Flamingjo1 6 ай бұрын
im soo lucky just what i need
@qpqiu
@qpqiu 7 күн бұрын
hi! im tryna make a floating balloon script, like where you equip it and it flies you indefinitely. how would i go about this? im REALLY new to scripting, so i have no idea what any of the lingo even means. can someone dumb this down for me?
@Roblox.-Goat
@Roblox.-Goat 4 ай бұрын
Can you please tell us how to create a gamepass Button But at the same time it gives you an item
@Sup1573
@Sup1573 3 ай бұрын
please explain this error please 😭 MarketplaceService:PromptGamePassPurchase() player should be of type Player - Server - Script:5
@alianorman3017
@alianorman3017 2 ай бұрын
Is there a way to make the player buy the same game pass multiple times??
@TeevRobloxDeveloper
@TeevRobloxDeveloper 6 ай бұрын
Top Tutorial! ❤ Vote for Daily Tutorials 👇
@SHINE1YT
@SHINE1YT 4 ай бұрын
how to make when we buy we get an item
@Tr0p4l298
@Tr0p4l298 2 ай бұрын
How can u make it so the gamepass actually gives u something?
@LJShortsOFFICIAL
@LJShortsOFFICIAL 14 күн бұрын
When i do it it says visible is not a part of the gui
@luaymousa
@luaymousa 6 ай бұрын
Can you make a radio tutorial please I need it badly and I don't know how to make it
@Duskerr
@Duskerr 6 ай бұрын
Just get one off of the toolbox
@luaymousa
@luaymousa 6 ай бұрын
@@Duskerr tysm👍
@bieluga
@bieluga 6 ай бұрын
Please help me , why when i click the gameass button it shows an error how can i fix that?
@Beastbud1
@Beastbud1 5 ай бұрын
It shows that for me too
@logafaumuina3199
@logafaumuina3199 5 ай бұрын
same
@hughmayne7327
@hughmayne7327 2 ай бұрын
​@@logafaumuina3199DON'T JUST SAY SAME EO SOMTHONG
@LA-UF24
@LA-UF24 3 ай бұрын
for the first one, does it need to be a gamepass ID or can i use a developer product one aswell
@LemonForLife01
@LemonForLife01 Ай бұрын
both is good i think
@AngeIVomit
@AngeIVomit 2 ай бұрын
hey man, It keeps coming up with error, do you know a way to fix this? Thanks.
@tomaszsobera2414
@tomaszsobera2414 Ай бұрын
for me it doesnt work
@hughmayne7327
@hughmayne7327 2 ай бұрын
I need help it doesn't work I did everything correctly
@MegaBlox_YT
@MegaBlox_YT 6 ай бұрын
Hiii
@Agentglory
@Agentglory 6 ай бұрын
i do everything right in this video if i put ur gamepass u can just buy it if i put in my gamepass its says. your purchase failed something went wrong how can i fix this?
@Siokien
@Siokien 5 ай бұрын
so idk how but the starterpack works so i think there another script we dont know where it is doing this so you should name it anything and it might work idk if it will work but ill test later
@Agentglory
@Agentglory 5 ай бұрын
@@Siokien thx
@hughmayne7327
@hughmayne7327 2 ай бұрын
​@@Agentgloryhow do you understand him?
@TPHBS
@TPHBS 6 ай бұрын
second
@PakinPrompan
@PakinPrompan 6 ай бұрын
How i gonna color the gamepasses button?
@Duskerr
@Duskerr 6 ай бұрын
Yeah, go to the properties tab and change background color
@itssufiyan128
@itssufiyan128 Ай бұрын
hi
@jayjay-yz1vy
@jayjay-yz1vy 3 ай бұрын
WHY IS IT SAYING ERRORRR
@CuredRoblox011
@CuredRoblox011 6 ай бұрын
go live
@Ghost69524
@Ghost69524 6 ай бұрын
first
@oliver-and-mummy-playz
@oliver-and-mummy-playz 2 ай бұрын
doesn't work
@Itz_FloppyFish
@Itz_FloppyFish 2 ай бұрын
Hi, If you are having some trouble, please do create a ticket in our discord server and we can help you out!
@DeadlyDarkDex
@DeadlyDarkDex 6 ай бұрын
Get sued
@Itz_FloppyFish
@Itz_FloppyFish 6 ай бұрын
?
@liezldejesus8106
@liezldejesus8106 Ай бұрын
hey floppy can you add friend me because it didnt work plus idk how to fix it -HungerExpress
Can I Make a VIRAL Roblox Game in 1 Hour?
15:16
Temprist
Рет қаралды 4,2 МЛН
What Is The Best AI For Roblox Studio Scripting?
10:42
RoDev
Рет қаралды 401 М.
⬅️🤔➡️
00:31
Celine Dept
Рет қаралды 50 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27
1❤️#thankyou #shorts
00:21
あみか部
Рет қаралды 88 МЛН
How To Create a GAMEPASS Button | Roblox Studio Guide
4:24
danielfantastic
Рет қаралды 13 М.
I used Roblox admin to FAKE DONATE to people…
8:01
Flamingo
Рет қаралды 11 МЛН
5 BEGINNER *MISTAKES* IN ROBLOX UI! 😲
6:20
slicedmelon
Рет қаралды 27 М.
I tried Discord Bot Makers...
14:19
FaceDev
Рет қаралды 80 М.
If You Make Me Laugh, I'll Draw You
12:20
Wondernat
Рет қаралды 1,2 МЛН
How Adding Gamepasses to my Roblox Game made me RICH
5:37
DeHapy
Рет қаралды 122 М.
How to make a Admin Gamepass [ROBLOX]
2:07
Fraid
Рет қаралды 20 М.
I spent 500 DAYS Building My Roblox Game!
14:21
DeHapy
Рет қаралды 936 М.
СМОТРИ, КАКОЙ ВКУСНЫЙ ПИРОЖОК!
12:56
ViteC ► Play
Рет қаралды 863 М.