Robloxが公式に公開している Roblox Lua Style Guideの内容を分かりやすく解説するシリーズの4回目です。 初心者が混乱しやすいポイントなので整理します。 game:GetService("Players") → Robloxが最初から用意している「サービス」を取得する。Players, ReplicatedStorage, Workspace ...
local screenGui = script.Parent local button = screenGui:WaitForChild("TextButton") -- 開くボタン local frame = screenGui:WaitForChild("Frame") -- 開く対象GUI -- 最初は非表示にする(※プロパティで設定済みならこの行は不要) frame.Visible = ...