local screenGui = script.Parent local button = screenGui:WaitForChild("TextButton") -- 開くボタン local frame = screenGui:WaitForChild("Frame") -- 開く対象GUI -- 最初は非表示にする(※プロパティで設定済みならこの行は不要) frame.Visible = ...
local player = game.Players.LocalPlayer local gui = script.Parent local toolName = "KeyTool" gui.Visible = false -- 初期状態:非表示 -- 装備中ツールの確認 local function updateGUIVisibility() local character = ...