local Players = game:GetService("Players") local RS = game:GetService("RunService") local WS = game:GetService("Workspace") local UIS = game:GetService("UserInputService") local L = game:GetService("Lighting") local TS = game:GetService("TweenService") local player = Players.LocalPlayer if not player then repeat task.wait() until Players.LocalPlayer player = Players.LocalPlayer end local cam = WS.CurrentCamera local char, root, hum = nil, nil, nil local function setupChar(c) char = c task.spawn(function() repeat task.wait() until c:FindFirstChild("HumanoidRootPart") root = c.HumanoidRootPart hum = c:FindFirstChild("Humanoid") end) end player.CharacterAdded:Connect(setupChar) if player.Character then setupChar(player.Character) end -- ========================================== -- 1. PIXELATED OFFICE UI SETUP (Resizable) -- ========================================== local gui = Instance.new("ScreenGui") gui.Name = "PieHubTerminal" gui.ResetOnSpawn = false pcall(function() gui.Parent = game:GetService("CoreGui") end) if not gui.Parent then gui.Parent = player:WaitForChild("PlayerGui") end local clickSound = Instance.new("Sound") clickSound.SoundId = "rbxassetid://6042053626" clickSound.Volume = 0.3 clickSound.Parent = gui local function pc() clickSound:Play() end local main = Instance.new("Frame") main.Size = UDim2.new(0, 600, 0, 400) main.Position = UDim2.new(0.5, -300, 0.5, -200) main.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Black bg for intro main.BorderSizePixel = 2 main.BorderColor3 = Color3.new(0, 0, 0) main.Visible = true main.Parent = gui local uiScale = Instance.new("UIScale") uiScale.Scale = 1 uiScale.Parent = main -- Blue Header Bar local header = Instance.new("Frame", main) header.Size = UDim2.new(1, 0, 0, 30) header.BackgroundColor3 = Color3.fromRGB(0, 0, 128) header.BorderSizePixel = 0 header.Visible = false header.ZIndex = 2 local title = Instance.new("TextLabel", header) title.Size = UDim2.new(1, -20, 1, 0) title.Position = UDim2.new(0, 10, 0, 0) title.BackgroundTransparency = 1 title.Text = "PIEHUB CORP // TERMINAL OS" title.TextColor3 = Color3.new(1, 1, 1) title.Font = Enum.Font.Legacy title.TextSize = 18 title.TextXAlignment = Enum.TextXAlignment.Left title.ZIndex = 3 local side = Instance.new("Frame", main) side.Size = UDim2.new(0, 140, 1, -30) side.Position = UDim2.new(0, 0, 0, 30) side.BackgroundColor3 = Color3.fromRGB(160, 160, 160) side.BorderSizePixel = 2 side.Visible = false side.ZIndex = 2 local content = Instance.new("Frame", main) content.Size = UDim2.new(1, -140, 1, -30) content.Position = UDim2.new(0, 140, 0, 30) content.BackgroundColor3 = Color3.fromRGB(220, 220, 220) content.BorderSizePixel = 2 content.Visible = false content.ZIndex = 2 -- Drag Menu local drag, ds, sp header.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then drag = true ds = i.Position sp = main.Position end end) UIS.InputChanged:Connect(function(i) if drag and i.UserInputType == Enum.UserInputType.MouseMovement then local d = i.Position - ds main.Position = UDim2.new(0, math.clamp(sp.X.Offset + d.X, 0, cam.ViewportSize.X - main.AbsoluteSize.X), 0, math.clamp(sp.Y.Offset + d.Y, 0, cam.ViewportSize.Y - main.AbsoluteSize.Y)) end end) header.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then drag = false end end) -- Resize Handle local resizeBtn = Instance.new("TextButton", main) resizeBtn.Size = UDim2.new(0, 20, 0, 20) resizeBtn.Position = UDim2.new(1, -20, 1, -20) resizeBtn.BackgroundColor3 = Color3.fromRGB(100, 100, 100) resizeBtn.BorderColor3 = Color3.new(0, 0, 0) resizeBtn.Text = "" resizeBtn.ZIndex = 10 resizeBtn.Visible = false local resizing, rsStart, rsScaleStart = false, nil, nil resizeBtn.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then resizing = true rsStart = i.Position rsScaleStart = uiScale.Scale end end) UIS.InputChanged:Connect(function(i) if resizing and i.UserInputType == Enum.UserInputType.MouseMovement then local d = i.Position - rsStart local newScale = math.clamp(rsScaleStart + (d.X + d.Y) / 400, 0.5, 2.5) uiScale.Scale = newScale end end) UIS.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then resizing = false end end) -- ========================================== -- 2. BLOG POPUP UI -- ========================================== local blogFrame = Instance.new("Frame", content) blogFrame.Size = UDim2.new(1, 0, 1, 0) blogFrame.BackgroundColor3 = Color3.fromRGB(192, 192, 192) blogFrame.BorderSizePixel = 2 blogFrame.BorderColor3 = Color3.new(0, 0, 0) blogFrame.ZIndex = 20 blogFrame.Visible = false local blogTitle = Instance.new("TextLabel", blogFrame) blogTitle.Size = UDim2.new(1, 0, 0, 40) blogTitle.BackgroundColor3 = Color3.fromRGB(0, 0, 128) blogTitle.Text = "WELCOME TO PIEHUB" blogTitle.TextColor3 = Color3.new(1, 1, 1) blogTitle.Font = Enum.Font.Legacy blogTitle.TextSize = 24 blogTitle.ZIndex = 21 local blogText = Instance.new("TextLabel", blogFrame) blogText.Size = UDim2.new(1, -20, 1, -100) blogText.Position = UDim2.new(0, 10, 0, 50) blogText.BackgroundTransparency = 1 blogText.Text = "Welcome to PieHub Terminal OS.\n\nUse the tabs on the left to navigate the menu.\n\nThe Code Editor tab allows you to write and run your own Lua scripts. Click 'Create New' to open the editor.\n\nPress OK to continue." blogText.TextColor3 = Color3.new(0, 0, 0) blogText.Font = Enum.Font.Legacy blogText.TextSize = 16 blogText.TextWrapped = true blogText.TextXAlignment = Enum.TextXAlignment.Left blogText.TextYAlignment = Enum.TextYAlignment.Top blogText.ZIndex = 21 local okBtn = Instance.new("TextButton", blogFrame) okBtn.Size = UDim2.new(0, 100, 0, 40) okBtn.Position = UDim2.new(0.5, -50, 1, -50) okBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 0) okBtn.TextColor3 = Color3.new(1, 1, 1) okBtn.Font = Enum.Font.Legacy okBtn.TextSize = 18 okBtn.Text = "OK" okBtn.BorderSizePixel = 2 okBtn.ZIndex = 21 -- ========================================== -- 3. INTRO SEQUENCE -- ========================================== local termBox = Instance.new("TextLabel") termBox.Size = UDim2.new(1, -20, 1, -20) termBox.Position = UDim2.new(0, 10, 0, 10) termBox.BackgroundColor3 = Color3.new(0, 0, 0) termBox.TextColor3 = Color3.fromRGB(0, 255, 0) termBox.Font = Enum.Font.Legacy termBox.TextSize = 16 termBox.TextWrapped = true termBox.TextXAlignment = Enum.TextXAlignment.Left termBox.TextYAlignment = Enum.TextYAlignment.Top termBox.Text = "" termBox.ZIndex = 5 termBox.Parent = main local st = Instance.new("Sound") st.SoundId = "rbxassetid://9066148724" st.Volume = 0.4 st.Parent = gui local fakeCode = "[SYS] INITIALIZING OS...\n[SYS] MOUNTING DRIVES... OK\n[SYS] LOADING PIXEL UI MODULES... OK\n[SYS] COMPILING DISTORTION FX... OK\n[SYS] ACCESS GRANTED. WELCOME AGENT." -- Red Selection Indicator local selectionIndicator = Instance.new("Frame", side) selectionIndicator.Size = UDim2.new(0, 5, 0, 30) selectionIndicator.BackgroundColor3 = Color3.fromRGB(255, 0, 0) selectionIndicator.BorderSizePixel = 0 selectionIndicator.ZIndex = 5 local pages = {} local sideBtns = {} local function createTab(n, i) local b = Instance.new("TextButton", side) b.Size = UDim2.new(1, -10, 0, 30) b.Position = UDim2.new(0, 5, 0, 5 + ((i-1)*35)) b.BackgroundColor3 = Color3.fromRGB(192, 192, 192) b.TextColor3 = Color3.new(0, 0, 0) b.Font = Enum.Font.Legacy b.TextSize = 14 b.Text = " " .. n b.AutoButtonColor = false b.BorderSizePixel = 1 b.TextXAlignment = Enum.TextXAlignment.Left b.ZIndex = 6 table.insert(sideBtns, b) local hoverBar = Instance.new("Frame", b) hoverBar.Size = UDim2.new(0, 0, 1, 0) hoverBar.Position = UDim2.new(0, 0, 0, 0) hoverBar.BackgroundColor3 = Color3.fromRGB(100, 0, 0) hoverBar.BorderSizePixel = 0 hoverBar.ZIndex = 5 b.MouseEnter:Connect(function() TS:Create(hoverBar, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(1, 0, 1, 0)}):Play() end) b.MouseLeave:Connect(function() TS:Create(hoverBar, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 1, 0)}):Play() end) local pg = Instance.new("ScrollingFrame", content) pg.Size = UDim2.new(1, -10, 1, -10) pg.Position = UDim2.new(0, 5, 0, 5) pg.BackgroundTransparency = 1 pg.ScrollBarThickness = 4 pg.Visible = false pg.ZIndex = 6 Instance.new("UIListLayout", pg).Padding = UDim.new(0, 6) b.MouseButton1Click:Connect(function() pc() for _, p in pairs(pages) do p.Visible = false end pg.Visible = true TS:Create(selectionIndicator, TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Position = b.Position}):Play() end) table.insert(pages, pg) if i == 1 then selectionIndicator.Position = b.Position end return pg end local function createBtn(pg, txt, cb) local b = Instance.new("TextButton", pg) b.Size = UDim2.new(1, 0, 0, 30) b.BackgroundColor3 = Color3.fromRGB(192, 192, 192) b.TextColor3 = Color3.new(0, 0, 0) b.Font = Enum.Font.Legacy b.TextSize = 14 b.Text = txt b.AutoButtonColor = true b.BorderSizePixel = 1 b.TextXAlignment = Enum.TextXAlignment.Left b.ZIndex = 7 b.MouseButton1Click:Connect(function() pc() if cb then cb() end end) return b end local function createSwitch(page, text, cb) local c = Instance.new("Frame", page) c.Size = UDim2.new(1, 0, 0, 30) c.BackgroundColor3 = Color3.fromRGB(192, 192, 192) c.BorderSizePixel = 1 c.ZIndex = 7 local l = Instance.new("TextLabel", c) l.Size = UDim2.new(1, -60, 1, 0) l.Position = UDim2.new(0, 5, 0, 0) l.BackgroundTransparency = 1 l.TextColor3 = Color3.new(0, 0, 0) l.Font = Enum.Font.Legacy l.TextSize = 14 l.Text = text l.TextXAlignment = Enum.TextXAlignment.Left l.ZIndex = 7 local t = Instance.new("TextButton", c) t.Size = UDim2.new(0, 40, 0, 20) t.Position = UDim2.new(1, -45, 0.5, -10) t.BackgroundColor3 = Color3.fromRGB(255, 0, 0) t.TextColor3 = Color3.new(1, 1, 1) t.Font = Enum.Font.Legacy t.TextSize = 12 t.Text = "OFF" t.BorderSizePixel = 1 t.ZIndex = 7 local s = false t.MouseButton1Click:Connect(function() s = not s pc() if s then t.BackgroundColor3 = Color3.fromRGB(0, 255, 0) t.Text = "ON" else t.BackgroundColor3 = Color3.fromRGB(255, 0, 0) t.Text = "OFF" end if cb then cb(s) end end) end local function createInput(pg, ph, cb) local tb = Instance.new("TextBox", pg) tb.Size = UDim2.new(1, 0, 0, 30) tb.BackgroundColor3 = Color3.fromRGB(255, 255, 255) tb.TextColor3 = Color3.new(0, 0, 0) tb.Font = Enum.Font.Legacy tb.TextSize = 14 tb.Text = "" tb.PlaceholderText = ph tb.ClearTextOnFocus = false tb.TextXAlignment = Enum.TextXAlignment.Left tb.BorderSizePixel = 1 tb.ZIndex = 7 tb.FocusLost:Connect(function(e) if e then pc() cb(tb.Text) end end) return tb end -- Build Tabs local pPlayer = createTab("Player", 1) local pVis = createTab("Visuals", 2) local pTele = createTab("Teleport", 3) local pCode = createTab("Code Editor", 4) -- Variables local fly, noclip, infJump, esp, fullbright = false, false, false, false, false local fL, nL1, nL2, eL, bL, sL = nil, nil, nil, nil, nil, nil local targetSpeed = 100 local pIdx = 1 -- ========================================== -- 4. PLAYER COMMANDS -- ========================================== createSwitch(pPlayer, "Fly", function(s) fly = s if fly and root then local bv = Instance.new("BodyVelocity") bv.Name = "Fly" bv.MaxForce = Vector3.new(1e9, 1e9, 1e9) bv.Parent = root fL = RS.RenderStepped:Connect(function() if not fly or not root then return end local d = Vector3.new() if UIS:IsKeyDown(Enum.KeyCode.W) then d = d + cam.CFrame.LookVector end if UIS:IsKeyDown(Enum.KeyCode.S) then d = d - cam.CFrame.LookVector end if UIS:IsKeyDown(Enum.KeyCode.A) then d = d - cam.CFrame.RightVector end if UIS:IsKeyDown(Enum.KeyCode.D) then d = d + cam.CFrame.RightVector end bv.Velocity = d * 60 end) else if fL then fL:Disconnect() fL = nil end if root and root:FindFirstChild("Fly") then root.Fly:Destroy() end end end) createSwitch(pPlayer, "Noclip", function(s) noclip = s if noclip then local function disableCollisions() if char then for _, pt in pairs(char:GetDescendants()) do if pt:IsA("BasePart") and pt.CanCollide then pt.CanCollide = false end end end end nL1 = RS.Stepped:Connect(disableCollisions) nL2 = RS.Heartbeat:Connect(disableCollisions) else if nL1 then nL1:Disconnect() nL1 = nil end if nL2 then nL2:Disconnect() nL2 = nil end if char then for _, pt in pairs(char:GetDescendants()) do if pt:IsA("BasePart") and pt.Name ~= "HumanoidRootPart" then pt.CanCollide = true end end end end end) createSwitch(pPlayer, "Infinite Jump", function(s) infJump = s end) UIS.JumpRequest:Connect(function() if infJump and hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end end) createInput(pPlayer, "Speed Value (100)", function(val) targetSpeed = tonumber(val) or 100 end) createSwitch(pPlayer, "Speed Hack", function(s) if s then if sL then sL:Disconnect() end sL = RS.Heartbeat:Connect(function() if hum then hum.WalkSpeed = targetSpeed end end) else if sL then sL:Disconnect() sL = nil end if hum then hum.WalkSpeed = 16 end end end) createInput(pPlayer, "FOV (70)", function(val) cam.FieldOfView = tonumber(val) or 70 end) createBtn(pPlayer, "Reset Character", function() if char then char:BreakJoints() end end) -- ========================================== -- 5. VISUALS -- ========================================== createSwitch(pVis, "Player ESP", function(s) esp = s if esp then eL = task.spawn(function() while esp do for _, pl in ipairs(Players:GetPlayers()) do if pl ~= player and pl.Character and pl.Character:FindFirstChild("HumanoidRootPart") then local h = pl.Character:FindFirstChild("ESPHL") if not h then h = Instance.new("Highlight") h.Name = "ESPHL" h.FillColor = Color3.fromRGB(0, 0, 255) h.Parent = pl.Character end end end task.wait(2) end end) else for _, pl in ipairs(Players:GetPlayers()) do if pl.Character and pl.Character:FindFirstChild("ESPHL") then pl.Character.ESPHL:Destroy() end end end end) createSwitch(pVis, "Fullbright", function(s) fullbright = s if fullbright then bL = task.spawn(function() while fullbright do L.ClockTime = 12 L.Brightness = 2 L.GlobalShadows = false task.wait(1) end end) else L.Brightness = 1 L.GlobalShadows = true end end) createBtn(pVis, "Night Mode", function() L.ClockTime = 0 end) createBtn(pVis, "Day Mode", function() L.ClockTime = 12 end) -- ========================================== -- 6. TELEPORTS -- ========================================== local aF = Instance.new("Frame", pTele) aF.Size = UDim2.new(1, 0, 0, 35) aF.BackgroundTransparency = 1 aF.ZIndex = 7 local lA = Instance.new("TextButton", aF) lA.Size = UDim2.new(0, 35, 1, 0) lA.BackgroundColor3 = Color3.fromRGB(192, 192, 192) lA.TextColor3 = Color3.new(0, 0, 0) lA.Font = Enum.Font.Legacy lA.TextSize = 18 lA.Text = "<" lA.BorderSizePixel = 1 lA.ZIndex = 7 local pN = Instance.new("TextLabel", aF) pN.Size = UDim2.new(1, -80, 1, 0) pN.Position = UDim2.new(0, 40, 0, 0) pN.BackgroundColor3 = Color3.fromRGB(255, 255, 255) pN.TextColor3 = Color3.new(0, 0, 0) pN.Font = Enum.Font.Legacy pN.TextSize = 14 pN.Text = "No Players" pN.BorderSizePixel = 1 pN.ZIndex = 7 local rA = Instance.new("TextButton", aF) rA.Size = UDim2.new(0, 35, 1, 0) rA.Position = UDim2.new(1, -35, 0, 0) rA.BackgroundColor3 = Color3.fromRGB(192, 192, 192) rA.TextColor3 = Color3.new(0, 0, 0) rA.Font = Enum.Font.Legacy rA.TextSize = 18 rA.Text = ">" rA.BorderSizePixel = 1 rA.ZIndex = 7 local function upP() local ps = Players:GetPlayers() if #ps == 0 then pN.Text = "None" return end if pIdx > #ps then pIdx = 1 end if pIdx < 1 then pIdx = #ps end pN.Text = ps[pIdx].Name end lA.MouseButton1Click:Connect(function() pc() pIdx = pIdx - 1 upP() end) rA.MouseButton1Click:Connect(function() pc() pIdx = pIdx + 1 upP() end) createBtn(pTele, "TP to Selected Player", function() local t = Players:GetPlayers()[pIdx] if t and t.Character and t.Character:FindFirstChild("HumanoidRootPart") and root then if hum then hum.Sit = false hum.PlatformStand = false end root.CFrame = t.Character.HumanoidRootPart.CFrame * CFrame.new(0, 3, 5) end end) createBtn(pTele, "TP Forward 1000", function() if root then root.CFrame = root.CFrame + cam.CFrame.LookVector * 1000 end end) -- ========================================== -- 7. CODE EDITOR TAB -- ========================================== local projects = {} local currentProjectName = "New Project" local editorActive = false local placeholder = Instance.new("TextLabel", pCode) placeholder.Size = UDim2.new(1, 0, 1, -40) placeholder.Position = UDim2.new(0, 0, 0, 0) placeholder.BackgroundTransparency = 1 placeholder.Text = "Click 'Create New' to open the editor" placeholder.TextColor3 = Color3.new(0, 0, 0) placeholder.Font = Enum.Font.Legacy placeholder.TextSize = 16 placeholder.ZIndex = 7 local projList = Instance.new("ScrollingFrame", pCode) projList.Size = UDim2.new(1, 0, 0, 60) projList.Position = UDim2.new(0, 0, 0, 5) projList.BackgroundColor3 = Color3.fromRGB(150, 150, 150) projList.BorderSizePixel = 1 projList.ScrollBarThickness = 4 projList.Visible = false projList.ZIndex = 7 Instance.new("UIListLayout", projList).Padding = UDim.new(0, 2) local codeBox = Instance.new("TextBox", pCode) codeBox.Size = UDim2.new(1, 0, 1, -130) codeBox.Position = UDim2.new(0, 0, 0, 70) codeBox.BackgroundColor3 = Color3.fromRGB(20, 20, 20) codeBox.TextColor3 = Color3.fromRGB(255, 255, 255) codeBox.Font = Enum.Font.Code codeBox.TextSize = 14 codeBox.Text = "-- Type code here and press Activate\nprint('Hello from PieHub!')" codeBox.MultiLine = true codeBox.ClearTextOnFocus = false codeBox.TextXAlignment = Enum.TextXAlignment.Left codeBox.TextYAlignment = Enum.TextYAlignment.Top codeBox.Visible = false codeBox.ZIndex = 7 local outputLabel = Instance.new("TextLabel", pCode) outputLabel.Size = UDim2.new(1, 0, 0, 20) outputLabel.Position = UDim2.new(0, 0, 1, -80) outputLabel.BackgroundTransparency = 1 outputLabel.Text = "CONSOLE OUTPUT:" outputLabel.TextColor3 = Color3.new(0, 0, 0) outputLabel.Font = Enum.Font.Legacy outputLabel.TextSize = 14 outputLabel.Visible = false outputLabel.ZIndex = 7 local outputBox = Instance.new("TextLabel", pCode) outputBox.Size = UDim2.new(1, 0, 0, 20) outputBox.Position = UDim2.new(0, 0, 1, -60) outputBox.BackgroundColor3 = Color3.new(0, 0, 0) outputBox.TextColor3 = Color3.fromRGB(0, 255, 0) outputBox.Font = Enum.Font.Code outputBox.TextSize = 12 outputBox.Text = "Waiting for code execution..." outputBox.Visible = false outputBox.ZIndex = 7 local bottomBar = Instance.new("Frame", pCode) bottomBar.Size = UDim2.new(1, 0, 0, 35) bottomBar.Position = UDim2.new(0, 0, 1, -35) bottomBar.BackgroundColor3 = Color3.fromRGB(180, 180, 180) bottomBar.BorderSizePixel = 1 bottomBar.ZIndex = 7 local newBtn = Instance.new("TextButton", bottomBar) newBtn.Size = UDim2.new(0.3, -5, 1, -4) newBtn.Position = UDim2.new(0, 2, 0, 2) newBtn.BackgroundColor3 = Color3.fromRGB(200, 200, 200) newBtn.TextColor3 = Color3.new(0, 0, 0) newBtn.Font = Enum.Font.Legacy newBtn.TextSize = 14 newBtn.Text = "Create New" newBtn.BorderSizePixel = 1 newBtn.ZIndex = 7 local saveBtn = Instance.new("TextButton", bottomBar) saveBtn.Size = UDim2.new(0.3, -5, 1, -4) saveBtn.Position = UDim2.new(0.3, 3, 0, 2) saveBtn.BackgroundColor3 = Color3.fromRGB(200, 200, 200) saveBtn.TextColor3 = Color3.new(0, 0, 0) saveBtn.Font = Enum.Font.Legacy saveBtn.TextSize = 14 saveBtn.Text = "Save Project" saveBtn.BorderSizePixel = 1 saveBtn.ZIndex = 7 local runBtn = Instance.new("TextButton", bottomBar) runBtn.Size = UDim2.new(0.4, -5, 1, -4) runBtn.Position = UDim2.new(0.6, 3, 0, 2) runBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 0) runBtn.TextColor3 = Color3.new(1, 1, 1) runBtn.Font = Enum.Font.Legacy runBtn.TextSize = 14 runBtn.Text = "Activate" runBtn.BorderSizePixel = 1 runBtn.Visible = false runBtn.ZIndex = 7 local function refreshProjects() for _, child in ipairs(projList:GetChildren()) do if child:IsA("TextButton") then child:Destroy() end end for name, code in pairs(projects) do local btn = Instance.new("TextButton", projList) btn.Size = UDim2.new(1, 0, 0, 25) btn.BackgroundColor3 = Color3.fromRGB(200, 200, 200) btn.TextColor3 = Color3.new(0, 0, 0) btn.Font = Enum.Font.Legacy btn.TextSize = 12 btn.Text = " Load: " .. name btn.BorderSizePixel = 1 btn.TextXAlignment = Enum.TextXAlignment.Left btn.ZIndex = 7 btn.MouseButton1Click:Connect(function() pc() codeBox.Text = code currentProjectName = name outputBox.Text = "Loaded project: " .. name end) end end newBtn.MouseButton1Click:Connect(function() pc() editorActive = not editorActive if editorActive then newBtn.Text = "Leave" runBtn.Visible = true placeholder.Visible = false projList.Visible = true codeBox.Visible = true outputLabel.Visible = true outputBox.Visible = true if codeBox.Text == "" then codeBox.Text = "-- New Project\n" end currentProjectName = "Project " .. tostring(math.random(1000, 9999)) outputBox.Text = "Started new project: " .. currentProjectName else newBtn.Text = "Create New" runBtn.Visible = false placeholder.Visible = true projList.Visible = false codeBox.Visible = false outputLabel.Visible = false outputBox.Visible = false end end) saveBtn.MouseButton1Click:Connect(function() pc() if not editorActive then return end projects[currentProjectName] = codeBox.Text refreshProjects() outputBox.Text = "Saved project: " .. currentProjectName end) runBtn.MouseButton1Click:Connect(function() pc() if not editorActive then return end local code = codeBox.Text outputBox.Text = "Compiling..." local func, err = loadstring(code) if func then local success, runtimeErr = pcall(func) if not success then outputBox.Text = "[ERROR]: " .. tostring(runtimeErr) else outputBox.Text = "[RUN]: Execution Successful." end else outputBox.Text = "[SYNTAX ERROR]: " .. tostring(err) end end) -- ========================================== -- 8. INTRO & BLOG SEQUENCE -- ========================================== okBtn.MouseButton1Click:Connect(function() pc() blogFrame.Visible = false end) task.spawn(function() task.wait(1) for i = 1, #fakeCode do termBox.Text = string.sub(fakeCode, 1, i) .. "_" if math.random(1, 5) == 1 then st:Play() task.wait(0.02) st:Stop() end task.wait(0.04) end task.wait(1) local signOff = "Signed, Piehub Corp" termBox.Text = termBox.Text .. "\n" for i = 1, #signOff do termBox.Text = termBox.Text .. string.sub(signOff, 1, i) st:Play() task.wait(0.04) st:Stop() end task.wait(2) termBox.Visible = false main.BackgroundColor3 = Color3.fromRGB(192, 192, 192) -- Office Gray header.Visible = true side.Visible = true content.Visible = true resizeBtn.Visible = true pages[1].Visible = true blogFrame.Visible = true end)