local UIS = game:GetService("UserInputService") local LogService = game:GetService("LogService") local Players = game:GetService("Players") local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "SynapseXRemake" ScreenGui.ResetOnSpawn = false local success, coreGui = pcall(function() return game:GetService("CoreGui") end) if success and coreGui then ScreenGui.Parent = coreGui else ScreenGui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui") end local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18) MainFrame.BorderColor3 = Color3.fromRGB(60, 60, 60) MainFrame.BorderSizePixel = 1 MainFrame.Position = UDim2.new(0.5, -300, 0.5, -175) MainFrame.Size = UDim2.new(0, 600, 0, 350) MainFrame.Active = true MainFrame.Draggable = true local TopBar = Instance.new("Frame") TopBar.Parent = MainFrame TopBar.BackgroundColor3 = Color3.fromRGB(14, 14, 14) TopBar.BorderSizePixel = 0 TopBar.Size = UDim2.new(1, 0, 0, 25) local TitleLogo = Instance.new("TextLabel") TitleLogo.Parent = TopBar TitleLogo.BackgroundTransparency = 1 TitleLogo.Position = UDim2.new(0, 10, 0, 0) TitleLogo.Size = UDim2.new(0, 20, 1, 0) TitleLogo.Font = Enum.Font.SourceSans TitleLogo.Text = "S" TitleLogo.TextColor3 = Color3.fromRGB(235, 64, 120) TitleLogo.TextSize = 18 TitleLogo.TextXAlignment = Enum.TextXAlignment.Left local MinButton = Instance.new("TextButton") MinButton.Parent = TopBar MinButton.BackgroundTransparency = 1 MinButton.Position = UDim2.new(1, -40, 0, 0) MinButton.Size = UDim2.new(0, 20, 1, 0) MinButton.Font = Enum.Font.SourceSans MinButton.Text = "—" MinButton.TextColor3 = Color3.fromRGB(200, 200, 200) MinButton.TextSize = 14 local CloseButton = Instance.new("TextButton") CloseButton.Parent = TopBar CloseButton.BackgroundTransparency = 1 CloseButton.Position = UDim2.new(1, -20, 0, 0) CloseButton.Size = UDim2.new(0, 20, 1, 0) CloseButton.Font = Enum.Font.SourceSans CloseButton.Text = "X" CloseButton.TextColor3 = Color3.fromRGB(200, 200, 200) CloseButton.TextSize = 14 local TabBar = Instance.new("Frame") TabBar.Parent = MainFrame TabBar.BackgroundColor3 = Color3.fromRGB(22, 22, 22) TabBar.BorderSizePixel = 0 TabBar.Position = UDim2.new(0, 0, 0, 25) TabBar.Size = UDim2.new(1, 0, 0, 25) local OutputTab = Instance.new("TextButton") OutputTab.Parent = TabBar OutputTab.BackgroundTransparency = 1 OutputTab.Position = UDim2.new(0, 10, 0, 0) OutputTab.Size = UDim2.new(0, 55, 1, 0) OutputTab.Font = Enum.Font.SourceSans OutputTab.Text = "Output" OutputTab.TextColor3 = Color3.fromRGB(200, 200, 200) OutputTab.TextSize = 14 local ExecutorTab = Instance.new("TextButton") ExecutorTab.Parent = TabBar ExecutorTab.BackgroundTransparency = 1 ExecutorTab.Position = UDim2.new(0, 70, 0, 0) ExecutorTab.Size = UDim2.new(0, 65, 1, 0) ExecutorTab.Font = Enum.Font.SourceSans ExecutorTab.Text = "Executor" ExecutorTab.TextColor3 = Color3.fromRGB(235, 64, 120) ExecutorTab.TextSize = 14 local SubTabBar = Instance.new("Frame") SubTabBar.Parent = MainFrame SubTabBar.BackgroundColor3 = Color3.fromRGB(20, 20, 20) SubTabBar.BorderSizePixel = 0 SubTabBar.Position = UDim2.new(0, 0, 0, 50) SubTabBar.Size = UDim2.new(1, 0, 0, 22) local TabsContainer = Instance.new("Frame") TabsContainer.Parent = SubTabBar TabsContainer.BackgroundTransparency = 1 TabsContainer.Position = UDim2.new(0, 10, 0, 0) TabsContainer.Size = UDim2.new(1, -40, 1, 0) local TabsLayout = Instance.new("UIListLayout") TabsLayout.Parent = TabsContainer TabsLayout.FillDirection = Enum.FillDirection.Horizontal TabsLayout.Padding = UDim.new(0, 2) TabsLayout.VerticalAlignment = Enum.VerticalAlignment.Center local AddTabBtn = Instance.new("TextButton") AddTabBtn.Parent = SubTabBar AddTabBtn.BackgroundTransparency = 1 AddTabBtn.Position = UDim2.new(1, -28, 0, 0) AddTabBtn.Size = UDim2.new(0, 22, 1, 0) AddTabBtn.Font = Enum.Font.SourceSans AddTabBtn.Text = "+" AddTabBtn.TextColor3 = Color3.fromRGB(150, 150, 150) AddTabBtn.TextSize = 16 local EditorContainer = Instance.new("Frame") EditorContainer.Parent = MainFrame EditorContainer.BackgroundColor3 = Color3.fromRGB(14, 14, 14) EditorContainer.BorderSizePixel = 0 EditorContainer.Position = UDim2.new(0, 10, 0, 78) EditorContainer.Size = UDim2.new(1, -160, 1, -113) local LineNumbers = Instance.new("TextLabel") LineNumbers.Parent = EditorContainer LineNumbers.BackgroundTransparency = 1 LineNumbers.Position = UDim2.new(0, 5, 0, 5) LineNumbers.Size = UDim2.new(0, 15, 1, -10) LineNumbers.Font = Enum.Font.Code LineNumbers.Text = "1" LineNumbers.TextColor3 = Color3.fromRGB(100, 100, 100) LineNumbers.TextSize = 14 LineNumbers.TextYAlignment = Enum.TextYAlignment.Top local DividerLine = Instance.new("Frame") DividerLine.Parent = EditorContainer DividerLine.BackgroundColor3 = Color3.fromRGB(60, 60, 60) DividerLine.BorderSizePixel = 0 DividerLine.Position = UDim2.new(0, 22, 0, 0) DividerLine.Size = UDim2.new(0, 1, 1, 0) local OutputContainer = Instance.new("ScrollingFrame") OutputContainer.Parent = EditorContainer OutputContainer.BackgroundColor3 = Color3.fromRGB(14, 14, 14) OutputContainer.BorderSizePixel = 0 OutputContainer.Position = UDim2.new(0, 30, 0, 5) OutputContainer.Size = UDim2.new(1, -35, 1, -10) OutputContainer.Visible = false OutputContainer.ScrollBarThickness = 4 OutputContainer.CanvasSize = UDim2.new(0, 0, 0, 0) local OutputLayout = Instance.new("UIListLayout") OutputLayout.Parent = OutputContainer OutputLayout.SortOrder = Enum.SortOrder.LayoutOrder OutputLayout.Padding = UDim.new(0, 1) local ScriptList = Instance.new("Frame") ScriptList.Parent = MainFrame ScriptList.BackgroundColor3 = Color3.fromRGB(14, 14, 14) ScriptList.BorderColor3 = Color3.fromRGB(35, 35, 35) ScriptList.BorderSizePixel = 1 ScriptList.Position = UDim2.new(1, -140, 0, 78) ScriptList.Size = UDim2.new(0, 130, 1, -113) local ButtonBar = Instance.new("Frame") ButtonBar.Parent = MainFrame ButtonBar.BackgroundTransparency = 1 ButtonBar.Position = UDim2.new(0, 10, 1, -30) ButtonBar.Size = UDim2.new(1, -20, 0, 25) local function createBottomButton(text, xPos, alignment) local btn = Instance.new("TextButton") btn.BackgroundTransparency = 1 btn.Size = UDim2.new(0, 50, 1, 0) btn.Font = Enum.Font.SourceSans btn.Text = text btn.TextColor3 = Color3.fromRGB(220, 220, 220) btn.TextSize = 13 btn.Parent = ButtonBar if alignment == "Left" then btn.Position = UDim2.new(0, xPos, 0, 0) btn.TextXAlignment = Enum.TextXAlignment.Left else btn.Position = UDim2.new(1, xPos, 0, 0) btn.TextXAlignment = Enum.TextXAlignment.Right end return btn end local ExecuteBtn = createBottomButton("Execute", 0, "Left") local OpenBtn = createBottomButton("Open", 50, "Left") local SaveBtn = createBottomButton("Save", 90, "Left") local ClearBtn = createBottomButton("Clear", 130, "Left") local AttachBtn = createBottomButton("Attach", 170, "Left") local ScriptHubBtn = createBottomButton("Script Hub", -120, "Right") local SettingsBtn = createBottomButton("Settings", -50, "Right") -- ========== SETTINGS CARD ========== local autoExecute = false local SettingsCard = Instance.new("Frame") SettingsCard.Name = "SettingsCard" SettingsCard.Parent = ScreenGui SettingsCard.BackgroundColor3 = Color3.fromRGB(22, 22, 22) SettingsCard.BorderColor3 = Color3.fromRGB(60, 60, 60) SettingsCard.BorderSizePixel = 1 SettingsCard.Position = UDim2.new(0.5, 320, 0.5, -100) SettingsCard.Size = UDim2.new(0, 200, 0, 140) SettingsCard.Active = true SettingsCard.Draggable = true SettingsCard.Visible = false SettingsCard.ZIndex = 20 local SettingsTitleBar = Instance.new("Frame") SettingsTitleBar.Parent = SettingsCard SettingsTitleBar.BackgroundColor3 = Color3.fromRGB(14, 14, 14) SettingsTitleBar.BorderSizePixel = 0 SettingsTitleBar.Size = UDim2.new(1, 0, 0, 24) SettingsTitleBar.ZIndex = 21 local SettingsTitle = Instance.new("TextLabel") SettingsTitle.Parent = SettingsTitleBar SettingsTitle.BackgroundTransparency = 1 SettingsTitle.Position = UDim2.new(0, 10, 0, 0) SettingsTitle.Size = UDim2.new(1, -35, 1, 0) SettingsTitle.Font = Enum.Font.SourceSans SettingsTitle.Text = "Settings" SettingsTitle.TextColor3 = Color3.fromRGB(220, 220, 220) SettingsTitle.TextSize = 14 SettingsTitle.TextXAlignment = Enum.TextXAlignment.Left SettingsTitle.ZIndex = 22 local SettingsClose = Instance.new("TextButton") SettingsClose.Parent = SettingsTitleBar SettingsClose.BackgroundTransparency = 1 SettingsClose.Position = UDim2.new(1, -22, 0, 0) SettingsClose.Size = UDim2.new(0, 20, 1, 0) SettingsClose.Font = Enum.Font.SourceSans SettingsClose.Text = "X" SettingsClose.TextColor3 = Color3.fromRGB(200, 200, 200) SettingsClose.TextSize = 14 SettingsClose.ZIndex = 22 local AutoRow = Instance.new("Frame") AutoRow.Parent = SettingsCard AutoRow.BackgroundTransparency = 1 AutoRow.Position = UDim2.new(0, 12, 0, 40) AutoRow.Size = UDim2.new(1, -24, 0, 28) AutoRow.ZIndex = 21 local AutoLabel = Instance.new("TextLabel") AutoLabel.Parent = AutoRow AutoLabel.BackgroundTransparency = 1 AutoLabel.Size = UDim2.new(1, -30, 1, 0) AutoLabel.Font = Enum.Font.SourceSans AutoLabel.Text = "Auto Execute" AutoLabel.TextColor3 = Color3.fromRGB(220, 220, 220) AutoLabel.TextSize = 14 AutoLabel.TextXAlignment = Enum.TextXAlignment.Left AutoLabel.ZIndex = 22 local AutoToggle = Instance.new("TextButton") AutoToggle.Parent = AutoRow AutoToggle.BackgroundColor3 = Color3.fromRGB(200, 40, 40) AutoToggle.BorderSizePixel = 0 AutoToggle.Position = UDim2.new(1, -22, 0.5, -10) AutoToggle.Size = UDim2.new(0, 20, 0, 20) AutoToggle.Text = "" AutoToggle.ZIndex = 22 -- ========== SYSTEM TABÓW ========== local tabs = {} local currentTab = nil local showingOutput = false local MAX_TABS = 10 local PINK = Color3.fromRGB(235, 64, 120) local function getNextTabNumber() local used = {} for _, t in ipairs(tabs) do used[t.number] = true end for i = 1, MAX_TABS do if not used[i] then return i end end return nil end local function updateLineNumbers(textBox) local lines = 1 for _ in textBox.Text:gmatch("\n") do lines = lines + 1 end local str = "" for i = 1, math.max(lines, 1) do str = str .. i .. "\n" end LineNumbers.Text = str end local function showExecutorView() showingOutput = false OutputContainer.Visible = false SubTabBar.Visible = true OutputTab.TextColor3 = Color3.fromRGB(200, 200, 200) ExecutorTab.TextColor3 = PINK if currentTab then for _, t in ipairs(tabs) do t.textBox.Visible = false t.frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) t.label.TextColor3 = Color3.fromRGB(180, 180, 180) end currentTab.textBox.Visible = true currentTab.frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35) currentTab.label.TextColor3 = Color3.fromRGB(230, 230, 230) updateLineNumbers(currentTab.textBox) end end local function showOutputView() showingOutput = true OutputContainer.Visible = true SubTabBar.Visible = false OutputTab.TextColor3 = PINK ExecutorTab.TextColor3 = Color3.fromRGB(200, 200, 200) LineNumbers.Text = "" for _, t in ipairs(tabs) do t.textBox.Visible = false end end local function switchToTab(tab) showExecutorView() for _, t in ipairs(tabs) do t.textBox.Visible = false t.frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) t.label.TextColor3 = Color3.fromRGB(180, 180, 180) end tab.textBox.Visible = true tab.frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35) tab.label.TextColor3 = Color3.fromRGB(230, 230, 230) currentTab = tab updateLineNumbers(tab.textBox) end local function closeTab(tab) if #tabs <= 1 then return end local idx for i, t in ipairs(tabs) do if t == tab then idx = i break end end if not idx then return end tab.frame:Destroy() tab.textBox:Destroy() table.remove(tabs, idx) if currentTab == tab then switchToTab(tabs[math.min(idx, #tabs)]) end end local function createTab() if #tabs >= MAX_TABS then return end local num = getNextTabNumber() if not num then return end local tab = { number = num } local frame = Instance.new("Frame") frame.Parent = TabsContainer frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35) frame.BorderSizePixel = 0 frame.Size = UDim2.new(0, 65, 0, 18) tab.frame = frame local label = Instance.new("TextButton") label.Parent = frame label.BackgroundTransparency = 1 label.Position = UDim2.new(0, 5, 0, 0) label.Size = UDim2.new(1, -20, 1, 0) label.Font = Enum.Font.SourceSans label.Text = "Tab " .. num label.TextColor3 = Color3.fromRGB(230, 230, 230) label.TextSize = 12 label.TextXAlignment = Enum.TextXAlignment.Left tab.label = label local closeBtn = Instance.new("TextButton") closeBtn.Parent = frame closeBtn.BackgroundTransparency = 1 closeBtn.Position = UDim2.new(1, -14, 0, 0) closeBtn.Size = UDim2.new(0, 12, 1, 0) closeBtn.Font = Enum.Font.SourceSans closeBtn.Text = "x" closeBtn.TextColor3 = Color3.fromRGB(150, 150, 150) closeBtn.TextSize = 11 closeBtn.MouseButton1Click:Connect(function() closeTab(tab) end) local textBox = Instance.new("TextBox") textBox.Parent = EditorContainer textBox.BackgroundTransparency = 1 textBox.Position = UDim2.new(0, 30, 0, 5) textBox.Size = UDim2.new(1, -35, 1, -10) textBox.ClearTextOnFocus = false textBox.Font = Enum.Font.Code textBox.MultiLine = true textBox.Text = "" textBox.TextColor3 = PINK textBox.TextSize = 14 textBox.TextXAlignment = Enum.TextXAlignment.Left textBox.TextYAlignment = Enum.TextYAlignment.Top textBox.Visible = false tab.textBox = textBox textBox:GetPropertyChangedSignal("Text"):Connect(function() if currentTab == tab then updateLineNumbers(textBox) end end) label.MouseButton1Click:Connect(function() switchToTab(tab) end) table.insert(tabs, tab) switchToTab(tab) return tab end local function runCode(code) if not code or code == "" or code:match("^%s*$") then return end local chunk, err = loadstring(code) if chunk then local ok, msg = pcall(chunk) if not ok then warn("Błąd wykonania: " .. tostring(msg)) end else warn("Błąd składni: " .. tostring(err)) end end -- ========== OUTPUT ========== local function addLog(text, color) local label = Instance.new("TextLabel") label.Parent = OutputContainer label.Size = UDim2.new(1, -4, 0, 16) label.BackgroundTransparency = 1 label.Text = text label.Font = Enum.Font.Code label.TextSize = 13 label.TextColor3 = color or Color3.fromRGB(200, 200, 200) label.TextXAlignment = Enum.TextXAlignment.Left label.TextWrapped = true label.AutomaticSize = Enum.AutomaticSize.Y task.defer(function() OutputContainer.CanvasSize = UDim2.new(0, 0, 0, OutputLayout.AbsoluteContentSize.Y + 8) OutputContainer.CanvasPosition = Vector2.new(0, OutputContainer.CanvasSize.Y.Offset) end) end LogService.MessageOut:Connect(function(message, messageType) local color = Color3.fromRGB(200, 200, 200) if messageType == Enum.MessageType.MessageWarning then color = Color3.fromRGB(255, 200, 50) elseif messageType == Enum.MessageType.MessageError then color = Color3.fromRGB(255, 80, 80) elseif messageType == Enum.MessageType.MessageInfo then color = Color3.fromRGB(100, 180, 255) end addLog(message, color) end) addLog("-- Output --", PINK) addLog("Waiting for console logs...", Color3.fromRGB(120, 120, 120)) -- ========== KLIKI ========== OutputTab.MouseButton1Click:Connect(showOutputView) ExecutorTab.MouseButton1Click:Connect(showExecutorView) AddTabBtn.MouseButton1Click:Connect(createTab) ExecuteBtn.MouseButton1Click:Connect(function() if showingOutput or not currentTab then return end runCode(currentTab.textBox.Text) end) ClearBtn.MouseButton1Click:Connect(function() if showingOutput then for _, c in ipairs(OutputContainer:GetChildren()) do if c:IsA("TextLabel") then c:Destroy() end end addLog("-- Output cleared --", Color3.fromRGB(120, 120, 120)) elseif currentTab then currentTab.textBox.Text = "" end end) -- Script Hub ScriptHubBtn.MouseButton1Click:Connect(function() local ok, err = pcall(function() loadstring(game:HttpGet("https://raw.githubusercontent.com/AZYsGithub/chillz-workshop/main/ScriptSearcher"))() end) if not ok then warn("[Script Hub]: " .. tostring(err)) else print("[Script Hub]: Loaded") end end) -- Settings SettingsBtn.MouseButton1Click:Connect(function() SettingsCard.Visible = not SettingsCard.Visible end) SettingsClose.MouseButton1Click:Connect(function() SettingsCard.Visible = false end) AutoToggle.MouseButton1Click:Connect(function() autoExecute = not autoExecute if autoExecute then AutoToggle.BackgroundColor3 = Color3.fromRGB(40, 180, 60) print("[Settings]: Auto Execute ON") if currentTab and not showingOutput then runCode(currentTab.textBox.Text) end else AutoToggle.BackgroundColor3 = Color3.fromRGB(200, 40, 40) print("[Settings]: Auto Execute OFF") end end) CloseButton.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) MinButton.MouseButton1Click:Connect(function() MainFrame.Visible = not MainFrame.Visible end) -- Start createTab()