Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScrollingFrame.Parent = ScreenGui
- ScrollingFrame.Size = UDim2.new(0, 400, 0, 250) -- GUIの横幅を元の大きさの2倍に設定
- ScrollingFrame.Position = UDim2.new(0.5, -200, 0.5, -100) -- GUIを中央に配置
- ScrollingFrame.BackgroundColor3 = Color3.new(0, 0, 0) -- GUIの色を黒に設定
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 500)
- ScrollingFrame.Active = false -- ScrollingFrameは移動できないように設定
- -- スクロールバーを表示
- ScrollingFrame.ScrollBarThickness = 6
- -- ボタンを追加(2つだけ)
- for i = 1, 2 do
- local btn = Instance.new("TextButton")
- btn.Name = "Button" .. i
- btn.Size = UDim2.new(0, 200, 0, 50)
- btn.Position = UDim2.new(0, 0, 0, (i-1)*60 + 20) -- ボタンの位置を少し下に移動
- btn.TextColor3 = Color3.new(1, 0, 0) -- ボタンの文字色を赤に設定
- -- ボタンの角を丸くする
- local uiCorner = Instance.new("UICorner")
- uiCorner.CornerRadius = UDim.new(0, 20) -- 角の半径を設定
- uiCorner.Parent = btn
- if i == 1 then
- btn.Text = "Nameless Admin" -- ボタン1の名前を"Nameless Admin"に設定
- btn.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet("https://raw.githubusercontent.com/FilteringEnabled/NamelessAdmin/main/Source"))()
- end)
- else
- btn.Text = "Infinite Yield" -- ボタン2の名前を"Infinite Yield"に設定
- btn.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
- end)
- end
- btn.Parent = ScrollingFrame
- end
- -- 新しいボタンGUIを追加
- local newBtn = Instance.new("TextButton")
- newBtn.Name = "Cat Hub GUI"
- newBtn.Size = UDim2.new(0, 60, 0, 60) -- 正方形に設定し、元の大きさの4分の1にする
- newBtn.Position = UDim2.new(0, 10, 0, 10) -- GUIを左上に配置
- newBtn.TextColor3 = Color3.new(1, 0, 0) -- ボタンの文字色を赤に設定
- newBtn.BackgroundColor3 = Color3.new(0, 0, 0) -- ボタンの背景色を黒に設定
- newBtn.Text = "Cat Hub"
- newBtn.Parent = ScreenGui -- スクロールGUIではなくScreenGuiに直接追加
- -- Cat Hub GUIが移動可能であることを確認するためのプロパティ
- newBtn.Active = true
- newBtn.Draggable = true
- -- 新しいGUIを作成
- local NewGui = Instance.new("Frame")
- -- プロパティを設定
- NewGui.Name = "NewGui"
- NewGui.Parent = ScreenGui -- ScreenGuiに直接追加
- NewGui.Size = UDim2.new(0, 400, 0, 55) -- GUIのサイズを設定
- NewGui.Position = UDim2.new(0.5, -200, 0.05, 10) -- GUIの位置を少し下に移動
- NewGui.BackgroundColor3 = Color3.fromRGB(0,0,0) -- GUIの色を黒に設定
- -- 新しい赤く光るGUIを作成
- local RedGui = Instance.new("Frame")
- -- プロパティを設定
- RedGui.Name = "RedGui"
- RedGui.Parent = ScreenGui -- ScreenGuiに直接追加
- RedGui.Size = UDim2.new(0, 400, 0, 10) -- GUIのサイズを設定
- RedGui.Position = UDim2.new(0.5, -200, 0.1, 40) -- GUIの位置をNewGuiとScrollingFrameの間に配置
- RedGui.BackgroundColor3 = Color3.fromRGB(255,0,0) -- GUIの色を赤に設定
- -- テキストGUIを作成
- local TextGui = Instance.new("TextLabel")
- -- プロパティを設定
- TextGui.Name = "バージョンテキスト"
- TextGui.Parent = ScrollingFrame -- ScrollingFrame に追加
- TextGui.Size = UDim2.new(0, 100, 0, 45) -- GUIのサイズを設定
- TextGui.Position = UDim2.new(1, -110, 0, 10) -- GUIの位置をスクロールGUIの右上に配置
- TextGui.BackgroundColor3 = Color3.new(0, 0, 0) -- GUIの色を黒に設定
- TextGui.BackgroundTransparency = 1 -- 背景を透明に設定
- TextGui.TextColor3 = Color3.new(1, 0, 0) -- テキストの色を赤に設定
- TextGui.TextSize = 20 -- テキストのサイズを20に設定
- TextGui.Text = "V3" -- テキストを "V2.1" に設定
- -- 新しいボタンGUIを追加
- local homeBtn = Instance.new("TextButton")
- -- プロパティを設定
- homeBtn.Name = "Home"
- homeBtn.Size = UDim2.new(0, 60, 0, 31) -- 高さを31に設定
- homeBtn.Position = UDim2.new(0, 10, 1, -45) -- NewGuiの左下に配置
- homeBtn.TextColor3 = Color3.new(1, 0, 0) -- ボタンの文字色を赤に設定
- homeBtn.BackgroundColor3 = Color3.fromRGB(128,128,128) -- ボタンの背景色をグレーに設定
- homeBtn.TextSize = 12 -- テキストのサイズを13に設定
- homeBtn.Text = "Home"
- homeBtn.Parent = NewGui -- NewGuiに直接追加
- -- Home GUIが移動不可能であることを確認するためのプロパティ
- homeBtn.Active = false
- -- ボタンの角を丸くする
- local uiCornerHomeBtn = Instance.new("UICorner")
- uiCornerHomeBtn.CornerRadius = UDim.new(0, 20) -- 角の半径を設定
- uiCornerHomeBtn.Parent = homeBtn
- -- Cat Hub GUIボタンが押されたときの動作を設定
- newBtn.MouseButton1Click:Connect(function()
- -- ScrollingFrame、NewGui、RedGui、homeBtnの表示状態を切り替える
- ScrollingFrame.Visible = not ScrollingFrame.Visible
- NewGui.Visible = not NewGui.Visible
- RedGui.Visible = not RedGui.Visible
- homeBtn.Visible = not homeBtn.Visible -- homeBtnも表示状態が切り替わるように追加します。
- end)
Add Comment
Please, Sign In to add comment