Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "ArceusHubGui"
- screenGui.ResetOnSpawn = false
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Main Frame
- local mainFrame = Instance.new("Frame")
- mainFrame.Name = "MainFrame"
- mainFrame.Size = UDim2.new(0, 700, 0, 400)
- mainFrame.Position = UDim2.new(0.5, -350, 0.5, -200)
- mainFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- mainFrame.Active = true
- mainFrame.Draggable = true
- mainFrame.Parent = screenGui
- local uiCorner = Instance.new("UICorner", mainFrame)
- uiCorner.CornerRadius = UDim.new(0, 12)
- -- Title
- local titleLabel = Instance.new("TextLabel", mainFrame)
- titleLabel.Text = "Arceus Hub"
- titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- titleLabel.TextScaled = true
- titleLabel.Font = Enum.Font.GothamBold
- titleLabel.Size = UDim2.new(0, 300, 0, 40)
- titleLabel.Position = UDim2.new(0, 10, 0, 10)
- titleLabel.BackgroundTransparency = 1
- titleLabel.TextXAlignment = Enum.TextXAlignment.Left
- -- "</>" Button
- local codeButton = Instance.new("TextButton", mainFrame)
- codeButton.Text = "</>"
- codeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- codeButton.TextScaled = true
- codeButton.Font = Enum.Font.GothamBold
- codeButton.Size = UDim2.new(0, 100, 0, 30)
- codeButton.Position = UDim2.new(0, 10, 0, 55)
- codeButton.BackgroundTransparency = 1
- codeButton.TextXAlignment = Enum.TextXAlignment.Left
- -- Sidebar Labels
- local function createSidebarLabel(text, yPos)
- local label = Instance.new("TextLabel", mainFrame)
- label.Text = text
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.TextScaled = true
- label.Font = Enum.Font.Gotham
- label.Size = UDim2.new(0, 100, 0, 25)
- label.Position = UDim2.new(0, 10, 0, yPos)
- label.BackgroundTransparency = 1
- label.TextXAlignment = Enum.TextXAlignment.Left
- end
- createSidebarLabel("scripts", 90)
- createSidebarLabel("Dev", 120)
- createSidebarLabel("settings", 150)
- -- Page Frame
- local codePage = Instance.new("Frame", mainFrame)
- codePage.Name = "CodePage"
- codePage.Size = UDim2.new(0, 550, 0, 330)
- codePage.Position = UDim2.new(0, 130, 0, 50)
- codePage.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- codePage.Visible = true -- Make it visible by default!
- local pageCorner = Instance.new("UICorner", codePage)
- pageCorner.CornerRadius = UDim.new(0, 8)
- -- ScrollingFrame for TextBox
- local scrollFrame = Instance.new("ScrollingFrame", codePage)
- scrollFrame.Size = UDim2.new(1, -20, 0, 230)
- scrollFrame.Position = UDim2.new(0, 10, 0, 10)
- scrollFrame.BackgroundTransparency = 1
- scrollFrame.ScrollBarThickness = 6
- scrollFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
- scrollFrame.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
- -- TextBox inside Scroll
- local codeBox = Instance.new("TextBox", scrollFrame)
- codeBox.Size = UDim2.new(1, -10, 0, 230)
- codeBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- codeBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- codeBox.TextXAlignment = Enum.TextXAlignment.Left
- codeBox.TextYAlignment = Enum.TextYAlignment.Top
- codeBox.Text = ""
- codeBox.ClearTextOnFocus = false
- codeBox.MultiLine = true
- codeBox.Font = Enum.Font.Code
- codeBox.TextWrapped = true
- codeBox.TextScaled = false
- codeBox.TextSize = 14
- codeBox.AutomaticSize = Enum.AutomaticSize.Y
- -- Inject control
- local injected = false
- -- Buttons
- local buttonNames = {"Execute", "Clear", "Inject"}
- local buttonWidth = 150
- local buttonHeight = 40
- local spacing = 20
- for i, name in ipairs(buttonNames) do
- local button = Instance.new("TextButton")
- button.Name = name .. "Button"
- button.Text = name
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.TextScaled = true
- button.Font = Enum.Font.GothamBold
- button.Size = UDim2.new(0, buttonWidth, 0, buttonHeight)
- button.Position = UDim2.new(0, ((i - 1) * (buttonWidth + spacing)) + 10, 0, 250)
- button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- button.Parent = codePage
- local buttonCorner = Instance.new("UICorner", button)
- buttonCorner.CornerRadius = UDim.new(0, 8)
- if name ~= "Inject" then
- button.AutoButtonColor = false
- button.TextTransparency = 0.5
- button.BackgroundTransparency = 0.4
- button.Active = false
- end
- if name == "Inject" then
- button.MouseButton1Click:Connect(function()
- injected = true
- -- Enable Execute and Clear
- for _, other in ipairs(codePage:GetChildren()) do
- if other:IsA("TextButton") and (other.Name == "ExecuteButton" or other.Name == "ClearButton") then
- other.Active = true
- other.AutoButtonColor = true
- other.TextTransparency = 0
- other.BackgroundTransparency = 0
- end
- end
- end)
- end
- if name == "Clear" then
- button.MouseButton1Click:Connect(function()
- if injected then
- codeBox.Text = ""
- end
- end)
- end
- if name == "Execute" then
- button.MouseButton1Click:Connect(function()
- if injected then
- local code = codeBox.Text
- print("Executing: " .. code)
- local func, err = loadstring(code)
- if func then
- local success, runtimeErr = pcall(func)
- if not success then
- warn("Runtime error: " .. runtimeErr)
- end
- else
- warn("Compile error: " .. err)
- end
- end
- end)
- end
- end
- -- Toggle the code page with </> button
- codeButton.MouseButton1Click:Connect(function()
- codePage.Visible = not codePage.Visible
- end)
Advertisement
Add Comment
Please, Sign In to add comment