📜  打开 gui 脚本 - Lua 代码示例

📅  最后修改于: 2022-03-11 14:54:54.288000             🧑  作者: Mango

代码示例1
local Button = script.Parent
local GUI = game.StarterGui.FRAME -- Put Frame Location Here

Button.MouseButton1Click:Connect(function()
    print("Running Show Shop Function")
    if     GUI.Visible == false then 
        GUI.Visible = true
    elseif GUI.Visible == true then
        GUI.Visible = false
    end    
end)