
KeylessUniversal

-- Roblox LocalScript
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
-- 1. GUIの作成
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "SoiSpecialGui"
screenGui.Parent = PlayerGui
-- 2. 画像表示(ImageLabel)の設定
local imageLabel = Instance.new("ImageLabel")
imageLabel.Size = UDim2.new(0.5, 0, 0.5, 0) -- 画面の半分のサイズ
imageLabel.Position = UDim2.new(0.25, 0, 0.25, 0) -- 真ん中に配置
imageLabel.Image = "rbxassetid://14220389331" -- 指定の画像ID
imageLabel.Parent = screenGui
-- 3. 閉じるボタン(画像を消すためのボタン)
local closeButton = Instance.new("TextButton")
closeButton.Size = UDim2.new(0.1, 0, 0.05, 0)
closeButton.Position = UDim2.new(0.45, 0, 0.76, 0)
closeButton.Text = "閉じる"
closeButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.Parent = screenGui
-- 4. メッセージ表示用のテキスト
local messageLabel = Instance.new("TextLabel")
messageLabel.Size = UDim2.new(0.6, 0, 0.2, 0)
messageLabel.Position = UDim2.new(0.2, 0, 0.4, 0)
messageLabel.Text = "そいだよーwwwww"
messageLabel.TextSize = 50
messageLabel.TextColor3 = Color3.fromRGB(255, 255, 0) -- 黄色
messageLabel.BackgroundTransparency = 1 -- 背景透明
messageLabel.Visible = false -- 最初は隠しておく
messageLabel.Parent = screenGui
-- 5. ボタンを押した時の処理
closeButton.MouseButton1Click:Connect(function()
imageLabel.Visible = false -- 画像を消す
closeButton.Visible = false -- ボタンを消す
-- 文字を表示させる
messageLabel.Visible = true
-- 5秒後に全部消す(お好みで調整してください)
task.wait(5)
screenGui:Destroy()
end)No comments yet for this script.



