tomoneko

cathub test

Oct 11th, 2023 (edited)
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local ScrollingFrame = Instance.new("ScrollingFrame")
  3.  
  4. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  5. ScrollingFrame.Parent = ScreenGui
  6. ScrollingFrame.Size = UDim2.new(0, 400, 0, 250) -- GUIの横幅を元の大きさの2倍に設定
  7. ScrollingFrame.Position = UDim2.new(0.5, -200, 0.5, -100) -- GUIを中央に配置
  8. ScrollingFrame.BackgroundColor3 = Color3.new(0, 0, 0) -- GUIの色を黒に設定
  9. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 500)
  10. ScrollingFrame.Active = false -- ScrollingFrameは移動できないように設定
  11.  
  12. -- スクロールバーを表示
  13. ScrollingFrame.ScrollBarThickness = 6
  14.  
  15. -- ボタンを追加(2つだけ)
  16. for i = 1, 2 do
  17. local btn = Instance.new("TextButton")
  18. btn.Name = "Button" .. i
  19. btn.Size = UDim2.new(0, 200, 0, 50)
  20. btn.Position = UDim2.new(0, 0, 0, (i-1)*60 + 20) -- ボタンの位置を少し下に移動
  21. btn.TextColor3 = Color3.new(1, 0, 0) -- ボタンの文字色を赤に設定
  22.  
  23. -- ボタンの角を丸くする
  24. local uiCorner = Instance.new("UICorner")
  25. uiCorner.CornerRadius = UDim.new(0, 20) -- 角の半径を設定
  26. uiCorner.Parent = btn
  27.  
  28. if i == 1 then
  29. btn.Text = "Nameless Admin" -- ボタン1の名前を"Nameless Admin"に設定
  30. btn.MouseButton1Click:Connect(function()
  31. loadstring(game:HttpGet("https://raw.githubusercontent.com/FilteringEnabled/NamelessAdmin/main/Source"))()
  32. end)
  33. else
  34. btn.Text = "Infinite Yield" -- ボタン2の名前を"Infinite Yield"に設定
  35. btn.MouseButton1Click:Connect(function()
  36. loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
  37. end)
  38. end
  39. btn.Parent = ScrollingFrame
  40. end
  41.  
  42. -- 新しいボタンGUIを追加
  43. local newBtn = Instance.new("TextButton")
  44. newBtn.Name = "Cat Hub GUI"
  45. newBtn.Size = UDim2.new(0, 60, 0, 60) -- 正方形に設定し、元の大きさの4分の1にする
  46. newBtn.Position = UDim2.new(0, 10, 0, 10) -- GUIを左上に配置
  47. newBtn.TextColor3 = Color3.new(1, 0, 0) -- ボタンの文字色を赤に設定
  48. newBtn.BackgroundColor3 = Color3.new(0, 0, 0) -- ボタンの背景色を黒に設定
  49. newBtn.Text = "Cat Hub"
  50. newBtn.Parent = ScreenGui -- スクロールGUIではなくScreenGuiに直接追加
  51.  
  52. -- Cat Hub GUIが移動可能であることを確認するためのプロパティ
  53. newBtn.Active = true
  54. newBtn.Draggable = true
  55.  
  56. -- 新しいGUIを作成
  57. local NewGui = Instance.new("Frame")
  58.  
  59. -- プロパティを設定
  60. NewGui.Name = "NewGui"
  61. NewGui.Parent = ScreenGui -- ScreenGuiに直接追加
  62. NewGui.Size = UDim2.new(0, 400, 0, 55) -- GUIのサイズを設定
  63. NewGui.Position = UDim2.new(0.5, -200, 0.05, 10) -- GUIの位置を少し下に移動
  64. NewGui.BackgroundColor3 = Color3.fromRGB(0,0,0) -- GUIの色を黒に設定
  65.  
  66. -- 新しい赤く光るGUIを作成
  67. local RedGui = Instance.new("Frame")
  68.  
  69. -- プロパティを設定
  70. RedGui.Name = "RedGui"
  71. RedGui.Parent = ScreenGui -- ScreenGuiに直接追加
  72. RedGui.Size = UDim2.new(0, 400, 0, 10) -- GUIのサイズを設定
  73. RedGui.Position = UDim2.new(0.5, -200, 0.1, 40) -- GUIの位置をNewGuiとScrollingFrameの間に配置
  74. RedGui.BackgroundColor3 = Color3.fromRGB(255,0,0) -- GUIの色を赤に設定
  75.  
  76. -- テキストGUIを作成
  77. local TextGui = Instance.new("TextLabel")
  78.  
  79. -- プロパティを設定
  80. TextGui.Name = "バージョンテキスト"
  81. TextGui.Parent = ScrollingFrame -- ScrollingFrame に追加
  82. TextGui.Size = UDim2.new(0, 100, 0, 45) -- GUIのサイズを設定
  83. TextGui.Position = UDim2.new(1, -110, 0, 10) -- GUIの位置をスクロールGUIの右上に配置
  84. TextGui.BackgroundColor3 = Color3.new(0, 0, 0) -- GUIの色を黒に設定
  85. TextGui.BackgroundTransparency = 1 -- 背景を透明に設定
  86. TextGui.TextColor3 = Color3.new(1, 0, 0) -- テキストの色を赤に設定
  87. TextGui.TextSize = 20 -- テキストのサイズを20に設定
  88. TextGui.Text = "V3" -- テキストを "V2.1" に設定
  89.  
  90. -- 新しいボタンGUIを追加
  91. local homeBtn = Instance.new("TextButton")
  92.  
  93. -- プロパティを設定
  94. homeBtn.Name = "Home"
  95. homeBtn.Size = UDim2.new(0, 60, 0, 31) -- 高さを31に設定
  96. homeBtn.Position = UDim2.new(0, 10, 1, -45) -- NewGuiの左下に配置
  97. homeBtn.TextColor3 = Color3.new(1, 0, 0) -- ボタンの文字色を赤に設定
  98. homeBtn.BackgroundColor3 = Color3.fromRGB(128,128,128) -- ボタンの背景色をグレーに設定
  99. homeBtn.TextSize = 12 -- テキストのサイズを13に設定
  100. homeBtn.Text = "Home"
  101. homeBtn.Parent = NewGui -- NewGuiに直接追加
  102.  
  103. -- Home GUIが移動不可能であることを確認するためのプロパティ
  104. homeBtn.Active = false
  105.  
  106. -- ボタンの角を丸くする
  107. local uiCornerHomeBtn = Instance.new("UICorner")
  108. uiCornerHomeBtn.CornerRadius = UDim.new(0, 20) -- 角の半径を設定
  109. uiCornerHomeBtn.Parent = homeBtn
  110.  
  111. -- Cat Hub GUIボタンが押されたときの動作を設定
  112. newBtn.MouseButton1Click:Connect(function()
  113. -- ScrollingFrame、NewGui、RedGui、homeBtnの表示状態を切り替える
  114. ScrollingFrame.Visible = not ScrollingFrame.Visible
  115. NewGui.Visible = not NewGui.Visible
  116. RedGui.Visible = not RedGui.Visible
  117. homeBtn.Visible = not homeBtn.Visible -- homeBtnも表示状態が切り替わるように追加します。
  118. end)
  119.  
Add Comment
Please, Sign In to add comment