Flying Carpet Gamepass - Roblox Scripting Tutorial

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 294

  • @DaoFlex
    @DaoFlex Год назад +76

    local gamepassId = 108360708
    local mps
    game : GetService( "MarketplaceService ")
    game. Players. PlayerAdded : Connect ( function( player)
    player.CharacterAdded : Connect( function ()
    if mps:UserOwnsGame PassAsync(player. UserId, gamepassId) then
    Script.FlyingCarpet : Clone( ). Parent = player. Backpack
    end
    end)
    end)

  • @lowkeymegz
    @lowkeymegz Год назад +6

    Works! Thanks, used 3 of your tutorials so far! Worked great I messed up a couple things but after me fixing my mistakes worked just. fine!

    • @Classic-YT
      @Classic-YT Год назад

      i tried to use it and it did not work for me
      do you know the code? i might have doen smth wrong

    • @GlitchedAlex
      @GlitchedAlex Год назад

      i will justput my gamepass id in

    • @GlitchedAlex
      @GlitchedAlex Год назад

      @@Classic-YT or tell me what i could of done wrong

  • @fifu2
    @fifu2 7 дней назад

    TYSM MAN I WAS LOOKING FOR THIS VIDEO FOR HOURS BUT EVERY VIDEO IS 15MIN LONG TY MAN

  • @MinexFN
    @MinexFN 28 дней назад +3

    does NOT work in 2024

  • @audreythedottylizard6670
    @audreythedottylizard6670 Год назад +5

    bro this is so good ima shout you out in my vid when i finish editing tysm

  • @tw6353
    @tw6353 Год назад +23

    Hey man script works great with my gamepass and shop GUI I set up, however the carpet model itself which I got from you is bugged it seems. Whenever you equip it to ride, it looks like you are holding it, not sitting riding it. hopefully its an easy quick fix but let me know what you think!
    Edit: my only thought was maybe I have to animate it myself and add the animation to your model once its in my game... if thats even possible lol

    • @brandonmalan17
      @brandonmalan17 Год назад +2

      same issue for me

    • @TJ-BS
      @TJ-BS Год назад +2

      yeah same but idk if i do anything wrong but i never get it in my inventory maybe i did something wrong idk

    • @mrnoobyt3328
      @mrnoobyt3328 Год назад +2

      @M9_XD Yeah, that's what I said and did but according to the game my r6 character just kinda sinks into the ground, do u know how to fix it, if not it's not a problem, I'm just wondering.

    • @mrnoobyt3328
      @mrnoobyt3328 Год назад +1

      @M9_XD Ok thanks anyways

    • @it.watdan
      @it.watdan Год назад +1

      Spoof the animation it should work

  • @focusrblx
    @focusrblx Год назад +3

    thanks i have used 3 of your tutorials and they have all helped alot, thanks

    • @g4m3z24
      @g4m3z24 Год назад +2

      damn really?

  • @Yooo_eierkoek
    @Yooo_eierkoek Год назад +8

    YOUR TO UNDERRATED TYSM

  • @kalemaskey6254
    @kalemaskey6254 Год назад +8

    For some reason when I go to put it in the game it is not there

  • @GeoSystemYT
    @GeoSystemYT Год назад +5

    Thank You For The Helpful Tutorial :)

  • @Alastor77
    @Alastor77 Год назад +2

    I connected it to the shop gui, but when i buy it nothing happens. And when i join from the owner account i get the carpet normally

  • @RealAMERICA3636
    @RealAMERICA3636 3 месяца назад

    tysm dude it helped so much
    u deserve a sub

  • @user-lu5ys2ky4j
    @user-lu5ys2ky4j 4 месяца назад +2

    It doesnt work at all. I did everything exactly as he did and it doesnt work. Ive been working on it for 2 days

  • @squertle3349
    @squertle3349 Год назад +4

    To the people that are late like me and have the issue that it makes you hold out the carpet, to fix it go to "settings" and "avatar" and R6 mode

    • @xcarzon
      @xcarzon 10 месяцев назад

      Thanks :)

  • @TJ-BS
    @TJ-BS Год назад +2

    man idk i copied everything but when i join i dont get the carpet in my inventory and i cheched it once again if i did some mistakes but i just dont get it.
    have any ideas then pls tell me cauze im working on a game 24/7 so i need this to work

  • @acasualperson99
    @acasualperson99 5 месяцев назад

    Good i love it and it works i subbed and liked.

  • @epicburgerpilotptfs1343
    @epicburgerpilotptfs1343 Год назад +2

    Thanks, but newer version?

  • @MyClasmatesThinkingAmWeird
    @MyClasmatesThinkingAmWeird Год назад +2

    Thanks! This one works! Last time i tried one of your tutorials but they did not work but this one was perfect!

  • @beauonthego5612
    @beauonthego5612 Год назад

    tysm i really needed help btw ur good at scripting

  • @Blyther
    @Blyther Год назад

    well done well done keep it up keep it up a very good boii(my sis wrote this)

  • @Ex_Clips
    @Ex_Clips Год назад +1

    When ever I go to add pass it doesn’t load what do I do?

  • @lolito718
    @lolito718 Год назад +5

    Hey pls how to Tycoon game

  • @ReddDottin
    @ReddDottin Год назад

    TYSM man, This Help me a LOT so ty!

  • @clapper_77
    @clapper_77 Месяц назад

    what about the screen gui that makes it so when u click it it shows u to buy it?

  • @BXNQQ
    @BXNQQ 8 месяцев назад +2

    For some reason it gives everyone the carpet who joins the game instead of just the people who own the gamepass. Is there any fix?

  • @ItzAyaan2169
    @ItzAyaan2169 Год назад +1

    hey can you make a video where you can fix the 'rendering is paused for debugging' please i don't know how to fix it

  • @ClipzistheGoat
    @ClipzistheGoat Год назад +3

    Another W tutorial

  • @dubblecodder9965
    @dubblecodder9965 Год назад +1

    bro it works so good thank you

  • @HesTrading
    @HesTrading Год назад +3

    @Squidingz how to I make it so the player doesnt have to leave the game to recieve the carpet, because you have to rejoin to get it after u buy it ingame. Thanks!

    • @Lakon_Two
      @Lakon_Two 5 месяцев назад

      thats just a roblox issue with passes, you have to rejoin after buying it

    • @Mohas191
      @Mohas191 3 дня назад

      @@Lakon_Two wrong, you have to use the PromptGamepassFinished event on the marketplaceservice and lookup its wasPurchased value

  • @TJ-BS
    @TJ-BS Год назад

    idk if i do anything wrong but i never get it in my inventory maybe i did something wrong idk

  • @sanayakarim9127
    @sanayakarim9127 27 дней назад

    In the model part when you go to the toolbox and stuff I could not find their carpet so I used a different one

  • @PixelfyIsCool
    @PixelfyIsCool Месяц назад

    whenever i use it it sends me flying with the rainbow carpet trail and i can't stop it

  • @moeyy1224
    @moeyy1224 Год назад +1

    doesnt work for me

  • @automaticdreams9156
    @automaticdreams9156 Год назад +2

    Whenever I finish the script, it doesn’t go in my inventory and it stays on the floor… What should I do?

    • @zvc3x
      @zvc3x 2 месяца назад

      Anchor it in the air

  • @TeMruder
    @TeMruder Год назад +1

    for some reason it isnt working?
    EVERY TIME I TRY TO USE SOMEONES SCRIPT FROM A VIDEO IT DOESNT WORK

    • @Squidingz
      @Squidingz  Год назад +1

      Then you’re doing it wrong :)

  • @lukesgamingchannel6435
    @lukesgamingchannel6435 Год назад

    Hey Squidingz Im having a little problom seeing my mouse in my game anyway you can make a vid on that

  • @Nick_edits07846
    @Nick_edits07846 7 месяцев назад

    bro can u do a video on the script for give gamepass to any player in the game by an admin

  • @SubPlaysss
    @SubPlaysss Год назад

    Thnx bro love from UK

  • @maryannindonilla9670
    @maryannindonilla9670 9 месяцев назад

    I subcribed! Can you make Gui carpet

  • @Rocketnight1
    @Rocketnight1 10 месяцев назад

    tysm bro this helps soo much

  • @CatCweenChar
    @CatCweenChar Месяц назад +3

    It didn't work

  • @PJ-Siblings
    @PJ-Siblings 9 дней назад

    Can you please copy script so i can just copy and paste and then ill just change the id please

  • @MagicTriangleGames
    @MagicTriangleGames Год назад

    Thank you, this worked perfectly!

  • @jakubkartal
    @jakubkartal Год назад

    Hello thanks a lot for the amazing help your provide, i am having a problem tho my character does not sit on the carpet but holds it infront of himself. any idea how to fix that

  • @BenedictBen-kc4tl
    @BenedictBen-kc4tl Месяц назад

    it works! ima subscribe!

  • @IamBananAlex
    @IamBananAlex Год назад +1

    hey i've got a problem, when i equip the carpet it falls from the sky and destroy itself

    • @mellwishes
      @mellwishes 7 месяцев назад

      Hi! Maybe select the item and anchor it so it wont fall and destroy :)

  • @ciana4
    @ciana4 Год назад

    Hi, I'm trying to use this script for a gui to pop up as a gamepass character selection, I seem to be struggling because I do own the gamepass on my Alt account and it won't show up, can you tell me if there's something wrong with what I did? I did the same stuff you did and changed script.NAME:Clone().parent = player.Backpack to script.NAME:Clone().parent = player.PlayerGui. Do I have to redo the script or follow a different video? I am a bit experienced with coding so I thought this would work if I replaced the variable.

  • @xsamatury
    @xsamatury Год назад +1

    i put speed coil gravity coil and flying carpet but when i buy speed coil gamepass i get both coils and when i buy gravity coil gamepass that happens too the same thing when i buy flying carpet gamepass. Why?

  • @FR4ANTIC
    @FR4ANTIC 2 месяца назад

    okay but like how can I make it so the players have to buy the gamepass to get it

  • @professorbing
    @professorbing Год назад +1

    it didn't work for me :(

  • @Ahmedplay1006
    @Ahmedplay1006 4 месяца назад

    WHY AFTER I MADE THE GAMEPASS I DONT FIND IT IN TOOL BOX MY MODELS

  • @n1vxy673
    @n1vxy673 Год назад

    why when i buy the gamepass im not getting my flying carpet i even deleted from my inventory

  • @Richa_jgg
    @Richa_jgg 7 месяцев назад

    The carpet is not coming in my roblox but coming in studio what should I do

  • @Nachtigall.831
    @Nachtigall.831 Год назад +1

    This isn't working! HELP!

  • @samrairick4182
    @samrairick4182 9 месяцев назад

    How do u turn on the thing that told you that it enabled the flying Carpet

  • @vince_man
    @vince_man 10 месяцев назад

    nothing worked i didnt even have the item and how are players gonna buy it if its not it the game

  • @mepicalachotayelculo
    @mepicalachotayelculo Год назад

    does anyone know about a magic carpet that doesnt have bright colors? i want my game to be safe to everyone and i know those exist but i cant find any

  • @case3oh123
    @case3oh123 Год назад

    it doesnt work for me i did nothing wrong i did the exact same as you but it doesnt work

  • @Lard_Vr
    @Lard_Vr 5 месяцев назад

    i put the same script in as you and it didnt work

  • @Catuscorbahighschool-hh3cb
    @Catuscorbahighschool-hh3cb Год назад

    squidingz pls reply quick in "local gamepassId = am i supposed to put your id or the id of my own gamepass

    • @PenaltyCuber
      @PenaltyCuber Год назад +1

      Ik I'm late but put the id of ur gamepass if you put the ID of his it will sell his gamepass and not yours

  • @rip_kingRobloxYT
    @rip_kingRobloxYT 8 месяцев назад

    You are the best creator

  • @Lakon_Two
    @Lakon_Two 5 месяцев назад

    i have evrything in there and studio doesnt say any errors but im not getting the carpet when i join. please help

  • @imnotdud
    @imnotdud Год назад

    Bro how do you make people to pay for it

  • @Cambol1
    @Cambol1 Год назад

    It always spawns in the ground and i dont know what to do??!?!?

  • @RBLXHAXLORD69
    @RBLXHAXLORD69 Год назад +2

    it didnt work?

  • @Lakon_Two
    @Lakon_Two 5 месяцев назад

    does anyone know how to actually get it in your inventory

  • @SparxeyScriping
    @SparxeyScriping Год назад +4

    how do i fly the carpet?

  • @SubPlaysss
    @SubPlaysss Год назад

    bro am having a problem.
    when i play from the roblox studio the carpet is in my inventory and it works but when i go to roblox click play and go into the game i can't see it so please reply and help me Thnx.

    • @mj_kinetic4046
      @mj_kinetic4046 Год назад +1

      Are you making this game in a group?

    • @SubPlaysss
      @SubPlaysss Год назад

      @@mj_kinetic4046 no but i can if u want too ...

    • @B0nny001
      @B0nny001 6 месяцев назад

      I have the same problem, have you find a solution yet?

  • @zeboosta
    @zeboosta Год назад +1

    Thanks man!

    • @zeboosta
      @zeboosta Год назад

      For this video, it rlly helped :D

  • @qanitsyed9996
    @qanitsyed9996 Год назад

    when i put the carpet on the base its invisible pls fixx

  • @noahross4961
    @noahross4961 7 месяцев назад

    how do i add the GUI so you can buy it in game

  • @mariomash9538
    @mariomash9538 Год назад

    Tysm now I can continue making my obby

  • @stella8280
    @stella8280 Год назад +1

    Can we have a script link?

  • @robinruddock4638
    @robinruddock4638 7 дней назад

    oof i hoped that it would come with a Gui :/

  • @Robloxian_Girl1st
    @Robloxian_Girl1st 9 месяцев назад

    does it work if its a badge?

  • @CiaranJoyce-gk1ew
    @CiaranJoyce-gk1ew 7 месяцев назад +1

    I am the 1000 liker

  • @sarfrajarun
    @sarfrajarun 7 месяцев назад

    my does not go on this page😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭

  • @Sasel_sneises
    @Sasel_sneises Месяц назад

    animation dont work??

  • @user-qx3eq6de4m
    @user-qx3eq6de4m 8 месяцев назад

    How i fix its say Failed to load animation?

  • @4realmarko_yt905
    @4realmarko_yt905 Год назад

    Hi it works but I can’t sit on it any answer ? 😊

  • @user-lc7xx5pc9u
    @user-lc7xx5pc9u 5 месяцев назад

    To my flying carpet model. It juice te aptar cher inmvetory. :|

  • @beysssie
    @beysssie Год назад

    is it permanently in the game? so that when u rejoin it still remains in ur inventory? :)

    • @beysssie
      @beysssie Год назад

      idk if u explained it didn’t watch the vid yet imma add this when im finished with my game

    • @Squidingz
      @Squidingz  Год назад +3

      @@beysssie yes as it gives it to the player based on if they own the gamepass

    • @beysssie
      @beysssie Год назад

      @@Squidingz okay tysm!!

  • @chahcreed22
    @chahcreed22 Год назад

    thank very much i own your speed coil gravity coil fusion coil and flying carpet your script work so thx you

  • @AgEnT-ys9qq
    @AgEnT-ys9qq Год назад

    how to make sure the carpet is not lost after reset

  • @MaxxMaxx-hd2jv
    @MaxxMaxx-hd2jv Год назад

    My thing says rendering is paused for debugging

  • @user-yc3ok4oi6e
    @user-yc3ok4oi6e 7 месяцев назад

    How do I make the other have to buy it?

  • @Fuqza
    @Fuqza Год назад

    it works but how do i delete it out of my game again?

  • @Jd_Icon
    @Jd_Icon Год назад

    It won't let me configure the carpet

  • @Sub2Player1
    @Sub2Player1 2 месяца назад

    all player is getting the carpet if u do this

  • @rostopi-scripting1304
    @rostopi-scripting1304 Год назад

    I put the price as 50 robux before you did on the video because I had it on pause. I typed 50 robux then I unpaused the video and you did!
    Edit: It isn't working even though I did everything you did.

  • @XqhZol1
    @XqhZol1 7 месяцев назад

    OMG THANK YOU SO MUCHH!!!!

  • @Nachtigall.831
    @Nachtigall.831 Год назад

    Hey, can you pin a copy of the script in the comments so that people can copy and paste it into the script?

  • @ReneSh4d0w
    @ReneSh4d0w Месяц назад

    not working

  • @bxp8021
    @bxp8021 9 месяцев назад

    I thought he will teach us how to make a flying carpet but like make it cost robux

  • @Koalaplayzzroblox
    @Koalaplayzzroblox 2 месяца назад

    Wont this give you the robux not us

  • @Mikg-ks9xg
    @Mikg-ks9xg Год назад +1

    Tried everything in the video might not walk

    • @winniememes283
      @winniememes283 11 месяцев назад

      I am really sorry, It might not ever walk again...

  • @BlaugranaFan631
    @BlaugranaFan631 Год назад

    Thanks i was creating a game and it is hard

  • @maddchoice4121
    @maddchoice4121 Год назад

    When someone owns the game pass it just doesn't give it to them. I've revised and redone the code about 1,000 times and cant find any problems even when pausing the video to compare can someone please help me.

    • @Jigger-ge5zn
      @Jigger-ge5zn 10 месяцев назад

      You need to add datastore

    • @Jigger-ge5zn
      @Jigger-ge5zn 10 месяцев назад

      Make two number values one and zero and signal the value to change if it is bought then save the values with datastore. Then script it to clone and parent it to the players backpack if the value is purchased

    • @Lakon_Two
      @Lakon_Two 5 месяцев назад

      @@Jigger-ge5zn idk anything about coding so can you please tell me where and how to add it to this?
      local gamepassId = 17040811203
      local mps = game: GetService("MarketplaceService")
      game.Players.PlayerAdded: Connect(function(player)
      player.CharacterAdded: Connect(function()
      if mps: UserOwnsGamePassAsync(player.UserId, gamepassId) then
      script.FlyingCarpet: Clone().Parent = player. Backpack|
      end
      end)
      end)

    • @zenitsu3271
      @zenitsu3271 4 месяца назад

      @@Jigger-ge5zn hey bro im a bit late but can you help me out with the script thx:)

    • @Jigger-ge5zn
      @Jigger-ge5zn 4 месяца назад

      @@zenitsu3271 are you running into the same problem as the other guy? If so I can look at and write a script to bypass this problem sometime today

  • @Anime_gamer01
    @Anime_gamer01 2 месяца назад

    then open that function
    oh wow very useful HOW THE HELL DO I OPEN IT

  • @Flare_knChannel
    @Flare_knChannel 8 месяцев назад

    can someone give me the script bec i write it but didnt work