HOW TO MAKE A GAMEPASS SHOP 🛠️ Roblox Studio Tutorial
Ойындар
In todays video I show you how to make a Gamepass Shop. I Hope you enjoyed the video, Have a lovely rest of your day!
If you are a bit confused what to do, Feel free to message me on Discord and Ill help you out!
🌟 Floppys Discord Server: / discord
Script 1:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.ShopFrame.Visible = not script.Parent.Parent.Parent.ShopFrame.Visible
end)
-- Change ShopFrame to your Frame name
Script 2: (Buying)
script.Parent.MouseButton1Click:Connect(function()
local MarketplaceService = game:GetService("MarketplaceService")
local id = 144471085 -- Change to your Gamepass ID
local hasPass
local player = game.Players.LocalPlayer
local success, message = pcall(function()
hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, id)
end)
if hasPass then
local char = player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
else
MarketplaceService:PromptGamePassPurchase(player, id)
end
end)
🌟 Floppys Roblox Game : www.roblox.com/games/11301003...
Roblox Studio Tutorial
Roblox Studio
Studio Tutorials
Пікірлер: 618
Your tutorials are great! They really help me with my games. Keep on making epic tutorials! (1+sub)
@Itz_FloppyFish
5 ай бұрын
Thanks so much for the support!
@_Minix_1
2 ай бұрын
@@Itz_FloppyFish I’m having issues because the game pass store comes up and doesn’t go down
@Mist_5
2 ай бұрын
@@_Minix_1I can help
@James_Playz375
Ай бұрын
@@Mist_5 can you help me?
@Notbacons
2 күн бұрын
the problem is that it shows "Your account has not been charged" or smt like that error
Omg Ty I always wanted to know that :) ❤
your so good bro and you make so easy tutorials! (you just earned a sub :)
this is the best tutorial that helped me 100/100 do more of roblox studio
Also we have to make sure that the buttons and frames are resized in scale. Not in offset
@Pro_yapper
10 ай бұрын
no
@MistyOnDaGas
8 ай бұрын
@@Pro_yapper yes....
@Pro_yapper
8 ай бұрын
@@MistyOnDaGas thanks thug
@lusvventi
5 ай бұрын
KAEYYA
@Batata-hc1ep
2 ай бұрын
@@lusvventi FURINA ???
this youtuber completed my game, thank you so much for all the good tutorials!!
Thanks for putting the code in the description that was very helpful
BRO TYSM :DDD
Thank you! Thank you thank you, this video was very helpful! Thank you very much!
YOOO THIS IS AMAZING THANKS MAN YOU GOT A NEW SUBSCRIBER
this guy makes so easy tutorials
@kayleetodd1001
8 ай бұрын
You saying that me having a mental breakdown
Really helpful, used it in two games so far super thanks! +1 sub.
@turtlerblx859
6 ай бұрын
used it in mine as well
thank you :D
Omg it worked tysm
hey, i really need help. can you please make a tutorial on how to make the same thing but with an on/off button? it would really help.
I have never seen a KZreadr that can explain things so well please keep doing such great tutorials 👍
@user-bd1ic1zd8c
4 ай бұрын
bro your not lying this youtuber just gained a new subscriber
this realy helped ty
thank you sooooooo much 👍👍👍👍
Hi I am new to this channel and keep up the work
Idea: Player can gift gamepass for their friend
@proyagizzzgt
Жыл бұрын
Not possible unless its a developer item
@coolxfn
10 ай бұрын
Well it is now
@mr.banaynay7245
5 ай бұрын
@@proyagizzzgtinstead of making a gamepass make a dev product that will permanently be attached to the gifted player there for you CNA gift
@imwonko
3 ай бұрын
thats what he said@@mr.banaynay7245
@III-pp7wi
2 ай бұрын
Yes some games have that
Works thanks
Thank you bro.
Thank you so much
THANK YOU SOOOOOO MUCH BRO
this is the first time one of your tutorials worked in 20 years!👋
@boskuslips4082
3 ай бұрын
guess i haven't been through those 20 years since it's not working for me
You are literally helping me understand and how to make the GUI for my project game
LOVE IT
thx man I did my first shop project with your tips❤
OMFG FINALLY I WAS TRYING SO LONG TO FIND THE CORRECT WAY TO DO IT THANK YOU SO MUCH
@ProGamer12163
10 ай бұрын
Me to😂😂😂
@Brandonyabannnedddd
6 ай бұрын
how did it work it hasn’t worked for me
@tuna862
6 ай бұрын
same, it works fine in studio but not ingame @@Brandonyabannnedddd
soooooooooo good!
nice video!
@Itz_FloppyFish
6 ай бұрын
Thanks!
Your the best
Keep going(:
TY❤❤❤❤
bro tysm!!!
this was so usefull thanks :) +1 sub
@Itz_FloppyFish
6 ай бұрын
Awesome, thank you!
@turtlerblx859
6 ай бұрын
@@Itz_FloppyFishi also joined your discord
This REALLY helped me out I subscribed! Also if it does not work its because you already own the gamepass.
@Itz_FloppyFish
Жыл бұрын
Thanks so much! Yes!
@ReplayGD
11 ай бұрын
ok ty it wasnt working and I was getting worried
@PitaBitMe
10 ай бұрын
OMG THANK YOU SO MUCH
@FieryBangers
7 ай бұрын
@@ReplayGD same here I was like DARN THIS VID until I found this comment. TYSM I subbed too.
thx bro
THIS IS AMAZING!!!!!!! (+1sub)
best roblox studio youtuber + 1 sub
And thank you for help me so much
Bro you helping out😀
thanks u a lots
big help dude:)
Thanks bro I thought it didint work
Could u show how to change the scale to fit on a mobile device because when i play on my phone everything is like completely off the screen
It worked 😊😊
nice video
I’m subscribing right now
TYSM
actually worked!! thanks!! 👍
It didnt work with the imagebutton for the gamepass asker so like when u click on the icon that makes you buy the gamepass it doesnt work
W explaining 😎
tysm
how do you make it so when you die a random item will appear in your inventory?
Hey there, This was a great tutorial and really helped! However I have one problem: Whenever I press the Buy button with my local id set to a random number, I get an error saying 3rd part purchases are disabled. This shows me that its working. However, if I swap the local id with my actual gamepass id, when I press the button nothing pops up? This was just one problem, other than that your tutorial was really helpful, and indepth! Hope you have a great day! :D
@Wuggahlol-new
3 ай бұрын
maybe you should've like used for example this type of id : "5190905563" and that is my toy sword gamepass but you need to either enable "Allow Third Party Sales" but if you do have it already on then you should choose the id of your gamepass which is way longer than for example : "273155325" and thank me if i helped you
@warmthfire4795
3 ай бұрын
ive had the same problem, did u find anyway to fix it?
@veqhasmovedlol
3 ай бұрын
@@warmthfire4795 Yes, I found out that if that shows up it is actually working lol, if you make your game public people can still buy it. You can't just buy it yourself. Hope this helps!
yet another W tutorial by floppy
hi amazing video, any chance you happen to know why when i do as told it doesn't work
I have the shop going and the gamepass in the shop but how do I make it so players can purchase a magic carpet and it gives it to them?
@cyboric
10 ай бұрын
so you need to have a magic carpet tool, then name it to Magiccarpet then use this script) local Players = game:GetService("Players") local MarketPlaceService = game:GetService("MarketplaceService") local GamepassID = 209207791 -- Change this ID to your Gamepass ID local ToolName = "Magiccarpet" -- Change YourToolName to whatever you tool is called Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, GamepassID) then script[ToolName]:Clone().Parent = player.Backpack end end) end)
@bluequeen8572
3 ай бұрын
That entire thing?
@bluequeen8572
3 ай бұрын
Even where it says, change the ID to the game pass ID?
ty
Man the tutorial is great, but where is the Offset to scale plugin
Hay could you make a video for if you already have a main menu from one of your other video tutorials "How To Make A Main Menu" I would deeply appreciate it. thank you!
Thank you so much. I love the fact that you put the script in the description. Mine works, I just need to make game passes and also another game for the teleporter video you did.
I know you probably won't see this because you posted this video months ago, however, I'll ask anyway. Are any changes to script 2 necessary if your doing the image button instead of the text button?
@Itz_FloppyFish
2 ай бұрын
Hi, Nope, no matter what button you use, both will work the same.
@Dilliacupcake
2 ай бұрын
@@Itz_FloppyFish It didn't work when I tried it though.
AN ACTUAL GOOD TUTORIAL AND HAS SCRIPTS IN THE DESCRIPTION BRAVO❤
Thanks bro i almost quit roblox studio (even tho im 10) until i found your vids
Thank you SO SO MUCH for helping me. I am currently working on a roblox game named "FreezeUp" and I'm adding gamepasses so this was a TON of help! I can add you into the credits if ya want.
@theunknownwastaken8600
2 ай бұрын
I spoke too soon. The script doesn't work.
again a very nice vid ty !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
So if I wanna add more gamepass, i just duplicate the Gamepass Textbutton ?
works in roblox studio game but not when i have when you join it on roblox
can you make the same tutorial but with tool gamepass shop? it would be very appreciated.
@jayo8466
11 ай бұрын
Open Roblox Studio: Launch Roblox Studio on your computer. Create a place: Start a new place or open an existing one where you want to add the GUI shop. Insert a Part: Insert a Part into your game to serve as the base for your GUI shop. This part will act as the trigger for opening the shop. Create a Script: Right-click on the Part, go to "Insert Object," and choose "Script" to create a new script. Write the Script: Double-click on the script to open the code editor and write the code for opening the GUI shop. Here's an example script that opens a basic GUI shop when the Part is clicked: lua Copy code local part = script.Parent part.ClickDetector.MouseClick:Connect(function(player) local playerGui = player:WaitForChild("PlayerGui") local gui = playerGui:FindFirstChild("ToolShopGUI") if not gui then -- Load the GUI gui = game.ServerStorage.ToolShopGUI:Clone() gui.Parent = playerGui end gui.Enabled = true end) Create the GUI: In the Explorer window, navigate to "ServerStorage" or create a new folder. Right-click on it, go to "Insert Object," and choose "ScreenGui" to create a new GUI. Customize the GUI with buttons, labels, and other elements to display the tools available for purchase. Add Tool Purchase Logic: In the GUI script, you'll need to add the logic for purchasing tools when the player clicks on a button. This typically involves deducting the appropriate in-game currency from the player and granting them the tool. Remember to adjust the script and GUI code to fit your specific needs, such as the names of the Part, GUI, and tool objects.
@darkplayer07
8 ай бұрын
@@jayo8466 bro made a full video over here 💀
@darkplayer07
8 ай бұрын
@@jayo8466 cool tho
I didn’t watch the full video but I have a question how do you make the item give you what it says there?
When you put the text frame visibilty off it just disappears of my game screen why?
If I wanna do a gamepass that give an iteam, what should I do after ?
I have a problem, this video is so well made and very well said DONT get me wrong, but whenever i click the gamepass shop it randomly pops up with the gamepass purchase, without even clicking the vip gamepass button. and when i do press that, it says "your purchase failed because something went wrong" etc. my friend tried, and my alt and the same thing popped up. please somebody help!! im so stuck.
For some reason when I put in my game pass I’d it says ‘Your purchase failed because something went wrong. Your Account has not been charged. Please try again later.’ PLEASE SOMEBODY HELP
@shaharyarom1205
8 ай бұрын
same ): please tag me when someone answer him I really don't know what to do ):
@bigtuna47
7 ай бұрын
have you checked "allow third party sales" in security in game settings?
This is the only youtuber that actually explains,put the script in desc,and shows the results +1 sub
@goelrads
7 ай бұрын
i know right so true
@turtlerblx859
6 ай бұрын
i subbed too
@DaBeastGang
5 ай бұрын
dude all the other youtubers tutorials suck. His tutorials are the only ones that work.
@DarkedCyber
4 ай бұрын
@@DaBeastGang REAL TALK RIGHT THERE
@DaBeastGang
4 ай бұрын
yes sir@@DarkedCyber
Where is the off set to scale plugin in the description??? Can you send me it :), Also TY for making this video, This helped a lot
@RigTags
7 ай бұрын
EXACTLY where is that
I did everything you did, but somehow when i click the shop button the shop doesn't opens. Can you maybe explain what i could've done wrong?
people who think his tutorials are quick and easy and helpful 👇
if i wanna add like a coil? how do i do it?
@Itz_FloppyFish , the button inside the frame would not prompt the purchase. pls help me. Thx
well it kinda worked, but when i went into the game it said third part sales were disabled for the game, and when i click on the gamepass nothin happens no matter how long i wait
Hi I have a question what is game Id? and how I know it? I just wanna give code in my game so I don’t know what to do pls help❤
I need to insert the shop on a main menu but it dont work. The systems said me "script.Parent.Parent.Parent.ShopFrame.Visible" in script one, is incomplete. can you help me plz maybe you can do an other video with complete menu (play, invite friends, shop, donates and credits buttons). but great content, +1 sub (sorry for my bad english :S)
Hi, thank you for amazing tutorials but when I click on the text button to open the gamepass to buy it doesn't work. I don't have discord please help me out:)
@Itz_FloppyFish
Жыл бұрын
Hi, Please make sure everything is named correctly, As this code does still work.
@TheSageMemes
Жыл бұрын
@@Itz_FloppyFish i have the same problem but i have everything named correctly please help me
@brylleyt6975
10 ай бұрын
@@Itz_FloppyFishHey the tutorial is pretty good it worked but how can I fix this? My problem is that the shop button can be seen in PC but when I play my game in mobile I can't see the shop button
Once ido another gamebass when ido visble the another gamebass still not visble what can ido to fix it?(imean icant make another gamebass just one)
Floppy I really love your videos and they're really helpful but when i click on the button that i can buy stuff with, it doesn't give me the option to buy it. I would really appreciate if you took some time to help me out
@blacktootrappy8896
Жыл бұрын
@@Boney.. oh no it does work as long as you don't own the gamepass
@Boney..
Жыл бұрын
@@blacktootrappy8896 Oh I just went on an alt and it worked...
Very helpful, helped with my troll shop (I used developer products instead), and I'm going to use this tutorial again when I have gamepasses I want to make (right now I don't have any ideas right now, but they'll come!)
just that to my game be completed!
what do i copeid when the part when you have to fillied up the TextButton LocalScript
I need a little help, everything else works great, but when I inserted my game pass ID it wouldn't do anything when I tested it, I clicked it but it didn't let me buy it or anything👀
@paartol
4 ай бұрын
Same. i tried using the inventory id - nothing happened creator hub one - it told me that smth went wrong
@EpicTyler711
3 ай бұрын
its your gamepass try with a alt or let your friend
the first script to open and close the shop worked but the script to buy the gamepass doesn't work
@OMARXVTUUP
Жыл бұрын
me too :(
@Animalblue16_plays
8 ай бұрын
Me to 😢😢😢😢😢😢
Umm how can I do it if I have a main screen in my way that says play and when it is blured out
when i try to buy my gamepass it just says "transaction failed, you account has not been charged" do u know how i can fix that problem?
but if i make like flying carpet gamepass when peoples purchase it they dont get it why? what do i need to do
does it auto maticly giv e them the money?
Hey can you make a tutorial on how to make a shop use IN-GAME currency instead of with robux thx!
Does this work with an iMac because I’m using one to do this and it’s not working
And ido it step by step and when iclick to buy it say your pharche failed because something went wrong what can ido to fix it?