How can i show the backpack core gui only when the player press a text button?

Hi a scripter, im making an fps game, but i don’t now how to enable the backpack core gui only when the player press a text button.
Anyone can help me?

local Button = -- Path to your button

Button.MouseButton1Click:Connect(function()
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.