How to Make A Gamepass Shop in Roblox Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024
  • How to Make A Gamepass Shop in Roblox Studio
    Hey guys! Welcome back to a brand new video. In today's video I am going to be teaching you guys how to make a gamepass shop in roblox studio. It's a way to give your players special upgrades and way for them to buy your gamepasses so you can make money! It's pretty simple. Be sure to leave a like if you enjoyed and subscribe for more awesome roblox studio scripting tutorials!
    -Join my Discord Server to learn and meet other developers!-
    / discord
    --Become A Member and Unlock EXCLUSIVE Perks!
    / @thedevking
    -- Follow me on twitter! (my name is tapwater because thats my main channel): / realtapwater
    -- Follow me on Instagram! (my name is tapwater because of my main channel): / realtapwater
    Link to Beginner's Tutorial Series:
    • Beginner's Roblox Scri...
    --What is this series about and who is it for?
    So this series is meant for people who really want to learn exactly how to script, if that is you then I promise by the time you watch this whole series you will know exactly how to script on roblox. Anyways be sure to subscribe to see whenever I release a new tutorial and I will see you guys in the next one. Peace!

ความคิดเห็น • 1.6K

  • @jamakosus
    @jamakosus 2 ปีที่แล้ว +23

    Thanks so much :)
    Edit: If you already have a Gamepass set up like a boombox and you don't want it to give you a sword, don't put any type of sword model in the Workspace or anywhere and get rid of the parts in both scripts that say
    --local sword = game.ReplicatedStorage.ClassicSword:Clone()
    Sword.Parent = player.Backpack

    • @new_zealand_mapping
      @new_zealand_mapping 2 ปีที่แล้ว

      Thanks, I'll be sure to keep this in mind.

    • @jamakosus
      @jamakosus 2 ปีที่แล้ว

      @Fizzy Yes :)

    • @Sana.banana.
      @Sana.banana. ปีที่แล้ว

      wait so how much lines? Like on the side when you type (1 code code code.Code)

    • @TopBoyAkykloforhta
      @TopBoyAkykloforhta ปีที่แล้ว +1

      My menu doesn't open when I press the open shop button, but if I make the menu always visible I can test buy the item
      can you help me fix the button?

    • @Potato.1567
      @Potato.1567 ปีที่แล้ว

      @@TopBoyAkykloforhta is the namr of the frame called "MainFrame"?

  • @TotallyHighQ
    @TotallyHighQ 4 ปีที่แล้ว +247

    Me spends like 30 minutes making this
    The Dev King: okay so it works
    ME: WHAT TEH HECK WAT DID I DO WRONG

    • @Xavier-lp5ty
      @Xavier-lp5ty 4 ปีที่แล้ว +14

      SAME HERE

    • @Corvus_the_wyvern
      @Corvus_the_wyvern 4 ปีที่แล้ว +3

      I did that all the time I spend like an hour working then it doesn't work so I just watched tutorials so I could understand it better

    • @krizzah
      @krizzah 4 ปีที่แล้ว +1

      The fricking guis just follow the one I drag!

    • @mathew4566
      @mathew4566 4 ปีที่แล้ว +1

      same happened to me

    • @bluetastic2098
      @bluetastic2098 4 ปีที่แล้ว +2

      Same

  • @ieatass4226
    @ieatass4226 4 ปีที่แล้ว +175

    We can literally make a game with what you teach us, thank you so much

  • @sdref8348
    @sdref8348 4 ปีที่แล้ว +16

    DO YOU HAVE A TUTORIAL FOR DEV PRODUCTS? I WANTED TO CREATE A SKIP STAGE ON YOUR WORK. HOW CAN I DO THAT? PLS

  • @VanwareScript
    @VanwareScript 4 ปีที่แล้ว +8

    this is exactly what i need thank you so much. also i watch ur vids (not all of them) but im still a fan and u support u! soon i can make a real game out of these tutorials! also next make a tutorial for a simulator!

  • @zeff_rblx
    @zeff_rblx 2 ปีที่แล้ว +11

    The one thing I cant figure out is when I buy the product in the test server, the item doesn’t show up in my inventory

    • @DevilishPqnda
      @DevilishPqnda 2 ปีที่แล้ว +1

      you have to buy it again/basically its a 1 time buy thing

  • @kaushaladi
    @kaushaladi 3 ปีที่แล้ว +6

    press windows logo key + V to see all your copied items in one place then remove those you don't want and pin those which you really want for a long period (I meant pin them so when you shut down/restart your PC, the copied item will stay but enable it first after pressing windows logo key + V)

  • @Corvus_the_wyvern
    @Corvus_the_wyvern 4 ปีที่แล้ว +24

    I started laughing the second he said ("we don't want to scam our person who bought a game pass for 600'000'000 robux")

  • @Anxhio
    @Anxhio 4 ปีที่แล้ว +91

    Me when im finished with the LocalScript: Yes no more typing
    TheDevKing: Ok so then your going to wanna insert a script in server script service
    Me: &$#*

    • @suryasasidharan7284
      @suryasasidharan7284 4 ปีที่แล้ว +1

      lol

    • @sub4rl
      @sub4rl 4 ปีที่แล้ว +2

      You can copy paste.

    • @ktan071181
      @ktan071181 4 ปีที่แล้ว +1

      I feel how u feeling dood

    • @suryasasidharan7284
      @suryasasidharan7284 4 ปีที่แล้ว +2

      And at final I wrote this all and... THEN MY CONNECTION WAS DISCONNECTED AND THE AUTOSAVER WAS NOT WORKING 😡😡😡😡

    • @bjdjddndjdiw5820
      @bjdjddndjdiw5820 4 ปีที่แล้ว +1

      Lol

  • @boblox_studio_dev
    @boblox_studio_dev 2 ปีที่แล้ว +5

    A lot of people put items inside of replicated storage. Instead of using replicated storage, I put the sword in server storage instead because of exploiters. Then, I use a remote event so it can go to a server script, then access server storage, since you can't access serverstorage in a local script.

    • @twoptop
      @twoptop ปีที่แล้ว

      but then... exploiters will just fire the remote event...

    • @Muhammadsaym
      @Muhammadsaym ปีที่แล้ว

      ​@@twoptoplol😂

  • @hopeywan
    @hopeywan 4 ปีที่แล้ว +54

    when roblox takes
    *300 million robux from your gamepass*

    • @moncrnn5858
      @moncrnn5858 4 ปีที่แล้ว +1

      Wait does that actually happen?

    • @hopeywan
      @hopeywan 4 ปีที่แล้ว +5

      @@moncrnn5858 no it was in the video when he made his gamepass 600 million robux and the developer taxes on the gamepass was 300M robux lol

    • @CxVacem
      @CxVacem 4 ปีที่แล้ว +1

      AfroDude well it does happen but its for gamepasses it takes 30% off from what the price is and you get 70% from the original price
      And someother things can take off 90% and tou could only get 10% which sucks

    • @doylan1101
      @doylan1101 4 ปีที่แล้ว

      Yeah they take 30% of ur purchase

  • @landenty1525
    @landenty1525 3 ปีที่แล้ว +10

    For anyone having trouble with the scripts, Here's the first one;
    local MarketplaceService = game:GetService("MarketplaceService")
    local MainFrame = script.Parent.MainFrame
    local LittleAmountGamepass = MainFrame.LittleAmountGamepass.LittleAmountImage
    local OpenShopButton = MainFrame.Parent.OpenShopButton
    local player = game.Players.LocalPlayer
    local LittleAmountID = 13080493
    LittleAmountGamepass.MouseButton1Down:Connect(function()
    local success, message = pcall(function()
    hasPass = MarketplaceService:UserOwnsGamePassAsync(player.userID, LittleAmountID)
    end)

    if hasPass then
    print("Player Already Owns Gamepass")
    else
    MarketplaceService:PromptGamePassPurchase(player, LittleAmountID)
    end
    end)
    OpenShopButton.MouseButton1Down:Connect(function()
    MainFrame.Visible = not MainFrame.Visible
    end)
    Here's The Second Script;
    local MarketplaceService = game:GetService("MarketplaceService")
    local player = game:GetService("Players")
    local LittleAmountID = 13080493
    game.Players.PlayerAdded:Connect(function(player)
    local success, message = pcall(function()
    hasPass = MarketplaceService:UserOwnsGamePassAsync(player.userID, LittleAmountID)
    end)

    if hasPass then
    print("Player Has The Gamepass")

    local LittleAmount = game.ReplicatedStorage.SwordOfBlueEpicness:Clone()
    LittleAmount = player.Backpack
    end
    end)
    local function onPromptGamePassPurchaseFinished(player, purchasePassID, purchaseSuccess)

    if purchaseSuccess == true and purchasePassID == LittleAmountID then
    print(player.Name .. "Purchased the Gamepass")

    local LittleAmount = game.ReplicatedStorage.SwordOfBlueEpicness:Clone()
    LittleAmount = player.Backpack
    end
    end
    MarketplaceService.onPromptGamePassPurchaseFinished:Connect(MarketplaceService.onPromptGamePassPurchaseFinished)

    • @EAS641
      @EAS641 2 ปีที่แล้ว +1

      bro thank you so much you saved so much of my time

    • @RealDannyHelmer
      @RealDannyHelmer 2 ปีที่แล้ว

      @@EAS641 Yeah but he teaches you what does what

    • @RealDannyHelmer
      @RealDannyHelmer 2 ปีที่แล้ว

      Also the dude that posted the comment you missed a lot of things up. ik little amount is a donation

    • @Back_Alley
      @Back_Alley ปีที่แล้ว

      Hippity hoppity this script is now my property

  • @Akeno-xj3er
    @Akeno-xj3er 4 ปีที่แล้ว +46

    8:00 You thought it was Roblox that was spying on you *BUT IT WAS ME DIO!*

  • @breadedbreadstick
    @breadedbreadstick 4 ปีที่แล้ว +7

    This video was really helpful! Thanks!

  • @oliverbruce5437
    @oliverbruce5437 3 ปีที่แล้ว +20

    Me: spending an hour trying to make this
    TheDevKing: So there you go it now works.
    Me: IT DOESNT WORK

    • @rbxmintyYT
      @rbxmintyYT 3 ปีที่แล้ว +1

      relatible

    • @aluzatec2404
      @aluzatec2404 3 ปีที่แล้ว

      SAMEEEE IT DOESN'T WORK MY SHOP IS STUC ON MY SCREEN XD

  • @jellyfann4374
    @jellyfann4374 3 ปีที่แล้ว +8

    He’s going so fast that my memory is being washed. 😐 That was a compliment btw.

    • @bco-fm5qu
      @bco-fm5qu 3 ปีที่แล้ว

      Woosh

    • @dano7319
      @dano7319 3 ปีที่แล้ว

      Same bro Im disliking this video

    • @bco-fm5qu
      @bco-fm5qu 3 ปีที่แล้ว

      @@dano7319 Me: playing the video at 0.25 playback speed. Still Woosh

    • @lastlombaxx
      @lastlombaxx 3 ปีที่แล้ว

      @@dano7319 You can just stop the video and write it, then watch it while he explains it, he cant know how fast everyone types

    • @pbjgamer_YT
      @pbjgamer_YT 3 ปีที่แล้ว

      @@lastlombaxx Exactly! That's what I do!

  • @PGTplayz
    @PGTplayz 4 ปีที่แล้ว +17

    this video doesn't explains if you have to have certain names to make it work

    • @gonfreproductions2229
      @gonfreproductions2229 4 ปีที่แล้ว +1

      PGT playz just learn the basics smh

    • @ultimatewaybigx7685
      @ultimatewaybigx7685 4 ปีที่แล้ว

      there's nothing like certain names only certain functions and properties and when there is something that needs a certain name it'll be the leaderstats or handle for a tool due to my knowledge

  • @itsnotextra
    @itsnotextra 4 ปีที่แล้ว +5

    Me: Spends 1 hour on this cuz I am slow, also me: Yay it’s gonna work
    Dev king: Ok so it worked yea
    Me: Lies!

  • @turuyak
    @turuyak 3 ปีที่แล้ว +8

    me : 20 minute only, its so easy
    me after make 1 gamepass in 1 day : yes i finish my first gamepass 🗿

  • @dreamimagine7569
    @dreamimagine7569 2 ปีที่แล้ว +3

    Worked like a charm! You earned a sub!

  • @emanz2729
    @emanz2729 4 ปีที่แล้ว +4

    Always so usefull! #1 tutorial maker!

  • @gamingkait9886
    @gamingkait9886 3 ปีที่แล้ว +21

    me: Spend 1hour and 30 minutes scripting
    Game: Not today!

    • @alcander2043
      @alcander2043 3 ปีที่แล้ว +1

      F

    • @AhmadH345
      @AhmadH345 3 ปีที่แล้ว +1

      Exactly what happend to me

    • @seadrown6252
      @seadrown6252 3 ปีที่แล้ว +1

      it works for me but i do have experience in coding lua so yeah

  • @kokoB3an
    @kokoB3an 2 ปีที่แล้ว +3

    I spent two hours copying you and when I started the game none of the buttons worked and the shop menu was just on my screen automatically on my screen do you have a solution

    • @UNDONE-916
      @UNDONE-916 2 ปีที่แล้ว

      Did you uncheck visible on mainfraim?

  • @xeakly
    @xeakly 3 ปีที่แล้ว +26

    if anyone is having trouble with the backpack part change it to 'StarterGear' instead but you have to reset after purchasing

    • @pbjgamer_YT
      @pbjgamer_YT 3 ปีที่แล้ว +2

      Ok, I'll try it!

    • @zeff_rblx
      @zeff_rblx 2 ปีที่แล้ว +1

      Wait, really

  • @thezone5265
    @thezone5265 4 ปีที่แล้ว +14

    A tutorial with a person with an actually personality I respect you

  • @comrade1456
    @comrade1456 2 ปีที่แล้ว +2

    I got the script and everything right but when I press Open shop , the shop does not show up. can someone help and tell me what I skipped that does not have to do with the scripts?

    • @bluecoconut795
      @bluecoconut795 3 วันที่ผ่านมา

      I had the same issue but then I realized I had my shop visibility set to off, basically it was invisable. Maybe you did something like that

  • @aquathrottle9132
    @aquathrottle9132 4 ปีที่แล้ว +37

    Me: Spends an hour doing this correctly like u did.
    You: Tests the game *Guys it works*
    Also me: Tests game IT DDINT WORK SO I GOT RID OF MY GAME TOOK ME HOURS TO MAKE

    • @girlwhattho
      @girlwhattho 4 ปีที่แล้ว +5

      Your really dramatic

    • @girlwhattho
      @girlwhattho 4 ปีที่แล้ว +4

      I lost 5 days

    • @aquathrottle9132
      @aquathrottle9132 4 ปีที่แล้ว +2

      @@girlwhattho Hey ok I tried the same thing he did
      I did it all correctly that he did and when I tested it out like he did it iddnt work

    • @girlwhattho
      @girlwhattho 4 ปีที่แล้ว +2

      Masen Kinge i know same

    • @hrey27
      @hrey27 4 ปีที่แล้ว +4

      Guys you need to name it to that certain thing for example you cant have the frame named "frame" when you added the code that specifically stated "MainFrame" :/

  • @beware4
    @beware4 2 ปีที่แล้ว +1

    Thanks for the tutorial! When I first tested it, it said something about third party requests being disabled but the fix for this is to simply enable third party sales in the game settings 😀

  • @S_1nad
    @S_1nad 3 ปีที่แล้ว +21

    I think you should have added the scripts in the description

    • @cyan_14
      @cyan_14 3 ปีที่แล้ว

      some people might've named something differently so the name of something in the code will change.

    • @staredits2672
      @staredits2672 3 ปีที่แล้ว

      @@cyan_14
      FFFFF

    • @reneeberguis7654
      @reneeberguis7654 3 ปีที่แล้ว

      @@cyan_14 yes

    • @reneeberguis7654
      @reneeberguis7654 3 ปีที่แล้ว

      dont try this even bc its not working anymore it didnt wanted even show me my gamepass

    • @spiderbacon2741
      @spiderbacon2741 2 ปีที่แล้ว

      I think its better if he teaches us than just tell us to copy and paste it

  • @nadog9998
    @nadog9998 2 ปีที่แล้ว +2

    Hi great video, im just wondering, my ''hasPass'' has a line under it and i think this is stopping it from prompting the pass, got any ideas what i could do?

    • @6ixom115
      @6ixom115 2 ปีที่แล้ว

      @Max if you want to figure out if its true, you put ==
      if you want it to only know true then do that i think

  • @Santusknowsyourlocation
    @Santusknowsyourlocation 4 ปีที่แล้ว +11

    Thank youuuu none have watched it sone yet soo yay! Its 16 minutes left for mehhh :)

    • @MatchaCookie.
      @MatchaCookie. 3 ปีที่แล้ว

      MIDORIYAAAAAAAA

    • @torenonion
      @torenonion 3 ปีที่แล้ว

      @@MatchaCookie. nahhh thats bakugou

  • @xxwhwolfxx7071
    @xxwhwolfxx7071 3 ปีที่แล้ว +11

    Can you please type the script out in the comments so that I can copy and paste mine seems to be not working.

  • @Jawchy
    @Jawchy ปีที่แล้ว +1

    Spent so long doing this when I tested I couldn’t close the place where you “buy” it and it was already open and it wouldn’t even let me click it

  • @ale___x
    @ale___x 4 ปีที่แล้ว +19

    hi can you show us how to make a loading screen? Like have it show how many assets left to load and stuff thanks.

    • @Jay-fl7tc
      @Jay-fl7tc 4 ปีที่แล้ว +10

      Honestly its easy. ill tell you the script I need you to follow me every step. right this is what you need to do: you need to create a screen GUI insert a frame into it, then set the size of the frame to 1,0,1,0. Then insert a text label into the frame and put Loading for example.That bit is the customization that's up to you. Then in ReplicatedFirst insert a localscript. Put the ScreenGUI inside the local script. Name the ScreenGUI "LoadingScreen". It is important you name it that or it wont work. then this is the coding bit. Inside the local script put:
      game.ReplicatedFirst:RemoveDefaultLoadingScreen()
      local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
      PlayerGui:SetTopbarTransparency(0)
      local GUI = script.LoadingScreen:Clone()
      GUI.Parent = PlayerGui
      repeat wait(1) until game:IsLoaded()
      GUI.Frame:TweenPosition(UDim2.new(0,0,1,0),"InOut","Quad",0.5)
      wait(0.5)
      GUI:Destroy()

    • @dj.frankiewilde425
      @dj.frankiewilde425 4 ปีที่แล้ว

      Easy just go watch how to make a simulator part 2

    • @SIiyk
      @SIiyk 3 ปีที่แล้ว

      watch itsgamerm8's video

  • @raeinydays
    @raeinydays 4 ปีที่แล้ว +14

    dont mind me just setting a reminder for tomorrow 12:06

  • @EnzoMineBlox
    @EnzoMineBlox 4 ปีที่แล้ว +8

    Me: spends 1-2 hours doing this
    me when i realise it doesn't work: *bruh*

    • @ultimatewaybigx7685
      @ultimatewaybigx7685 4 ปีที่แล้ว

      it does work
      did you guys do a function or a repeat wait() until for the player.Character?

    • @EnzoMineBlox
      @EnzoMineBlox 4 ปีที่แล้ว

      @@amberhayward6778 same

    • @Corvus_the_wyvern
      @Corvus_the_wyvern 4 ปีที่แล้ว

      I think I know why I almost messed it up but I saw it and fixed it 13:00 he put a parentheses in it and I didn't so maybe try that or tutorials

    • @LuDawwg
      @LuDawwg 4 ปีที่แล้ว

      ikr it dont work

    • @Emiruuu
      @Emiruuu 4 ปีที่แล้ว

      same

  • @onxhao
    @onxhao 4 ปีที่แล้ว +6

    Me: spends an hour thinking you would teach us how to make a gamepass
    Him: it works!
    Me: this is bullshit

    • @Lee_Hehe
      @Lee_Hehe 3 ปีที่แล้ว

      YEA SAME

  • @doomvor2093
    @doomvor2093 3 ปีที่แล้ว +9

    Update: Idk why but it dosen't work anymore :/
    Update: it now works :/
    For people like me who just want the script NOTE: I used a gun, so the variables might not make much sense. here you go.
    ~script one (for the local script)~
    local MarketplaceSerivice = game:GetService("MarketplaceService")
    local Mainframe = script.Parent.MainFrame
    local VipGamepass = Mainframe.GamepassFrame.VipImage
    local OpenShop = Mainframe.Parent.OpenShop
    local player = game.Players.LocalPlayer
    local VipGamepassId = 12679583
    VipGamepass.MouseButton1Down:Connect(function()
    local Success, message = pcall(function()
    hasPass = MarketplaceSerivice:UserOwnsGamePassAsync(player.UserId, VipGamepassId)
    end)

    if hasPass then
    print("Player Already Has Gamepass")
    else
    MarketplaceSerivice:PromptGamePassPurchase(player, VipGamepassId)
    end
    end)
    OpenShop.MouseButton1Down:Connect (function()
    Mainframe.Visible = not Mainframe.Visible
    end)
    ~script two(server script service script)~
    local MarketplaceSerivice = game:GetService("MarketplaceService")
    local Players = game:GetService("Players")
    local VipGamepassId = 12679583
    game.Players.PlayerAdded:Connect(function(player)

    local Success, message = pcall(function()
    hasPass = MarketplaceSerivice:UserOwnsGamePassAsync(player.UserId, VipGamepassId)
    end)

    if hasPass then
    print("Player Has Gamepass")

    local Gun = game.ReplicatedStorage.Agun:Clone()
    Gun.Parent = player.Backpack
    end
    end)
    local function onPromptGamePassPurcahseFinised(player, purchasedPassId, purchaseSuccess)
    if purchaseSuccess == true and purchasedPassId == VipGamepassId then
    print(player.Name .. "purchased the gamepass!")

    local Gun = game.ReplicatedStorage.Agun:Clone()
    Gun.Parent = player.Backpack
    end
    end
    MarketplaceSerivice.PromptGamePassPurchaseFinished:Connect(onPromptGamePassPurcahseFinised)
    Yw!

    • @1hr399
      @1hr399 3 ปีที่แล้ว

      TYSM

    • @scorpion__8695
      @scorpion__8695 3 ปีที่แล้ว

      I love you god

    • @torenonion
      @torenonion 3 ปีที่แล้ว

      i just wanna correct my script ;-;

  • @transitia1869
    @transitia1869 3 ปีที่แล้ว +2

    Thank's Bro!You always help me out

  • @emregoral2549
    @emregoral2549 3 ปีที่แล้ว +3

    How would I make another section of the shop with another tab, like a gamepass shop and then a button inside the gamepass shop that takes you to a "Buy currency" section?

    • @VoltDevs
      @VoltDevs ปีที่แล้ว

      i dunno the script. But you can try putting another text button in the MainFrame and then make so that when pressed, another frame pops up over the 1st one with your currency section

  • @SecondaryGamingYT
    @SecondaryGamingYT ปีที่แล้ว

    The script worked, and I was like, "OMG!". Thanks so much TDK for your amazing tutorials!

  • @quinn_nz
    @quinn_nz 4 ปีที่แล้ว +46

    13:34 marking where I left

    • @imyellowteeth4691
      @imyellowteeth4691 4 ปีที่แล้ว +7

      you: just marking my time
      9 people: amazing!

    • @jeffreyquach6361
      @jeffreyquach6361 4 ปีที่แล้ว

      13 actually

    • @quinn_nz
      @quinn_nz 4 ปีที่แล้ว +1

      Jeffrey Quach lol how did I get 13 likes

    • @imyellowteeth4691
      @imyellowteeth4691 4 ปีที่แล้ว

      @@jeffreyquach6361 dude that comment was from a week ago he got more likes

    • @MarioMario-yb3iz
      @MarioMario-yb3iz 4 ปีที่แล้ว

      @@imyellowteeth4691 yes

  • @danatnight9658
    @danatnight9658 2 ปีที่แล้ว +1

    I need help, when I try to buy the gamepass it says, ''This item is not currently for sale. your account has not been charged''

  • @nayarei
    @nayarei 3 ปีที่แล้ว +11

    Me: Looks at comments *complaining*
    Me: *Clicks off video. Bye

  • @idontanymore903
    @idontanymore903 4 ปีที่แล้ว +2

    i know too I found out how to fix this script!! Just delete the OpenShop and make a new one outside of MainFrame and onto the MainGUI, remove the game pass from your inventory and be sure to uncheck the visible function (of mainframe)! If you didn't do the first bit, then the open shop menu will get removed as well as the mainframe, so you'll have no way of accessing the mainframe

  • @felicia9863
    @felicia9863 4 ปีที่แล้ว +5

    His roblox studio crashing
    His computer: 5 opened tabs

  • @zarcastically2147
    @zarcastically2147 3 ปีที่แล้ว +1

    yooo man thanks I changed the script to ServerStorage and it works well, the tool isnt affected or anything

  • @KingShorts741
    @KingShorts741 3 ปีที่แล้ว +3

    So, it works to an extent. When I join the game the shop comes up, and when I die it comes up, any way to fix this?

    • @talalalnaimy3497
      @talalalnaimy3497 3 ปีที่แล้ว

      Go to the screen gui and propertiest then turn of reset on spawn

  • @IdOnThAvEaUsE69
    @IdOnThAvEaUsE69 4 ปีที่แล้ว +3

    I found out how to fix this script!! Just delete the OpenShop and make a new one outside of MainFrame and onto the MainGUI, remove the game pass from your inventory and be sure to uncheck the visible function (of mainframe)! If you didn't do the first bit, then the open shop menu will get removed as well as the mainframe, so you'll have no way of accessing the mainframe

    • @buyrcsp2
      @buyrcsp2 2 ปีที่แล้ว +1

      MainGUI?

    • @IdOnThAvEaUsE69
      @IdOnThAvEaUsE69 2 ปีที่แล้ว +1

      @@buyrcsp2 Dayum, I made this one year ago...

  • @DawsonDale
    @DawsonDale 2 ปีที่แล้ว +1

    everything works when i buy the gampass in game, i get it but when i die it doesnt come back in my inventory, i have to rejoin to get them back. How do I fix this.

  • @madeline5467
    @madeline5467 3 ปีที่แล้ว +3

    im still trying to figure out how you got the script when you pressed the image

  • @Canjenrou
    @Canjenrou 3 ปีที่แล้ว +1

    Omg thank u so much I needed this

  • @infinitemango8840
    @infinitemango8840 3 ปีที่แล้ว +4

    Hello, I have a problem with line 13 at "hasPass" it is yellow and says: W003: Global 'hasPass' is only used in the enclosing function at line 11;consider changing it to local.
    What do I have to do?

    • @starxlajay1
      @starxlajay1 3 ปีที่แล้ว

      dont know

    • @nick.exe_6081
      @nick.exe_6081 3 ปีที่แล้ว

      Try copy/pasting this:
      *local hasPass = MarketPlaceService:UserOwnsGamepassAsync(player.UserID, swordGamepassID)*
      hope it works :)

    • @nick.exe_6081
      @nick.exe_6081 3 ปีที่แล้ว

      note: replace the line of code where
      "hasPass = MarketPlaceService:UserOwnsGamepassAsync(player.UserID, swordGamepassID)"
      is with the one i sent

    • @pbjgamer_YT
      @pbjgamer_YT 3 ปีที่แล้ว

      Same! ​ @Nick.exe_ , I'll try that! I hope it works!

    • @pbjgamer_YT
      @pbjgamer_YT 3 ปีที่แล้ว

      @@nick.exe_6081 It doesn't work! It has a blue underline under MarketPlaceService for some reason ¯\_(ツ)_/¯

  • @AbsolutelyAri1
    @AbsolutelyAri1 4 ปีที่แล้ว +4

    None of these have what I need :[
    I'm looking for one where if you walk up to the part it opens the shop.

  • @autduoplayz
    @autduoplayz 3 ปีที่แล้ว +5

    me: taking 1 week to do this
    also me: ITS NOT WORKING

  • @SpiritWillow
    @SpiritWillow 6 หลายเดือนก่อน +1

    When I tried the exact code it isn’t working, the shop won’t close it’s still open and the option of even getting the game pass is non existent, 40 minutes of my time wasted

  • @GamingEmpire844
    @GamingEmpire844 3 ปีที่แล้ว +3

    What if I want the game pass to double the persons speed instead of them getting a sword?

    • @Diablo_life_
      @Diablo_life_ 2 ปีที่แล้ว

      u can use CC btw

    • @janosszabo7171
      @janosszabo7171 2 ปีที่แล้ว

      @@Diablo_life_ ok and who asked

    • @Diablo_life_
      @Diablo_life_ 2 ปีที่แล้ว

      @@janosszabo7171 What? are you dumb?
      52-ph7 asked

  • @Laegsss
    @Laegsss 3 ปีที่แล้ว +7

    14:47 just remembering where i left off:)

  • @dodoseal
    @dodoseal 3 ปีที่แล้ว +1

    I did 2 items in the shop and before I added the second one, the original one worked. When I added a second item to the shop, they both didn't work. Help please!

  • @phisxc5036
    @phisxc5036 4 ปีที่แล้ว +5

    17:51 marking where I'm at for tommorrow

    • @tagberli
      @tagberli 4 ปีที่แล้ว

      you can make txt file for that dude

    • @phisxc5036
      @phisxc5036 4 ปีที่แล้ว

      NT Lord but it's easier cause I can click the blue

    • @peglord
      @peglord 4 ปีที่แล้ว

      why are there liikes here

    • @phisxc5036
      @phisxc5036 4 ปีที่แล้ว

      TNF Building Community idk

  • @6ixom115
    @6ixom115 2 ปีที่แล้ว +1

    i never knew how much scripts it took just to make one gamepass...

  • @blackbeest5738
    @blackbeest5738 4 ปีที่แล้ว +11

    18:01 when i have to go to sleep

  • @matkag5
    @matkag5 4 ปีที่แล้ว +2

    I have a problem I bought it and tested it ingame it worked but i cant get it back when I reset...
    and if i rejoined it didnt work

  • @Chervou
    @Chervou 3 ปีที่แล้ว +11

    The two scripts are fully functional, so thank you for that. But the only issue I have is that the scripts only work in studio, so when you try it in-game, the entire script does not work. I checked the developer console in-game and it did print the text "player already has the gamepass!" but that is the only thing that works properly. However, whenever I try to click the GUI in-game, the purchase screen does not appear. In addition, since my current roblox account already owns the gamepass, the sword is not in my inventory every time I join in-game. I followed everything in this video but as I mentioned, these two scripts only work in studio and not in-game. So please help me with this issue!

    • @Chervou
      @Chervou 3 ปีที่แล้ว +2

      scratch that. I found the issue. I joined the game with a different account and the buy button does work in-game and the player immediately receives the sword once they buy the gamepass. The issue I have now is that when I rejoin the game, the player does not receive the sword even though they already bought the gamepass.

    • @Jecxb
      @Jecxb 2 ปีที่แล้ว +3

      @@Chervou make a tool datastore service

    • @Jecxb
      @Jecxb 2 ปีที่แล้ว

      @MetallicDan look up how to make one

    • @ThatSemi-DecentBraincell
      @ThatSemi-DecentBraincell 2 ปีที่แล้ว

      @@Chervou yea I’m just finding out the same thing

    • @radioactivepenguin34official
      @radioactivepenguin34official ปีที่แล้ว

      @@ChervouDatastore.

  • @shepitowmater
    @shepitowmater 3 ปีที่แล้ว +2

    15:28 the iconic laugh

  • @yecko.m
    @yecko.m 3 ปีที่แล้ว +3

    wE DOING EVERYTHNG CORRECT BUT IT DOSENT WORK😐 WHAT THE HECK

  • @omarhijaz4803
    @omarhijaz4803 2 ปีที่แล้ว +2

    I know this is late but, when i did this code, and when i click on OpenShop for mine on the game, instead of opening up my menu, it makes me edit the text inside my textbox. I also have a problem where the MainFrame automatically opens up when the game launches, if you could help me fix these problems that would be great!

    • @doggy2840
      @doggy2840 2 ปีที่แล้ว

      you need make text button not textbox. Ant set Frame invisble in Frame setings then it will not open up automatically. :)

    • @omarhijaz4803
      @omarhijaz4803 2 ปีที่แล้ว

      @@doggy2840 just tried that and it worked, thanks a bunch!

    • @cubasijtsema5280
      @cubasijtsema5280 2 ปีที่แล้ว

      @@doggy2840 with me it doesnt even work at all when i click openshop it doesnt even pop out the gamepass menu you maybe know a fix?

  • @onelockonekill4052
    @onelockonekill4052 4 ปีที่แล้ว +3

    7:29

  • @GamingEmpire844
    @GamingEmpire844 3 ปีที่แล้ว +2

    When I started he server it said this:
    Third-Party item sales have been disabled for this place. Your account has not been charged.

    • @GamingEmpire844
      @GamingEmpire844 3 ปีที่แล้ว

      Okay I figured out how to fix that but the thing is it didn't give me a item.

    • @GamingEmpire844
      @GamingEmpire844 3 ปีที่แล้ว

      Ok nvm I fixed it

    • @flamesgames657
      @flamesgames657 3 ปีที่แล้ว

      @@GamingEmpire844 how do u fix it

  • @dj.frankiewilde425
    @dj.frankiewilde425 4 ปีที่แล้ว +3

    3:51

  • @SupersonicAviation
    @SupersonicAviation 2 ปีที่แล้ว

    I'm still having problems with the last part where you said you can add more, but I don't understand if I duplicate the HOLE code or a bit, can I have some help plz? But everything works otherwise, and its smooth. Pls respond asap I need 10 game passes literally.

  • @beamingalley4041
    @beamingalley4041 3 ปีที่แล้ว +5

    6:13 the moment of clickbait ads

  • @TheAsian55
    @TheAsian55 ปีที่แล้ว +1

    how do you make the purchase permanent so if players die the weapon will still be in there backpack?

  • @serfonicxplayz691
    @serfonicxplayz691 4 ปีที่แล้ว +3

    Ok this video is anoyying i spent the last 2 hours trying to make it work and it doesnt..

    • @Watt_1200
      @Watt_1200 3 ปีที่แล้ว

      Right ? Like if you wanna show us how to do it then do a COMPLETE tutorial not like 'you can just do it / edit it'

  • @Thedrewby
    @Thedrewby 3 ปีที่แล้ว +2

    Thanks! This is working well for me.

  • @patricksmith5031
    @patricksmith5031 4 ปีที่แล้ว +4

    @TheDevKing, when the player dies, they lose the item or effect. How do you keep this from happening?

    • @LM4R69
      @LM4R69 3 ปีที่แล้ว

      this is very late, but make your item a gamepass, not a developer product.

    • @LM4R69
      @LM4R69 2 ปีที่แล้ว

      @PringleManSquidward ?

  • @Gameboy-dp6zv
    @Gameboy-dp6zv 2 ปีที่แล้ว +1

    This helped me when i was making my game! thanks

  • @sandrafield632
    @sandrafield632 4 ปีที่แล้ว +5

    I DID EXACTLY EVERYTHING YOU DID BUT IT DIDNT WORK. EXPLAIN THAT TO ME

    • @mangblox
      @mangblox 2 ปีที่แล้ว +1

      relax, u probably misspelt something Jees

    • @GobsmackedIHATENI
      @GobsmackedIHATENI 2 ปีที่แล้ว

      @@mangblox ikr it happens to me but he or she needs to debug it.Its pretty simple to debug just do a print under each line

    • @GobsmackedIHATENI
      @GobsmackedIHATENI 2 ปีที่แล้ว

      I bet it will work when I do it tomorrow

    • @mangblox
      @mangblox 2 ปีที่แล้ว

      @@GobsmackedIHATENI same, i am making a sword fighting game and nothing worked, i was able to take a deep breath, and with some trial and error it worked! About to release beta tomorrow now!

    • @GobsmackedIHATENI
      @GobsmackedIHATENI 2 ปีที่แล้ว

      @@mangblox bro I'm making a sword fighting game too

  • @karlachr6907
    @karlachr6907 4 ปีที่แล้ว +1

    it will be more easy if you put in description the script

  • @kertklaus2894
    @kertklaus2894 4 ปีที่แล้ว +5

    I DID EVERYTHING AND I JUST WASTED SOO MUCH TIME AND I DIDNT GET IT DANGG

  • @astiqx
    @astiqx 3 ปีที่แล้ว +2

    can you make a tutorial to make an inventory to equip and unequip the trails please.

  • @youkai3067
    @youkai3067 4 ปีที่แล้ว +6

    This took me 1 hour ;')
    * NOT Worth it*
    that single script error T~T

    • @hojashh
      @hojashh 3 ปีที่แล้ว +1

      meee tooo(:

  • @rackedcheckers4875
    @rackedcheckers4875 4 ปีที่แล้ว +1

    What about things that arent gear, such as a voice chat enabler.

  • @Xelzyy
    @Xelzyy 3 ปีที่แล้ว +3

    I LEGIT SPENT 2 HOURS DOING THIS AND I FINALLY FINISH AND IT JUST DOSENT WORKKKK ;-;

  • @oscarfshy4981
    @oscarfshy4981 4 ปีที่แล้ว +1

    4:47 Ignore this please!

  • @kristijonaspilotas3426
    @kristijonaspilotas3426 3 ปีที่แล้ว +3

    Me: finally im done*i test the game*
    Me: ITS A SCAM AAAAAAAAAAAAAAAAAAAAAAAAAA

    • @animeweeb7056
      @animeweeb7056 3 ปีที่แล้ว

      Umm it’s not
      But make sure you follow like FOLLOW FOLLOW FOLLOW...
      Alright sorry for CAPS 🧢 IM CAPING LOL!?!

  • @Beij1ngCorn
    @Beij1ngCorn ปีที่แล้ว +2

    using global variables is deprecated. Try getting around this by getting the "hasPass" variable from either a table or a nil variable.

  • @IDPVBTCIFTC
    @IDPVBTCIFTC 3 ปีที่แล้ว +2

    he makes it really complicated like he says do this and your done

    • @kieranistommorow
      @kieranistommorow 3 ปีที่แล้ว

      Did you really think scripting was gonna be simple?

    • @IDPVBTCIFTC
      @IDPVBTCIFTC 3 ปีที่แล้ว

      @@kieranistommorow It is because I watched a different video about it.

    • @kieranistommorow
      @kieranistommorow 3 ปีที่แล้ว

      @@IDPVBTCIFTC scripting is not simple 💀💀

    • @IDPVBTCIFTC
      @IDPVBTCIFTC 3 ปีที่แล้ว +1

      @@kieranistommorow It isn't if there's a link to copy & paste the script. But if I were to script by myself then it would be hard.
      Edit: If they put the link there desc.

    • @kieranistommorow
      @kieranistommorow 3 ปีที่แล้ว

      @@IDPVBTCIFTC copy and pasting isn't scripting

  • @chillergerm5182
    @chillergerm5182 3 ปีที่แล้ว +1

    Saving my spot- 13:30

  • @darrts
    @darrts 3 ปีที่แล้ว +2

    So when I followed you it did worked, but when you reset or die the tool disappeared. Do you know how to fix that?

    • @fragileafro1433
      @fragileafro1433 3 ปีที่แล้ว

      Put it into the StarterGear too. basically copy the line where the BackPack ones are and replace "BackPack" with "StarterGear"

  • @putalilumphinittt
    @putalilumphinittt 3 ปีที่แล้ว +1

    U should do a vid on how to script where like u can make premium club like how bloxburg is! hard to explain but it would have perks!

  • @NeuraDev
    @NeuraDev 3 ปีที่แล้ว

    If you have multiple Gamepasses do you have a different script or put it in the main script

  • @EncryptedNico
    @EncryptedNico 3 ปีที่แล้ว +1

    Tysm for this tutorial it works! One question, is there a way to make it where after the player purchases the gamepaass or already owns it, the robux price text says something like "Owned"? If there is, can someone help?

  • @GT1.1
    @GT1.1 2 ปีที่แล้ว

    Hi Mr devking I would like to ask you a favor could you put your scripts in the description because is a hard work for somebody remembering and coping this so pls do keep up the hard work.

    • @metractx4783
      @metractx4783 2 ปีที่แล้ว

      No because you wouldn't learn anything and what would be the point. This video is about teaching you not because lazy person to just copy and paste a script and call the game yours

  • @g.geargy1736
    @g.geargy1736 4 ปีที่แล้ว +2

    GREAT VIDEO! Please don’t listen to the noobs in the description that are getting mad about not being able to copy your work. Keep doing you. Thank you.

  • @edvinlw
    @edvinlw 3 ปีที่แล้ว +1

    its not working to click the open shop button, what did i do wrong?

  • @pink_uck0fficial221
    @pink_uck0fficial221 3 ปีที่แล้ว +1

    7:08 Jonny Jonny
    Yes papa?
    WANNA FIGHT
    PICK UP THAT CAN
    me:lol but what ad is that?
    Mhmmm ima try finding it
    Also me:they deleted it F-
    and also ty for the tutorial it worked it is gonna be rly good for my game!

  • @doctor1arzie
    @doctor1arzie 2 ปีที่แล้ว

    i already the gui one but how to gamepasses nahh..so thx man!! it worked

  • @simplyadrian.
    @simplyadrian. 3 ปีที่แล้ว +1

    when he was like *uhh im just gonna buy it its like 2 million dollars and who cares* i laughed

  • @legendspro8779
    @legendspro8779 ปีที่แล้ว +1

    I smash the like button and my screen broke