Rojhann10

Untitled

May 19th, 2025 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.29 KB | None | 0 0
  1. -- Create ScreenGui
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Name = "ArceusHubGui"
  4. screenGui.ResetOnSpawn = false
  5. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  6.  
  7. -- Main Frame
  8. local mainFrame = Instance.new("Frame")
  9. mainFrame.Name = "MainFrame"
  10. mainFrame.Size = UDim2.new(0, 700, 0, 400)
  11. mainFrame.Position = UDim2.new(0.5, -350, 0.5, -200)
  12. mainFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  13. mainFrame.Active = true
  14. mainFrame.Draggable = true
  15. mainFrame.Parent = screenGui
  16.  
  17. local uiCorner = Instance.new("UICorner", mainFrame)
  18. uiCorner.CornerRadius = UDim.new(0, 12)
  19.  
  20. -- Title
  21. local titleLabel = Instance.new("TextLabel", mainFrame)
  22. titleLabel.Text = "Arceus Hub"
  23. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  24. titleLabel.TextScaled = true
  25. titleLabel.Font = Enum.Font.GothamBold
  26. titleLabel.Size = UDim2.new(0, 300, 0, 40)
  27. titleLabel.Position = UDim2.new(0, 10, 0, 10)
  28. titleLabel.BackgroundTransparency = 1
  29. titleLabel.TextXAlignment = Enum.TextXAlignment.Left
  30.  
  31. -- "</>" Button
  32. local codeButton = Instance.new("TextButton", mainFrame)
  33. codeButton.Text = "</>"
  34. codeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  35. codeButton.TextScaled = true
  36. codeButton.Font = Enum.Font.GothamBold
  37. codeButton.Size = UDim2.new(0, 100, 0, 30)
  38. codeButton.Position = UDim2.new(0, 10, 0, 55)
  39. codeButton.BackgroundTransparency = 1
  40. codeButton.TextXAlignment = Enum.TextXAlignment.Left
  41.  
  42. -- Sidebar Labels
  43. local function createSidebarLabel(text, yPos)
  44. local label = Instance.new("TextLabel", mainFrame)
  45. label.Text = text
  46. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  47. label.TextScaled = true
  48. label.Font = Enum.Font.Gotham
  49. label.Size = UDim2.new(0, 100, 0, 25)
  50. label.Position = UDim2.new(0, 10, 0, yPos)
  51. label.BackgroundTransparency = 1
  52. label.TextXAlignment = Enum.TextXAlignment.Left
  53. end
  54.  
  55. createSidebarLabel("scripts", 90)
  56. createSidebarLabel("Dev", 120)
  57. createSidebarLabel("settings", 150)
  58.  
  59. -- Page Frame
  60. local codePage = Instance.new("Frame", mainFrame)
  61. codePage.Name = "CodePage"
  62. codePage.Size = UDim2.new(0, 550, 0, 330)
  63. codePage.Position = UDim2.new(0, 130, 0, 50)
  64. codePage.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  65. codePage.Visible = true -- Make it visible by default!
  66.  
  67. local pageCorner = Instance.new("UICorner", codePage)
  68. pageCorner.CornerRadius = UDim.new(0, 8)
  69.  
  70. -- ScrollingFrame for TextBox
  71. local scrollFrame = Instance.new("ScrollingFrame", codePage)
  72. scrollFrame.Size = UDim2.new(1, -20, 0, 230)
  73. scrollFrame.Position = UDim2.new(0, 10, 0, 10)
  74. scrollFrame.BackgroundTransparency = 1
  75. scrollFrame.ScrollBarThickness = 6
  76. scrollFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  77. scrollFrame.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
  78.  
  79. -- TextBox inside Scroll
  80. local codeBox = Instance.new("TextBox", scrollFrame)
  81. codeBox.Size = UDim2.new(1, -10, 0, 230)
  82. codeBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  83. codeBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  84. codeBox.TextXAlignment = Enum.TextXAlignment.Left
  85. codeBox.TextYAlignment = Enum.TextYAlignment.Top
  86. codeBox.Text = ""
  87. codeBox.ClearTextOnFocus = false
  88. codeBox.MultiLine = true
  89. codeBox.Font = Enum.Font.Code
  90. codeBox.TextWrapped = true
  91. codeBox.TextScaled = false
  92. codeBox.TextSize = 14
  93. codeBox.AutomaticSize = Enum.AutomaticSize.Y
  94.  
  95. -- Inject control
  96. local injected = false
  97.  
  98. -- Buttons
  99. local buttonNames = {"Execute", "Clear", "Inject"}
  100. local buttonWidth = 150
  101. local buttonHeight = 40
  102. local spacing = 20
  103.  
  104. for i, name in ipairs(buttonNames) do
  105. local button = Instance.new("TextButton")
  106. button.Name = name .. "Button"
  107. button.Text = name
  108. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  109. button.TextScaled = true
  110. button.Font = Enum.Font.GothamBold
  111. button.Size = UDim2.new(0, buttonWidth, 0, buttonHeight)
  112. button.Position = UDim2.new(0, ((i - 1) * (buttonWidth + spacing)) + 10, 0, 250)
  113. button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  114. button.Parent = codePage
  115.  
  116. local buttonCorner = Instance.new("UICorner", button)
  117. buttonCorner.CornerRadius = UDim.new(0, 8)
  118.  
  119. if name ~= "Inject" then
  120. button.AutoButtonColor = false
  121. button.TextTransparency = 0.5
  122. button.BackgroundTransparency = 0.4
  123. button.Active = false
  124. end
  125.  
  126. if name == "Inject" then
  127. button.MouseButton1Click:Connect(function()
  128. injected = true
  129. -- Enable Execute and Clear
  130. for _, other in ipairs(codePage:GetChildren()) do
  131. if other:IsA("TextButton") and (other.Name == "ExecuteButton" or other.Name == "ClearButton") then
  132. other.Active = true
  133. other.AutoButtonColor = true
  134. other.TextTransparency = 0
  135. other.BackgroundTransparency = 0
  136. end
  137. end
  138. end)
  139. end
  140.  
  141. if name == "Clear" then
  142. button.MouseButton1Click:Connect(function()
  143. if injected then
  144. codeBox.Text = ""
  145. end
  146. end)
  147. end
  148.  
  149. if name == "Execute" then
  150. button.MouseButton1Click:Connect(function()
  151. if injected then
  152. local code = codeBox.Text
  153. print("Executing: " .. code)
  154. local func, err = loadstring(code)
  155. if func then
  156. local success, runtimeErr = pcall(func)
  157. if not success then
  158. warn("Runtime error: " .. runtimeErr)
  159. end
  160. else
  161. warn("Compile error: " .. err)
  162. end
  163. end
  164. end)
  165. end
  166. end
  167.  
  168. -- Toggle the code page with </> button
  169. codeButton.MouseButton1Click:Connect(function()
  170. codePage.Visible = not codePage.Visible
  171. end)
Advertisement
Add Comment
Please, Sign In to add comment