How to make a part that opens a shop in roblox studio!

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.พ. 2025

ความคิดเห็น • 100

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

    local part = game.Workspace:WaitForChild("OpenShopPart")
    local player = game.Players.LocalPlayer
    local Character = player.Character
    local Debounce=false
    part.Touched:Connect(function(hit)
    if hit.Parent == Character and Debounce == false then
    script.Parent.ShopGui.Frame.Visible = true
    Debounce = true
    wait(2)
    Debounce= false
    end
    end)

    • @Riskyhaulers
      @Riskyhaulers 10 หลายเดือนก่อน +3

      bro is a legend

  • @MrPancakeMK
    @MrPancakeMK 3 หลายเดือนก่อน +2

    I searched for so long for a good Tutorial, thank you so much

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

    Thank you so much this worked so well and your tut was great! keep up the good work :D

  • @AminErdene-uk8ho
    @AminErdene-uk8ho ปีที่แล้ว +2

    You are so good scripter
    keep going man

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

    I just combinded this with one off my other scripts and it worked

  • @BeaRecords17
    @BeaRecords17 10 หลายเดือนก่อน +1

    Great video! Thanks

  • @ClassicPlayz_RBLX
    @ClassicPlayz_RBLX 6 หลายเดือนก่อน

    I have been searching on TH-cam for this tutorial

  • @matejadjoric07
    @matejadjoric07 หลายเดือนก่อน

    Can you make another video like this, but add to the script (or whatever it's called) that when a player stands on the part, the ScreenGui shop appears and a sound effect plays? Please 🙂

  • @glassifiedyt
    @glassifiedyt 10 หลายเดือนก่อน +2

    local part = game.Workspace.OpenShopPart
    local player = game.Players.LocalPlayer
    local Character = player.Character
    part.Touched:Connect(function(hit)
    if hit.Parent == Character then
    script.Parent.ShopGui.Frame.Visible = true
    end
    end)

  • @bestplayer_onearth
    @bestplayer_onearth 9 หลายเดือนก่อน +1

    Still Works Amazing Script Thanks :D

  • @Tyron-q8k
    @Tyron-q8k 3 หลายเดือนก่อน

    thank you so much for the tutorial

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

    if anyone is having problems with the openshopscript heres mine
    local part = game.Workspace.OpenShopPart
    local player = game.Players.LocalPlayer
    local character = player.Character
    part.Touched:Connect(function(hit)
    if hit.Parent == character then
    script.Parent.ShopGui.Frame.Visible = true
    end
    end)

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

      Well it doesn't work

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

      you might have not named all the parts properly@@bexsblocks

    • @coneylolz
      @coneylolz 9 หลายเดือนก่อน

      I did that already and mine isn’t working

  • @THEINSOLENCEOVERSEER_TIO
    @THEINSOLENCEOVERSEER_TIO 10 หลายเดือนก่อน +2

    Could you help me do it because it completely isn’t working and I’ve done everything right

  • @matejadjoric07
    @matejadjoric07 หลายเดือนก่อน

    THANKS BUDDDD

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

    I love you so much thanks

  • @greatdoggy8
    @greatdoggy8 9 หลายเดือนก่อน +1

    for some reason whenever I close the shop with the x button from the first script it only closes the button and not the frame...Why?

  • @X-SWAGS-bl4nd
    @X-SWAGS-bl4nd ปีที่แล้ว +2

    how to i add items in it so other people could buy them

  • @mfisc_official
    @mfisc_official 2 หลายเดือนก่อน

    nice bro

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

    ls help problem is: OpenShopPart is not a valid member of Workspace "Workspace" was red on output i have same name in script as in workspace

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

      Same im having the same issue

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

      try replace game.Workspace.OpenShopPart with game.Workspace:WaitForChild("OpenShopPart") instead

    • @muister325
      @muister325 11 หลายเดือนก่อน

      then your OpenShopPart isnt added to the workspace but within a folder or model, make sure the part is standing alone in the workspace

  • @squid5675
    @squid5675 7 หลายเดือนก่อน

    very helpful😃

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

    W

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

    Nioce

  • @NeverlessWonder
    @NeverlessWonder 9 หลายเดือนก่อน +1

    what are the eqals signs?

  • @umqualquerfande_gmod89
    @umqualquerfande_gmod89 6 หลายเดือนก่อน

    Quando eu toco na part só parece uma fez e so

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

    Cool thx

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

    BROO TYSM

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

    I did the exact same thing but it dosent work for me, any ideas ?

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

      here ' s my code :
      local part = game.Workspace.OpenShopPart
      local player = game.Players.LocalPlayer
      local Character = player.Character
      part.Touched:Connect(function(hit)
      if hit.Parent == Character then
      script.Parent.ShopGui.Frame.Visible = true
      end
      end)

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

      @@LetsGoPotato8 try replace game.Workspace.OpenShopPart with game.Workspace:WaitForChild("OpenShopPart") instead

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

      @@LetsGoPotato8 it is because you are saying If the part that hit the openpart is the character model. But what is actually touching the part can be the players leg or arm. So instead of typing: If hit.Parent == Character
      Do: If hit.Parent:FindFirstChild("Humanoid")

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

      @@hugge6267 ty !

  • @bread-play
    @bread-play 8 หลายเดือนก่อน

    Do you know how to make it so you can get items from it?

  • @BajaBlast-o5b
    @BajaBlast-o5b 8 หลายเดือนก่อน

    it doesnt work. pls help i named every part right i typed everything right but it still doesnt work. help.

  • @BloxyWayRoblox
    @BloxyWayRoblox 11 หลายเดือนก่อน

    um when i did the first script mine didnt close the frame but it closed the x button, how can i fix?

    • @hugge6267
      @hugge6267  11 หลายเดือนก่อน

      You have to put the exit button inside of the frame and then say in the script: script.Parent.Parent.Visible = false
      The exit button closes because you might be refering to the exit button instead of the frame. Hope this helps! :)

    • @BloxyWayRoblox
      @BloxyWayRoblox 11 หลายเดือนก่อน

      Oh ok thanks

  • @Scamuhz
    @Scamuhz 8 หลายเดือนก่อน

    When I try to test the part to see if the shop opens it nothing happens and I did everything correct..

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

    the frame don't disapear when i click the X

    • @Adi_17_864
      @Adi_17_864 หลายเดือนก่อน

      local closeButton = script.Parent -- Przycisk zamknięcia sklepu
      local shopFrame = closeButton.Parent -- Ramka sklepu
      closeButton.MouseButton1Click:Connect(function()
      shopFrame.Visible = false
      end)

  • @Trxpx.z
    @Trxpx.z 6 หลายเดือนก่อน

    the first localscript wont work pls help

  • @andrepalmito9802
    @andrepalmito9802 6 หลายเดือนก่อน

    thanks🤧🤧🤧🤧🤧🤧🤧😭😭😭😭😭

  • @Raw4Ll
    @Raw4Ll 8 หลายเดือนก่อน

    how do i add items in the shop??

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

    Error “OpenShopPart is not a valid member of workspace”

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

      You need the same name of the open part in workspace as the one in the script

  • @КирилоКаракшиэв
    @КирилоКаракшиэв ปีที่แล้ว

    OpenShopPart is not a valid member of Workspace "Workspace" - Client - OpenShop:1

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

      did you name the part "OpenShopPart"

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

    im having trouble with the exit button can you help me

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

      or send me the code

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

      script.parent.MouseButton1Click:connect(function()
      script.Parent.visible=false
      end) is my script

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

      @@Fidelgaming You need to make parent a capital P so: Parent

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

      "Connect" must have a capital C and "Visible" must also have a capital V

  • @Onixa
    @Onixa 11 หลายเดือนก่อน

    When i test join the game the shop is there when i load in.

    • @hugge6267
      @hugge6267  11 หลายเดือนก่อน

      You need to turn the visibility off before you test. Hope it helps!

  • @BajaBlast-o5b
    @BajaBlast-o5b 8 หลายเดือนก่อน

    Dude the exit button doesn’t work

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

    it doesnt work this is my script, O is my part name btw
    local part = game.Workspace.O
    local player = game.Players.LocalPlayer
    local Character = player.Character
    local Debounce = false
    part.Touched:Connect(function(hit)
    if hit.Parent == Character then
    script.Parent.ShopGui:WaitForChild("Frame")
    wait(0,2)
    Debounce = false
    end
    end)

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

      First thing is if you made it a local script. It cant be a normal script because then the script cant find the player. So it has to be a local script. The other this is that you should change if hit.Parent == character to if hit.Parent:FindFirstChild("Humanoid") Hope this helps!👍

    • @hugge6267
      @hugge6267  8 หลายเดือนก่อน

      I think its because in your wait(0,2) you cant have a comma, you need a dot. For example: wait(0.2)

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

    its opening for all players

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

      Make the script a local script

  • @The_Rocco_Recker
    @The_Rocco_Recker 6 หลายเดือนก่อน

    Bruh whenever I join the shop is open already pls help me

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

      @@The_Rocco_Recker go to the frame and then properties, then go to visibility and turn it off. Hope this helps!

    • @The_Rocco_Recker
      @The_Rocco_Recker 6 หลายเดือนก่อน

      @@hugge6267 thx but i alr did another tutorial

    • @The_Rocco_Recker
      @The_Rocco_Recker 6 หลายเดือนก่อน

      Can u make a video on how to make it where when u touch a part a code rewards gui opens and works?

    • @hugge6267
      @hugge6267  6 หลายเดือนก่อน

      @@The_Rocco_Recker im not home rn but thanks for the idea!

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

    does it work with a union??

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

    i did every step but mine doesnt close, any fixes?

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

      Make sure that you have put the local script inside of the exit button and that you haven't spelled anything wrong inside of the script.

  • @Username_hereeeee
    @Username_hereeeee หลายเดือนก่อน

    how do i add items bruh

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

    help me for the X button pls :(

  • @Bugsthebunny-1234
    @Bugsthebunny-1234 ปีที่แล้ว +1

    Frame is not a valid member of ScreenGui "Players.IchBin_IB.PlayerGui.ShopGui" the is the red on output

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

      Same

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

      Try to change script.Parent.ShopGui.Frame to: script.Parent.ShopGui:WatForChild("Frame")

  • @DADDAElefanten
    @DADDAElefanten 3 หลายเดือนก่อน

    it doesn't work

  • @tttnonomoon
    @tttnonomoon 8 หลายเดือนก่อน

    doesnt work

  • @Fireshark1107
    @Fireshark1107 11 หลายเดือนก่อน +5

    It isn’t working

    • @FlydedRetro
      @FlydedRetro 11 หลายเดือนก่อน +2

      Ye I tried as well, it doesn't seem to be working

    • @THEINSOLENCEOVERSEER_TIO
      @THEINSOLENCEOVERSEER_TIO 10 หลายเดือนก่อน +1

      Ik

    • @ImOsu--FF2
      @ImOsu--FF2 9 หลายเดือนก่อน

      it works

    • @ImOsu--FF2
      @ImOsu--FF2 9 หลายเดือนก่อน

      dead ah

    • @ImOsu--FF2
      @ImOsu--FF2 9 หลายเดือนก่อน

      u named something wrong or didnt debug some stuff u had to debug some things

  • @OceanDev1
    @OceanDev1 9 หลายเดือนก่อน

    Do you have discord

    • @hugge6267
      @hugge6267  9 หลายเดือนก่อน +1

      Yea

    • @OceanDev1
      @OceanDev1 9 หลายเดือนก่อน

      @@hugge6267 what is the servers code

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

    something to do with the shop open script isn't working for me, when i hit ShopOpenPart in game
    nothing happens

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

      Is the any errors in the output tab? If you don't know how to open output just go to: View > Output.
      If there isn't any errors then it has to be the IF statement. Check that you hav not spelled "Humanoid" wrong!
      Hope this helps!

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

      ​@@hugge6267 thanks, this helped loads, output said OpenShopPart wasn't a valid member of workspace, but I don't know why this is a problem because the name is the exact same as in the script

    • @r4ndom-here
      @r4ndom-here ปีที่แล้ว

      nope :(
      @@hugge6267