local screenGui = script.Parent local button = screenGui:WaitForChild("TextButton") -- 開くボタン local frame = screenGui:WaitForChild("Frame") -- 開く対象GUI -- 最初は非表示にする(※プロパティで設定済みならこの行は不要) frame.Visible = ...
In this example, the `toggleGui` function is called when the "0" key is pressed. This function creates the GUI if it is not already present and toggles its visibility. Note that the `guiEnabled` ...