How to open a frame using a Click Detector (Roblox Studio)

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

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

  • @doadworks
    @doadworks 3 года назад +9

    Script:
    local Part =script.Parent
    local ClickDetector = Part.ClickDetector
    local opened = false
    ClickDetector.MouseClick:Connect(function(player)
    local PlayerGui = player:FindFirstChild("PlayerGui")
    local --any name here (a)-- = PlayerGui:FindFirstChild("--your gui name (b)--")

    if opened == true then

    opened = false
    --(a)--.Frame.Visible = false

    else

    opened = true
    --(a)--.Frame.Visible = true
    end
    end)

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

    dude this is a lifesaver tyyyyyy

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

    how can i do what when the part is the tool item?

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

    ty u helped me on my game cause i needed an thing when i click on a part of the cashier thing a frame appears where u can select what u want.......TYY(im ass at english)

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

    ty

  • @gameit9460
    @gameit9460 3 года назад +1

    Can you help me whit my game, I need some one that can script