-- KM Executor | Wybór języka PL / EN w oknie 3 kresek, w executorze i w SETTINGS -- 1. Kami_ytt (awatar ercio48, złota) | 2. ercia2008 (niebieska) | 3. Noymless (awatar OLIWIER76220, fioletowa) -- Animacje otwierania TweenService + dłuższe notatki ze suwakiem + blokada pustych propozycji -- Bez przycisku pauzy | Bez znaków = local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local CoreGui = game:GetService("CoreGui") local LocalPlayer = Players.LocalPlayer if not LocalPlayer then local dead = os.clock() + 3 while not Players.LocalPlayer and os.clock() < dead do task.wait(0.05) end LocalPlayer = Players.LocalPlayer end local function resolveContainer() if type(gethui) == "function" then local ok, hui = pcall(gethui) if ok and typeof(hui) == "Instance" then return hui end end local canUseCore = pcall(function() local probe = Instance.new("Folder") probe.Name = "KM_Probe" probe.Parent = CoreGui probe:Destroy() end) if canUseCore then return CoreGui end if LocalPlayer then return LocalPlayer:FindFirstChildOfClass("PlayerGui") or LocalPlayer:WaitForChild("PlayerGui", 5) end return CoreGui end local rootContainer = resolveContainer() if not rootContainer then return end for _, child in ipairs(rootContainer:GetChildren()) do if child:IsA("ScreenGui") and child.Name == "KM_Simple_Executor" then pcall(function() child:Destroy() end) end end local Gui = Instance.new("ScreenGui") Gui.Name = "KM_Simple_Executor" Gui.ResetOnSpawn = false Gui.IgnoreGuiInset = true Gui.DisplayOrder = 999999 Gui.Enabled = true Gui.Parent = rootContainer local SUGGESTIONS_FILE = "KM_Permanent_Suggestions.txt" local function roundBox(target, radiusPx) local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, radiusPx or 8) corner.Parent = target return corner end local function borderBox(target, color, thickness, transparency) local stroke = Instance.new("UIStroke") stroke.Color = color or Color3.fromRGB(255, 255, 255) stroke.Thickness = thickness or 1.4 stroke.Transparency = transparency or 0 stroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border stroke.Parent = target return stroke end local function playAnim(obj, info, props) if not obj or not obj.Parent then return end local tw = TweenService:Create(obj, info, props) tw:Play() return tw end -- Kolory interfejsu local DARK_PANEL = Color3.fromRGB(22, 25, 34) local HEADER_PANEL = Color3.fromRGB(32, 37, 50) local EDITOR_BG = Color3.fromRGB(16, 19, 27) local CARD_GRAY = Color3.fromRGB(78, 83, 96) local INNER_GRAY = Color3.fromRGB(62, 67, 78) local CYAN_DOT = Color3.fromRGB(72, 212, 255) local GREEN_EXEC = Color3.fromRGB(56, 214, 118) local RED_CLOSE = Color3.fromRGB(220, 48, 62) local PURE_WHITE = Color3.fromRGB(255, 255, 255) local INK_DARK = Color3.fromRGB(20, 24, 34) local LIGHT_FILL = Color3.fromRGB(246, 249, 253) local LIGHT_LINE = Color3.fromRGB(185, 195, 212) local TXT_LIGHT = Color3.fromRGB(244, 247, 255) local TXT_DIM = Color3.fromRGB(165, 176, 200) -- Ramki członków ekipy local BORDER_GOLD = Color3.fromRGB(255, 200, 45) local BORDER_BLUE = Color3.fromRGB(65, 165, 255) local BORDER_PURPLE = Color3.fromRGB(168, 85, 247) local useEnglish = true local keyModeKeyless = true local activeModalData = nil local savedSuggestions = {} local lastExecStatusKey = "ready" local lastExecExtra = "" local lastSugStatusKey = "blocked_hint" local applyAllLanguageTexts = nil local refreshExpandedText = nil local openExpandedTeamMember = nil local rebuildSuggestionCards = nil local function hasRealInput(raw, prefix) local txt = tostring(raw or "") if prefix and #prefix > 0 then local lowTxt = string.lower(txt) local lowPre = string.lower(prefix) if lowTxt:sub(1, #lowPre) == lowPre then txt = txt:sub(#lowPre + 1) end end txt = txt:gsub("[%s%p]+", "") return #txt > 0 end local function cleanInput(raw, prefix) local txt = tostring(raw or "") if prefix and #prefix > 0 then local lowTxt = string.lower(txt) local lowPre = string.lower(prefix) if lowTxt:sub(1, #lowPre) == lowPre then txt = txt:sub(#lowPre + 1) end end txt = txt:gsub("^%s+", ""):gsub("%s+$", ""):gsub("[\r\n]+", " ") return txt end local function upsertSuggestion(uid, nick, summary) local cleanSummary = tostring(summary or ""):gsub("[\r\n]+", " ") if #cleanSummary:match("%S") == nil then return end local numId = tonumber(uid) or 1 local cleanNick = tostring(nick or ("Player_" .. tostring(numId))):gsub("[\r\n|]+", " ") for _, item in ipairs(savedSuggestions) do if item.userId == numId or string.lower(item.name) == string.lower(cleanNick) then item.userId = numId item.name = cleanNick item.text = cleanSummary return item end end local created = { userId = numId, name = cleanNick, text = cleanSummary } table.insert(savedSuggestions, created) return created end local function writeSuggestionsToDisk() if type(writefile) ~= "function" then return end local rows = {} for _, item in ipairs(savedSuggestions) do local safeNick = tostring(item.name or "Player"):gsub("[\r\n|]+", " ") local safeTxt = tostring(item.text or ""):gsub("[\r\n]+", " ") table.insert(rows, tostring(item.userId or 1) .. "|" .. safeNick .. "|" .. safeTxt) end pcall(function() writefile(SUGGESTIONS_FILE, table.concat(rows, "\n")) end) end local function loadSuggestionsFromDisk() if type(isfile) == "function" and type(readfile) == "function" then local found = false pcall(function() found = isfile(SUGGESTIONS_FILE) end) if found then local ok, content = pcall(function() return readfile(SUGGESTIONS_FILE) end) if ok and type(content) == "string" and #content > 0 then for line in content:gmatch("[^\r\n]+") do local uidPart, nickPart, textPart = line:match("^(%d+)|([^|]*)|(.*)$") local parsedId = tonumber(uidPart) if parsedId and textPart and #textPart:match("%S") ~= nil then upsertSuggestion(parsedId, nickPart, textPart) end end end end end end loadSuggestionsFromDisk() local function applyHeadshot(imgObj, info) if not imgObj or not info then return end local uid = tonumber(info.userId) or 1 local lookupName = info.avatarName or info.name imgObj.Image = "rbxthumb://type=AvatarHeadShot&id:" .. tostring(uid) .. "&w:150&h:150" task.spawn(function() if (not info.userId or tonumber(info.userId) <= 1) and lookupName and #lookupName > 0 then local onlinePlr = Players:FindFirstChild(lookupName) if onlinePlr then uid = onlinePlr.UserId info.userId = uid else local okId, realId = pcall(function() return Players:GetUserIdFromNameAsync(lookupName) end) if okId and type(realId) == "number" and realId > 0 then uid = realId info.userId = uid end end end if imgObj and imgObj.Parent then imgObj.Image = "rbxthumb://type=AvatarHeadShot&id:" .. tostring(uid) .. "&w:150&h:150" end local okShot, shotUrl = pcall(function() return Players:GetUserThumbnailAsync( uid, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size150x150 ) end) if okShot and type(shotUrl) == "string" and #shotUrl > 0 and imgObj and imgObj.Parent then imgObj.Image = shotUrl end end) end -- Tło przyciemnione przy rozwiniętej karcie local DimBackdrop = Instance.new("TextButton") DimBackdrop.Size = UDim2.new(1, 0, 1, 0) DimBackdrop.Position = UDim2.new(0, 0, 0, 0) DimBackdrop.BackgroundColor3 = Color3.fromRGB(0, 0, 0) DimBackdrop.BackgroundTransparency = 1 DimBackdrop.BorderSizePixel = 0 DimBackdrop.Text = "" DimBackdrop.AutoButtonColor = false DimBackdrop.Visible = false DimBackdrop.ZIndex = 40 DimBackdrop.Parent = Gui -- 1. Lewy dok local LeftDock = Instance.new("Frame") LeftDock.Size = UDim2.new(0, 54, 0, 152) LeftDock.Position = UDim2.new(0, 10, 0.5, -76) LeftDock.BackgroundTransparency = 1 LeftDock.ZIndex = 20 LeftDock.Parent = Gui local KmLeftBtn = Instance.new("TextButton") KmLeftBtn.Size = UDim2.new(0, 48, 0, 38) KmLeftBtn.Position = UDim2.new(0, 3, 0.5, -19) KmLeftBtn.BackgroundColor3 = HEADER_PANEL KmLeftBtn.BorderSizePixel = 0 KmLeftBtn.Text = "KM" KmLeftBtn.TextColor3 = PURE_WHITE KmLeftBtn.TextSize = 15 KmLeftBtn.Font = Enum.Font.GothamBlack KmLeftBtn.ZIndex = 22 KmLeftBtn.Parent = LeftDock roundBox(KmLeftBtn, 10) borderBox(KmLeftBtn, PURE_WHITE, 1.5, 0) local LinesSquareBtn = Instance.new("TextButton") LinesSquareBtn.Size = UDim2.new(0, 38, 0, 38) LinesSquareBtn.Position = UDim2.new(0, 8, 0, 4) LinesSquareBtn.BackgroundColor3 = PURE_WHITE LinesSquareBtn.BorderSizePixel = 0 LinesSquareBtn.Text = "" LinesSquareBtn.ZIndex = 22 LinesSquareBtn.Parent = LeftDock roundBox(LinesSquareBtn, 8) borderBox(LinesSquareBtn, INK_DARK, 1.3, 0.15) for barIdx = 0, 2 do local barLine = Instance.new("Frame") barLine.Size = UDim2.new(0, 20, 0, 3) barLine.Position = UDim2.new(0.5, -10, 0.5, -7 + (barIdx * 7)) barLine.BackgroundColor3 = INK_DARK barLine.BorderSizePixel = 0 barLine.ZIndex = 23 barLine.Parent = LinesSquareBtn roundBox(barLine, 2) end local SettingsBtn = Instance.new("TextButton") SettingsBtn.Size = UDim2.new(0, 38, 0, 38) SettingsBtn.Position = UDim2.new(0, 8, 1, -42) SettingsBtn.BackgroundColor3 = PURE_WHITE SettingsBtn.BorderSizePixel = 0 SettingsBtn.Text = "⚙" SettingsBtn.TextColor3 = INK_DARK SettingsBtn.TextSize = 19 SettingsBtn.Font = Enum.Font.GothamBold SettingsBtn.ZIndex = 22 SettingsBtn.Parent = LeftDock roundBox(SettingsBtn, 10) borderBox(SettingsBtn, INK_DARK, 1.3, 0.15) -- 2. Panel Ustawień (3 awatary obok siebie + na dole flaga PL i obok flaga EN) local SETTINGS_OPEN_POS = UDim2.new(0, 70, 0.5, -123) local SETTINGS_CLOSED_POS = UDim2.new(0, 44, 0.5, -123) local SettingsSquare = Instance.new("Frame") SettingsSquare.Size = UDim2.new(0, 286, 0, 246) SettingsSquare.Position = SETTINGS_CLOSED_POS SettingsSquare.BackgroundColor3 = PURE_WHITE SettingsSquare.BorderSizePixel = 0 SettingsSquare.ClipsDescendants = true SettingsSquare.Visible = false SettingsSquare.Active = true SettingsSquare.ZIndex = 28 SettingsSquare.Parent = Gui roundBox(SettingsSquare, 12) borderBox(SettingsSquare, INK_DARK, 1.8, 0) local SetTop = Instance.new("Frame") SetTop.Size = UDim2.new(1, 0, 0, 30) SetTop.BackgroundColor3 = Color3.fromRGB(240, 244, 250) SetTop.BorderSizePixel = 0 SetTop.ZIndex = 29 SetTop.Parent = SettingsSquare local SetTitle = Instance.new("TextLabel") SetTitle.Size = UDim2.new(1, -40, 1, 0) SetTitle.Position = UDim2.new(0, 10, 0, 0) SetTitle.BackgroundTransparency = 1 SetTitle.Text = "SETTINGS" SetTitle.TextColor3 = INK_DARK SetTitle.TextSize = 12 SetTitle.Font = Enum.Font.GothamBlack SetTitle.TextXAlignment = Enum.TextXAlignment.Left SetTitle.ZIndex = 30 SetTitle.Parent = SetTop local SetClose = Instance.new("TextButton") SetClose.Size = UDim2.new(0, 24, 0, 24) SetClose.Position = UDim2.new(1, -27, 0.5, -12) SetClose.BackgroundColor3 = RED_CLOSE SetClose.BorderSizePixel = 0 SetClose.Text = "X" SetClose.TextColor3 = PURE_WHITE SetClose.TextSize = 11 SetClose.Font = Enum.Font.GothamBold SetClose.ZIndex = 30 SetClose.Parent = SetTop roundBox(SetClose, 6) local CreditsBody = Instance.new("TextLabel") CreditsBody.Size = UDim2.new(1, -20, 0, 88) CreditsBody.Position = UDim2.new(0, 10, 0, 35) CreditsBody.BackgroundColor3 = LIGHT_FILL CreditsBody.BorderSizePixel = 0 CreditsBody.TextWrapped = true CreditsBody.TextXAlignment = Enum.TextXAlignment.Left CreditsBody.TextYAlignment = Enum.TextYAlignment.Top CreditsBody.Text = "Scriptblox: KM studios\nProgramming: Kami_ytt\nTesting: ercia2008\nDesign: Noymless" CreditsBody.TextColor3 = INK_DARK CreditsBody.TextSize = 11 CreditsBody.Font = Enum.Font.GothamBold CreditsBody.ZIndex = 30 CreditsBody.Parent = SettingsSquare roundBox(CreditsBody, 8) borderBox(CreditsBody, LIGHT_LINE, 1, 0) local AvatarsRow = Instance.new("Frame") AvatarsRow.Size = UDim2.new(1, -20, 0, 68) AvatarsRow.Position = UDim2.new(0, 10, 0, 128) AvatarsRow.BackgroundColor3 = LIGHT_FILL AvatarsRow.BorderSizePixel = 0 AvatarsRow.ZIndex = 30 AvatarsRow.Parent = SettingsSquare roundBox(AvatarsRow, 8) borderBox(AvatarsRow, LIGHT_LINE, 1, 0) -- 3 awatary obok siebie z dłuższymi, dobrze wytłumaczonymi notatkami (PL i EN): -- 1. Kami_ytt (awatar ercio48, złota) | 2. ercia2008 (niebieska) | 3. Noymless (awatar OLIWIER76220, fioletowa) local teamProfiles = { { name = "Kami_ytt", avatarName = "ercio48", userId = 1, borderColor = BORDER_GOLD, roleEn = "Role: Main Programmer", rolePl = "Rola: Główny programista", shortNoteEn = "Detailed note: Writes the core Luau code behind KM Executor, handles window movement, UI animations, saving suggestions, and script execution. Focuses on keeping controls responsive on both PC and mobile.", shortNotePl = "Szczegółowa notatka: Pisze główny kod w Luau dla KM Executora, odpowiada za przesuwanie okien, animacje interfejsu, zapis propozycji oraz uruchamianie skryptów. Pilnuje, żeby wszystko działało płynnie na komputerze i telefonie." }, { name = "ercia2008", avatarName = "ercia2008", userId = 1, borderColor = BORDER_BLUE, roleEn = "Role: Script Tester", rolePl = "Rola: Tester skryptów", shortNoteEn = "Detailed note: Checks every new build directly in-game before release. Looks for broken buttons, overlapping text, translation mistakes, and edge cases so players do not run into unfinished menus.", shortNotePl = "Szczegółowa notatka: Sprawdza każdą nową wersję bezpośrednio w grze przed wypuszczeniem. Wyłapuje niedziałające przyciski, nachodzący tekst, literówki w tłumaczeniu i dziwne sytuacje, żeby menu było gotowe do grania." }, { name = "Noymless", avatarName = "OLIWIER76220", userId = 1, borderColor = BORDER_PURPLE, roleEn = "Role: UI & Ideas", rolePl = "Rola: Wygląd i pomysły", shortNoteEn = "Detailed note: Helps shape how panels are arranged, picks clean visual details, and comes up with fresh script and feature ideas for KM Studios releases.", shortNotePl = "Szczegółowa notatka: Pomaga ustalać układ paneli, dopracowuje wygląd elementów i podrzuca nowe pomysły na skrypty oraz funkcje do kolejnych wydań KM Studios." } } local AVATAR_BOX = 56 local AVATAR_GAP = 14 local totalAvW = (#teamProfiles * AVATAR_BOX) + ((#teamProfiles - 1) * AVATAR_GAP) for idx, prof in ipairs(teamProfiles) do local xPos = math.floor((286 - 20 - totalAvW) / 2) + ((idx - 1) * (AVATAR_BOX + AVATAR_GAP)) local avBtn = Instance.new("ImageButton") avBtn.Size = UDim2.new(0, AVATAR_BOX, 0, AVATAR_BOX) avBtn.Position = UDim2.new(0, xPos, 0.5, -math.floor(AVATAR_BOX / 2)) avBtn.BackgroundColor3 = CARD_GRAY avBtn.BorderSizePixel = 0 avBtn.ClipsDescendants = true avBtn.Image = "" avBtn.AutoButtonColor = false avBtn.ZIndex = 31 avBtn.Parent = AvatarsRow roundBox(avBtn, 8) borderBox(avBtn, prof.borderColor, 2.4, 0) applyHeadshot(avBtn, prof) avBtn.Activated:Connect(function() if openExpandedTeamMember then openExpandedTeamMember(prof) end end) end -- Dolny rząd: flaga polska po lewej i obok angielska local FlagsRow = Instance.new("Frame") FlagsRow.Size = UDim2.new(1, -20, 0, 32) FlagsRow.Position = UDim2.new(0, 10, 1, -40) FlagsRow.BackgroundColor3 = LIGHT_FILL FlagsRow.BorderSizePixel = 0 FlagsRow.ZIndex = 30 FlagsRow.Parent = SettingsSquare roundBox(FlagsRow, 8) borderBox(FlagsRow, LIGHT_LINE, 1, 0) local PlFlagBtn = Instance.new("TextButton") PlFlagBtn.Size = UDim2.new(0, 120, 0, 24) PlFlagBtn.Position = UDim2.new(0, 8, 0.5, -12) PlFlagBtn.BackgroundColor3 = PURE_WHITE PlFlagBtn.BorderSizePixel = 0 PlFlagBtn.ClipsDescendants = true PlFlagBtn.Text = "" PlFlagBtn.AutoButtonColor = false PlFlagBtn.ZIndex = 31 PlFlagBtn.Parent = FlagsRow roundBox(PlFlagBtn, 5) local plStroke = borderBox(PlFlagBtn, INK_DARK, 1.5, 0) local PlRedHalf = Instance.new("Frame") PlRedHalf.Size = UDim2.new(1, 0, 0.5, 0) PlRedHalf.Position = UDim2.new(0, 0, 0.5, 0) PlRedHalf.BackgroundColor3 = RED_CLOSE PlRedHalf.BorderSizePixel = 0 PlRedHalf.ZIndex = 31 PlRedHalf.Parent = PlFlagBtn local PlLabel = Instance.new("TextLabel") PlLabel.Size = UDim2.new(1, 0, 1, 0) PlLabel.BackgroundTransparency = 1 PlLabel.Text = "PL" PlLabel.TextColor3 = INK_DARK PlLabel.TextSize = 11 PlLabel.Font = Enum.Font.GothamBlack PlLabel.ZIndex = 32 PlLabel.Parent = PlFlagBtn local EnFlagBtn = Instance.new("TextButton") EnFlagBtn.Size = UDim2.new(0, 120, 0, 24) EnFlagBtn.Position = UDim2.new(0, 138, 0.5, -12) EnFlagBtn.BackgroundColor3 = PURE_WHITE EnFlagBtn.BorderSizePixel = 0 EnFlagBtn.ClipsDescendants = true EnFlagBtn.Text = "" EnFlagBtn.AutoButtonColor = false EnFlagBtn.ZIndex = 31 EnFlagBtn.Parent = FlagsRow roundBox(EnFlagBtn, 5) local enStroke = borderBox(EnFlagBtn, INK_DARK, 1.5, 0) local EnCrossV = Instance.new("Frame") EnCrossV.Size = UDim2.new(0, 6, 1, 0) EnCrossV.Position = UDim2.new(0.5, -3, 0, 0) EnCrossV.BackgroundColor3 = RED_CLOSE EnCrossV.BorderSizePixel = 0 EnCrossV.ZIndex = 31 EnCrossV.Parent = EnFlagBtn local EnCrossH = Instance.new("Frame") EnCrossH.Size = UDim2.new(1, 0, 0, 6) EnCrossH.Position = UDim2.new(0, 0, 0.5, -3) EnCrossH.BackgroundColor3 = RED_CLOSE EnCrossH.BorderSizePixel = 0 EnCrossH.ZIndex = 31 EnCrossH.Parent = EnFlagBtn local EnLabel = Instance.new("TextLabel") EnLabel.Size = UDim2.new(0, 26, 0, 16) EnLabel.Position = UDim2.new(0.5, -13, 0.5, -8) EnLabel.BackgroundColor3 = PURE_WHITE EnLabel.BorderSizePixel = 0 EnLabel.Text = "EN" EnLabel.TextColor3 = INK_DARK EnLabel.TextSize = 10 EnLabel.Font = Enum.Font.GothamBlack EnLabel.ZIndex = 32 EnLabel.Parent = EnFlagBtn roundBox(EnLabel, 4) -- 3. Panel propozycji nowego skryptu (3 kreski) + wybór języka PL/EN local SUGGEST_OPEN_POS = UDim2.new(0, 70, 0.5, -143) local SUGGEST_CLOSED_POS = UDim2.new(0, 44, 0.5, -143) local SuggestPanel = Instance.new("Frame") SuggestPanel.Size = UDim2.new(0, 294, 0, 286) SuggestPanel.Position = SUGGEST_CLOSED_POS SuggestPanel.BackgroundColor3 = PURE_WHITE SuggestPanel.BorderSizePixel = 0 SuggestPanel.ClipsDescendants = true SuggestPanel.Visible = false SuggestPanel.Active = true SuggestPanel.ZIndex = 29 SuggestPanel.Parent = Gui roundBox(SuggestPanel, 12) borderBox(SuggestPanel, INK_DARK, 1.8, 0) local SugTop = Instance.new("Frame") SugTop.Size = UDim2.new(1, 0, 0, 30) SugTop.BackgroundColor3 = Color3.fromRGB(240, 244, 250) SugTop.BorderSizePixel = 0 SugTop.ZIndex = 30 SugTop.Parent = SuggestPanel local SugTitle = Instance.new("TextLabel") SugTitle.Size = UDim2.new(1, -76, 1, 0) SugTitle.Position = UDim2.new(0, 10, 0, 0) SugTitle.BackgroundTransparency = 1 SugTitle.Text = "NEW SCRIPT SUGGESTION" SugTitle.TextColor3 = INK_DARK SugTitle.TextSize = 11 SugTitle.Font = Enum.Font.GothamBlack SugTitle.TextXAlignment = Enum.TextXAlignment.Left SugTitle.TextTruncate = Enum.TextTruncate.AtEnd SugTitle.ZIndex = 31 SugTitle.Parent = SugTop local SugLangBtn = Instance.new("TextButton") SugLangBtn.Size = UDim2.new(0, 38, 0, 22) SugLangBtn.Position = UDim2.new(1, -69, 0.5, -11) SugLangBtn.BackgroundColor3 = INK_DARK SugLangBtn.BorderSizePixel = 0 SugLangBtn.Text = "EN" SugLangBtn.TextColor3 = PURE_WHITE SugLangBtn.TextSize = 10 SugLangBtn.Font = Enum.Font.GothamBlack SugLangBtn.ZIndex = 31 SugLangBtn.Parent = SugTop roundBox(SugLangBtn, 6) local SugClose = Instance.new("TextButton") SugClose.Size = UDim2.new(0, 24, 0, 24) SugClose.Position = UDim2.new(1, -27, 0.5, -12) SugClose.BackgroundColor3 = RED_CLOSE SugClose.BorderSizePixel = 0 SugClose.Text = "X" SugClose.TextColor3 = PURE_WHITE SugClose.TextSize = 11 SugClose.Font = Enum.Font.GothamBold SugClose.ZIndex = 31 SugClose.Parent = SugTop roundBox(SugClose, 6) local function makeSugInput(yPos, heightPx, placeholderTxt, defaultTxt) local box = Instance.new("TextBox") box.Size = UDim2.new(1, -20, 0, heightPx) box.Position = UDim2.new(0, 10, 0, yPos) box.BackgroundColor3 = LIGHT_FILL box.BorderSizePixel = 0 box.ClipsDescendants = true box.MultiLine = (heightPx > 26) box.TextWrapped = true box.ClearTextOnFocus = false box.TextXAlignment = Enum.TextXAlignment.Left box.TextYAlignment = (heightPx > 26) and Enum.TextYAlignment.Top or Enum.TextYAlignment.Center box.PlaceholderText = placeholderTxt box.PlaceholderColor3 = Color3.fromRGB(115, 126, 145) box.Text = defaultTxt or "" box.TextColor3 = INK_DARK box.TextSize = 10 box.Font = Enum.Font.GothamMedium box.ZIndex = 31 box.Parent = SuggestPanel roundBox(box, 7) borderBox(box, LIGHT_LINE, 1, 0) return box end local SugGameBox = makeSugInput(36, 24, "1. Which game is this script for?", "1. Game: ") local SugFeatBox = makeSugInput(64, 34, "2. What features should it have?", "2. Features: ") local SugLookBox = makeSugInput(102, 26, "3. What UI / look should it have?", "3. UI / Look: ") local SugKeyBtn = Instance.new("TextButton") SugKeyBtn.Size = UDim2.new(1, -20, 0, 24) SugKeyBtn.Position = UDim2.new(0, 10, 0, 132) SugKeyBtn.BackgroundColor3 = LIGHT_FILL SugKeyBtn.BorderSizePixel = 0 SugKeyBtn.Text = "4. Key system: Keyless (No Key) [Tap to switch]" SugKeyBtn.TextColor3 = INK_DARK SugKeyBtn.TextSize = 10 SugKeyBtn.Font = Enum.Font.GothamBold SugKeyBtn.ZIndex = 31 SugKeyBtn.Parent = SuggestPanel roundBox(SugKeyBtn, 7) borderBox(SugKeyBtn, LIGHT_LINE, 1, 0) local SugNoteBox = makeSugInput(160, 56, "Extra note / suggestion details...", "Note: ") local SugStatusLbl = Instance.new("TextLabel") SugStatusLbl.Size = UDim2.new(1, -20, 0, 16) SugStatusLbl.Position = UDim2.new(0, 10, 0, 220) SugStatusLbl.BackgroundTransparency = 1 SugStatusLbl.Text = "Empty suggestions are blocked" SugStatusLbl.TextColor3 = Color3.fromRGB(75, 86, 108) SugStatusLbl.TextSize = 9 SugStatusLbl.Font = Enum.Font.GothamBold SugStatusLbl.TextXAlignment = Enum.TextXAlignment.Left SugStatusLbl.TextTruncate = Enum.TextTruncate.AtEnd SugStatusLbl.ZIndex = 31 SugStatusLbl.Parent = SuggestPanel local SugSendBtn = Instance.new("TextButton") SugSendBtn.Size = UDim2.new(1, -20, 0, 32) SugSendBtn.Position = UDim2.new(0, 10, 1, -40) SugSendBtn.BackgroundColor3 = INK_DARK SugSendBtn.BorderSizePixel = 0 SugSendBtn.Text = "SAVE TO MENU & COPY" SugSendBtn.TextColor3 = PURE_WHITE SugSendBtn.TextSize = 11 SugSendBtn.Font = Enum.Font.GothamBlack SugSendBtn.ZIndex = 31 SugSendBtn.Parent = SuggestPanel roundBox(SugSendBtn, 8) -- 4. Główne okno executora + wybór języka PL/EN local MAIN_OPEN_POS = UDim2.new(0.5, -245, 0.5, -123) local MAIN_CLOSED_POS = UDim2.new(0.5, -245, 0.5, -96) local Main = Instance.new("Frame") Main.Size = UDim2.new(0, 356, 0, 246) Main.Position = MAIN_OPEN_POS Main.BackgroundColor3 = DARK_PANEL Main.BorderSizePixel = 0 Main.ClipsDescendants = true Main.Active = true Main.ZIndex = 10 Main.Parent = Gui roundBox(Main, 12) borderBox(Main, Color3.fromRGB(82, 104, 148), 1.5, 0.1) local Bar = Instance.new("Frame") Bar.Size = UDim2.new(1, 0, 0, 34) Bar.BackgroundColor3 = HEADER_PANEL Bar.BorderSizePixel = 0 Bar.ClipsDescendants = true Bar.Active = true Bar.ZIndex = 12 Bar.Parent = Main local barGrad = Instance.new("UIGradient") barGrad.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(36, 48, 74)), ColorSequenceKeypoint.new(1, Color3.fromRGB(26, 31, 44)) }) barGrad.Rotation = 90 barGrad.Parent = Bar local accentDot = Instance.new("Frame") accentDot.Size = UDim2.new(0, 8, 0, 8) accentDot.Position = UDim2.new(0, 12, 0.5, -4) accentDot.BackgroundColor3 = CYAN_DOT accentDot.BorderSizePixel = 0 accentDot.ZIndex = 13 accentDot.Parent = Bar roundBox(accentDot, 99) local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, -172, 1, 0) Title.Position = UDim2.new(0, 26, 0, 0) Title.BackgroundTransparency = 1 Title.Text = "KM EXECUTOR" Title.TextColor3 = TXT_LIGHT Title.TextSize = 13 Title.Font = Enum.Font.GothamBlack Title.TextXAlignment = Enum.TextXAlignment.Left Title.TextTruncate = Enum.TextTruncate.AtEnd Title.ZIndex = 13 Title.Parent = Bar local ExecLangBtn = Instance.new("TextButton") ExecLangBtn.Size = UDim2.new(0, 34, 0, 24) ExecLangBtn.Position = UDim2.new(1, -134, 0.5, -12) ExecLangBtn.BackgroundColor3 = HEADER_PANEL ExecLangBtn.BorderSizePixel = 0 ExecLangBtn.Text = "EN" ExecLangBtn.TextColor3 = PURE_WHITE ExecLangBtn.TextSize = 10 ExecLangBtn.Font = Enum.Font.GothamBlack ExecLangBtn.ZIndex = 14 ExecLangBtn.Parent = Bar roundBox(ExecLangBtn, 6) borderBox(ExecLangBtn, CYAN_DOT, 1.2, 0) local PlayerDrawerBtn = Instance.new("TextButton") PlayerDrawerBtn.Size = UDim2.new(0, 62, 0, 24) PlayerDrawerBtn.Position = UDim2.new(1, -96, 0.5, -12) PlayerDrawerBtn.BackgroundColor3 = CARD_GRAY PlayerDrawerBtn.BorderSizePixel = 0 PlayerDrawerBtn.Text = "PLAYER" PlayerDrawerBtn.TextColor3 = PURE_WHITE PlayerDrawerBtn.TextSize = 10 PlayerDrawerBtn.Font = Enum.Font.GothamBlack PlayerDrawerBtn.ZIndex = 14 PlayerDrawerBtn.Parent = Bar roundBox(PlayerDrawerBtn, 6) borderBox(PlayerDrawerBtn, PURE_WHITE, 1.2, 0) local CloseBtn = Instance.new("TextButton") CloseBtn.Size = UDim2.new(0, 26, 0, 26) CloseBtn.Position = UDim2.new(1, -30, 0.5, -13) CloseBtn.BackgroundColor3 = RED_CLOSE CloseBtn.BorderSizePixel = 0 CloseBtn.Text = "X" CloseBtn.TextColor3 = TXT_LIGHT CloseBtn.TextSize = 12 CloseBtn.Font = Enum.Font.GothamBold CloseBtn.ZIndex = 14 CloseBtn.Parent = Bar roundBox(CloseBtn, 7) -- 5. Panel zapisanych propozycji obok local drawerOpen = true local DRAWER_OPEN_OFFSET = 118 local PlayersPanel = Instance.new("Frame") PlayersPanel.Size = UDim2.new(0, 214, 0, 246) PlayersPanel.Position = UDim2.new(0.5, DRAWER_OPEN_OFFSET, 0.5, -123) PlayersPanel.BackgroundColor3 = DARK_PANEL PlayersPanel.BorderSizePixel = 0 PlayersPanel.ClipsDescendants = true PlayersPanel.Visible = true PlayersPanel.Active = true PlayersPanel.ZIndex = 11 PlayersPanel.Parent = Gui roundBox(PlayersPanel, 12) borderBox(PlayersPanel, PURE_WHITE, 1.5, 0) local PlayersHeader = Instance.new("Frame") PlayersHeader.Size = UDim2.new(1, 0, 0, 34) PlayersHeader.BackgroundColor3 = HEADER_PANEL PlayersHeader.BorderSizePixel = 0 PlayersHeader.ZIndex = 12 PlayersHeader.Parent = PlayersPanel local PlayersTitle = Instance.new("TextLabel") PlayersTitle.Size = UDim2.new(1, -16, 1, 0) PlayersTitle.Position = UDim2.new(0, 10, 0, 0) PlayersTitle.BackgroundTransparency = 1 PlayersTitle.Text = "SAVED SUGGESTIONS" PlayersTitle.TextColor3 = PURE_WHITE PlayersTitle.TextSize = 11 PlayersTitle.Font = Enum.Font.GothamBlack PlayersTitle.TextXAlignment = Enum.TextXAlignment.Left PlayersTitle.TextTruncate = Enum.TextTruncate.AtEnd PlayersTitle.ZIndex = 13 PlayersTitle.Parent = PlayersHeader local PlayersScroll = Instance.new("ScrollingFrame") PlayersScroll.Size = UDim2.new(1, -14, 1, -44) PlayersScroll.Position = UDim2.new(0, 7, 0, 39) PlayersScroll.BackgroundTransparency = 1 PlayersScroll.BorderSizePixel = 0 PlayersScroll.ScrollBarThickness = 4 PlayersScroll.ScrollBarImageColor3 = PURE_WHITE PlayersScroll.CanvasSize = UDim2.new(0, 0, 0, 0) PlayersScroll.ZIndex = 12 PlayersScroll.Parent = PlayersPanel -- 6. Rozwinięty profil z dłuższą notatką i suwakiem local MODAL_OPEN_POS = UDim2.new(0.5, -176, 0.5, -122) local MODAL_CLOSED_POS = UDim2.new(0.5, -176, 0.5, -92) local ExpandedPlayerCard = Instance.new("Frame") ExpandedPlayerCard.Size = UDim2.new(0, 352, 0, 244) ExpandedPlayerCard.Position = MODAL_CLOSED_POS ExpandedPlayerCard.BackgroundColor3 = CARD_GRAY ExpandedPlayerCard.BorderSizePixel = 0 ExpandedPlayerCard.ClipsDescendants = true ExpandedPlayerCard.Visible = false ExpandedPlayerCard.Active = true ExpandedPlayerCard.ZIndex = 45 ExpandedPlayerCard.Parent = Gui roundBox(ExpandedPlayerCard, 14) local expStroke = borderBox(ExpandedPlayerCard, PURE_WHITE, 2, 0) local ExpTop = Instance.new("Frame") ExpTop.Size = UDim2.new(1, 0, 0, 34) ExpTop.BackgroundColor3 = INNER_GRAY ExpTop.BorderSizePixel = 0 ExpTop.ZIndex = 46 ExpTop.Parent = ExpandedPlayerCard local ExpTitle = Instance.new("TextLabel") ExpTitle.Size = UDim2.new(1, -42, 1, 0) ExpTitle.Position = UDim2.new(0, 12, 0, 0) ExpTitle.BackgroundTransparency = 1 ExpTitle.Text = "PROFILE" ExpTitle.TextColor3 = PURE_WHITE ExpTitle.TextSize = 12 ExpTitle.Font = Enum.Font.GothamBlack ExpTitle.TextXAlignment = Enum.TextXAlignment.Left ExpTitle.ZIndex = 47 ExpTitle.Parent = ExpTop local ExpCloseBtn = Instance.new("TextButton") ExpCloseBtn.Size = UDim2.new(0, 24, 0, 24) ExpCloseBtn.Position = UDim2.new(1, -29, 0.5, -12) ExpCloseBtn.BackgroundColor3 = RED_CLOSE ExpCloseBtn.BorderSizePixel = 0 ExpCloseBtn.Text = "X" ExpCloseBtn.TextColor3 = PURE_WHITE ExpCloseBtn.TextSize = 11 ExpCloseBtn.Font = Enum.Font.GothamBold ExpCloseBtn.ZIndex = 47 ExpCloseBtn.Parent = ExpTop roundBox(ExpCloseBtn, 6) local ExpAvatar = Instance.new("ImageLabel") ExpAvatar.Size = UDim2.new(0, 62, 0, 62) ExpAvatar.Position = UDim2.new(0, 14, 0, 42) ExpAvatar.BackgroundColor3 = INNER_GRAY ExpAvatar.BorderSizePixel = 0 ExpAvatar.Image = "" ExpAvatar.ZIndex = 47 ExpAvatar.Parent = ExpandedPlayerCard roundBox(ExpAvatar, 10) local expAvStroke = borderBox(ExpAvatar, PURE_WHITE, 2.2, 0) local ExpNickLbl = Instance.new("TextLabel") ExpNickLbl.Size = UDim2.new(1, -92, 0, 26) ExpNickLbl.Position = UDim2.new(0, 84, 0, 52) ExpNickLbl.BackgroundTransparency = 1 ExpNickLbl.Text = "Player" ExpNickLbl.TextColor3 = PURE_WHITE ExpNickLbl.TextSize = 16 ExpNickLbl.Font = Enum.Font.GothamBlack ExpNickLbl.TextXAlignment = Enum.TextXAlignment.Left ExpNickLbl.TextTruncate = Enum.TextTruncate.AtEnd ExpNickLbl.ZIndex = 47 ExpNickLbl.Parent = ExpandedPlayerCard -- Suwak dla długich notatek w rozwiniętym profilu local ExpNoteScroll = Instance.new("ScrollingFrame") ExpNoteScroll.Size = UDim2.new(1, -28, 0, 114) ExpNoteScroll.Position = UDim2.new(0, 14, 0, 114) ExpNoteScroll.BackgroundColor3 = INNER_GRAY ExpNoteScroll.BorderSizePixel = 0 ExpNoteScroll.ScrollBarThickness = 5 ExpNoteScroll.ScrollBarImageColor3 = PURE_WHITE ExpNoteScroll.CanvasSize = UDim2.new(0, 0, 0, 180) ExpNoteScroll.ZIndex = 47 ExpNoteScroll.Parent = ExpandedPlayerCard roundBox(ExpNoteScroll, 8) borderBox(ExpNoteScroll, PURE_WHITE, 1.2, 0) local ExpSugBox = Instance.new("TextLabel") ExpSugBox.Size = UDim2.new(1, -18, 0, 168) ExpSugBox.Position = UDim2.new(0, 8, 0, 6) ExpSugBox.BackgroundTransparency = 1 ExpSugBox.BorderSizePixel = 0 ExpSugBox.Text = "" ExpSugBox.TextColor3 = PURE_WHITE ExpSugBox.TextSize = 11 ExpSugBox.Font = Enum.Font.GothamBold ExpSugBox.TextWrapped = true ExpSugBox.TextXAlignment = Enum.TextXAlignment.Left ExpSugBox.TextYAlignment = Enum.TextYAlignment.Top ExpSugBox.ZIndex = 48 ExpSugBox.Parent = ExpNoteScroll local function fitNoteScroll(contentText) local clean = tostring(contentText or "") local lineEstimate = math.ceil(#clean / 44) + 3 local neededH = math.max(114, (lineEstimate * 15) + 14) ExpSugBox.Size = UDim2.new(1, -18, 0, neededH - 10) ExpNoteScroll.CanvasSize = UDim2.new(0, 0, 0, neededH) ExpNoteScroll.CanvasPosition = Vector2.new(0, 0) end local openInfo = TweenInfo.new(0.22, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local closeInfo = TweenInfo.new(0.15, Enum.EasingStyle.Quad, Enum.EasingDirection.In) local function setMainVisibleAnimated(shouldShow) if shouldShow then Main.Visible = true Main.Position = MAIN_CLOSED_POS playAnim(Main, openInfo, { Position = MAIN_OPEN_POS }) if drawerOpen then PlayersPanel.Visible = true PlayersPanel.Position = UDim2.new( Main.Position.X.Scale, Main.Position.X.Offset + Main.Size.X.Offset + 6, Main.Position.Y.Scale, Main.Position.Y.Offset ) end else playAnim(Main, closeInfo, { Position = MAIN_CLOSED_POS }) PlayersPanel.Visible = false Main.Visible = false end end local function setDrawerVisibleAnimated(shouldShow) if shouldShow and Main.Visible then PlayersPanel.Visible = true local targetX = Main.Position.X.Offset + Main.Size.X.Offset + 6 PlayersPanel.Position = UDim2.new(Main.Position.X.Scale, targetX - 24, Main.Position.Y.Scale, Main.Position.Y.Offset) playAnim(PlayersPanel, openInfo, { Position = UDim2.new(Main.Position.X.Scale, targetX, Main.Position.Y.Scale, Main.Position.Y.Offset) }) else PlayersPanel.Visible = false end end local function setSidePanelAnimated(panel, openPos, closedPos, shouldShow) if shouldShow then panel.Visible = true panel.Position = closedPos playAnim(panel, openInfo, { Position = openPos }) else panel.Visible = false panel.Position = closedPos end end local CodeHolder = Instance.new("Frame") CodeHolder.Size = UDim2.new(1, -20, 1, -114) CodeHolder.Position = UDim2.new(0, 10, 0, 44) CodeHolder.BackgroundColor3 = EDITOR_BG CodeHolder.BorderSizePixel = 0 CodeHolder.ClipsDescendants = true CodeHolder.ZIndex = 12 CodeHolder.Parent = Main roundBox(CodeHolder, 9) borderBox(CodeHolder, Color3.fromRGB(62, 76, 108), 1, 0.2) local CodeBox = Instance.new("TextBox") CodeBox.Size = UDim2.new(1, -14, 1, -10) CodeBox.Position = UDim2.new(0, 7, 0, 5) CodeBox.BackgroundTransparency = 1 CodeBox.BorderSizePixel = 0 CodeBox.ClipsDescendants = true CodeBox.MultiLine = true CodeBox.TextWrapped = true CodeBox.ClearTextOnFocus = false CodeBox.TextXAlignment = Enum.TextXAlignment.Left CodeBox.TextYAlignment = Enum.TextYAlignment.Top CodeBox.Text = "-- Paste Lua script here\nprint(\"KM Executor ready\")" CodeBox.PlaceholderText = "-- Paste Lua code..." CodeBox.PlaceholderColor3 = TXT_DIM CodeBox.TextColor3 = TXT_LIGHT CodeBox.TextSize = 11 CodeBox.Font = Enum.Font.Code CodeBox.ZIndex = 13 CodeBox.Parent = CodeHolder local StatusBar = Instance.new("Frame") StatusBar.Size = UDim2.new(1, -20, 0, 22) StatusBar.Position = UDim2.new(0, 10, 1, -64) StatusBar.BackgroundColor3 = HEADER_PANEL StatusBar.BorderSizePixel = 0 StatusBar.ClipsDescendants = true StatusBar.ZIndex = 12 StatusBar.Parent = Main roundBox(StatusBar, 7) local StatusLbl = Instance.new("TextLabel") StatusLbl.Size = UDim2.new(1, -12, 1, 0) StatusLbl.Position = UDim2.new(0, 6, 0, 0) StatusLbl.BackgroundTransparency = 1 StatusLbl.Text = "Status: Ready" StatusLbl.TextColor3 = TXT_DIM StatusLbl.TextSize = 10 StatusLbl.Font = Enum.Font.GothamMedium StatusLbl.TextXAlignment = Enum.TextXAlignment.Left StatusLbl.TextTruncate = Enum.TextTruncate.AtEnd StatusLbl.ZIndex = 13 StatusLbl.Parent = StatusBar local ExecBtn = Instance.new("TextButton") ExecBtn.Size = UDim2.new(0.46, -12, 0, 32) ExecBtn.Position = UDim2.new(0, 10, 1, -38) ExecBtn.BackgroundColor3 = GREEN_EXEC ExecBtn.BorderSizePixel = 0 ExecBtn.Text = "EXECUTE" ExecBtn.TextColor3 = Color3.fromRGB(12, 22, 16) ExecBtn.TextSize = 12 ExecBtn.Font = Enum.Font.GothamBlack ExecBtn.ZIndex = 13 ExecBtn.Parent = Main roundBox(ExecBtn, 8) local PasteBtn = Instance.new("TextButton") PasteBtn.Size = UDim2.new(0.27, -4, 0, 32) PasteBtn.Position = UDim2.new(0.46, 0, 1, -38) PasteBtn.BackgroundColor3 = HEADER_PANEL PasteBtn.BorderSizePixel = 0 PasteBtn.Text = "PASTE" PasteBtn.TextColor3 = TXT_LIGHT PasteBtn.TextSize = 11 PasteBtn.Font = Enum.Font.GothamBold PasteBtn.ZIndex = 13 PasteBtn.Parent = Main roundBox(PasteBtn, 8) borderBox(PasteBtn, Color3.fromRGB(82, 100, 138), 1, 0.25) local ClearBtn = Instance.new("TextButton") ClearBtn.Size = UDim2.new(0.27, -10, 0, 32) ClearBtn.Position = UDim2.new(0.73, 2, 1, -38) ClearBtn.BackgroundColor3 = HEADER_PANEL ClearBtn.BorderSizePixel = 0 ClearBtn.Text = "CLEAR" ClearBtn.TextColor3 = TXT_LIGHT ClearBtn.TextSize = 11 ClearBtn.Font = Enum.Font.GothamBold ClearBtn.ZIndex = 13 ClearBtn.Parent = Main roundBox(ClearBtn, 8) borderBox(ClearBtn, Color3.fromRGB(82, 100, 138), 1, 0.25) local function formatExecStatus(key, extra) local errStr = tostring(extra or "") if key == "no_code" then return useEnglish and "Status: No code to run" or "Status: Brak kodu do uruchomienia" elseif key == "no_loadstring" then return useEnglish and "Status: loadstring unavailable" or "Status: Brak funkcji loadstring" elseif key == "syntax_err" then return (useEnglish and "Syntax error: " or "Błąd składni: ") .. errStr elseif key == "ran" then return useEnglish and "Status: Script executed" or "Status: Uruchomiono skrypt" elseif key == "runtime_err" then return (useEnglish and "Runtime error: " or "Błąd działania: ") .. errStr elseif key == "pasted" then return useEnglish and "Status: Pasted from clipboard" or "Status: Wklejono ze schowka" elseif key == "paste_hint" then return useEnglish and "Status: Paste in box (touch/Ctrl+V)" or "Status: Wklej w polu (dotyk/Ctrl+V)" elseif key == "cleared" then return useEnglish and "Status: Cleared" or "Status: Wyczyszczono" end return useEnglish and "Status: Ready" or "Status: Gotowy" end local function setStatus(key, col, extra) lastExecStatusKey = key lastExecExtra = tostring(extra or "") StatusLbl.Text = formatExecStatus(lastExecStatusKey, lastExecExtra) StatusLbl.TextColor3 = col or TXT_DIM end local function refreshSugKeyText() if useEnglish then SugKeyBtn.Text = keyModeKeyless and "4. Key system: Keyless (No Key) [Tap to switch]" or "4. Key system: With Key System [Tap to switch]" else SugKeyBtn.Text = keyModeKeyless and "4. Klucz: Bez klucza (Keyless) [Kliknij aby zmienić]" or "4. Klucz: Z systemem kluczy [Kliknij aby zmienić]" end end local function refreshSugStatusText() if lastSugStatusKey == "blocked_empty" then SugStatusLbl.Text = useEnglish and "Blocked: enter game and features/note first!" or "Zablokowano: wpisz grę oraz funkcje lub notatkę!" elseif lastSugStatusKey == "saved_ok" then SugStatusLbl.Text = useEnglish and "Saved permanently to menu!" or "Zapisano na stałe w menu!" else SugStatusLbl.Text = useEnglish and "Empty suggestions are blocked" or "Puste propozycje są zablokowane" end end applyAllLanguageTexts = function() local badge = useEnglish and "EN" or "PL" ExecLangBtn.Text = badge SugLangBtn.Text = badge enStroke.Thickness = useEnglish and 2.5 or 1.2 plStroke.Thickness = (not useEnglish) and 2.5 or 1.2 enStroke.Color = useEnglish and CYAN_DOT or INK_DARK plStroke.Color = (not useEnglish) and CYAN_DOT or INK_DARK -- Executor i panel obok Title.Text = useEnglish and "KM EXECUTOR" or "KM EXECUTOR (PL)" PlayerDrawerBtn.Text = useEnglish and "PLAYER" or "LISTA" PlayersTitle.Text = useEnglish and "SAVED SUGGESTIONS" or "ZAPISANE PROPOZYCJE" ExecBtn.Text = useEnglish and "EXECUTE" or "URUCHOM" PasteBtn.Text = useEnglish and "PASTE" or "WKLEJ" ClearBtn.Text = useEnglish and "CLEAR" or "WYCZYŚĆ" CodeBox.PlaceholderText = useEnglish and "-- Paste Lua code..." or "-- Wklej kod Lua..." StatusLbl.Text = formatExecStatus(lastExecStatusKey, lastExecExtra) -- Panel 3 kresek (propozycje skryptu) SugTitle.Text = useEnglish and "NEW SCRIPT SUGGESTION" or "NOWA PROPOZYCJA" SugGameBox.PlaceholderText = useEnglish and "1. Which game is this script for?" or "1. Do jakiej gry ma być skrypt?" SugFeatBox.PlaceholderText = useEnglish and "2. What features should it have?" or "2. Jakie ma mieć funkcje?" SugLookBox.PlaceholderText = useEnglish and "3. What UI / look should it have?" or "3. Jaki ma mieć wygląd / UI?" SugNoteBox.PlaceholderText = useEnglish and "Extra note / suggestion details..." or "Dodatkowa notatka lub szczegóły..." SugSendBtn.Text = useEnglish and "SAVE TO MENU & COPY" or "ZAPISZ W MENU I KOPIUJ" refreshSugKeyText() refreshSugStatusText() -- Panel SETTINGS if useEnglish then SetTitle.Text = "SETTINGS (EN)" CreditsBody.Text = "Scriptblox: KM studios\nProgramming: Kami_ytt\nTesting: ercia2008\nDesign: Noymless" else SetTitle.Text = "SETTINGS (PL)" CreditsBody.Text = "Scriptblox: KM studios\nProgramowanie: Kami_ytt\nTestowanie: ercia2008\nProjektowanie: Noymless" end ExpTitle.Text = useEnglish and "PROFILE" or "PROFIL" if refreshExpandedText then refreshExpandedText() end end refreshExpandedText = function() if not activeModalData or not ExpandedPlayerCard.Visible then return end if activeModalData.isSuggestion then local head = useEnglish and "Suggestion:\n\n" or "Propozycja:\n\n" local fullText = head .. tostring(activeModalData.suggestionText or "") ExpSugBox.Text = fullText fitNoteScroll(fullText) return end local roleStr = useEnglish and activeModalData.roleEn or activeModalData.rolePl local noteStr = useEnglish and activeModalData.shortNoteEn or activeModalData.shortNotePl local combined = tostring(roleStr or "") .. "\n\n" .. tostring(noteStr or "") ExpSugBox.Text = combined fitNoteScroll(combined) end openExpandedTeamMember = function(prof) activeModalData = { isSuggestion = false, name = prof.name, avatarName = prof.avatarName, userId = prof.userId, roleEn = prof.roleEn, rolePl = prof.rolePl, shortNoteEn = prof.shortNoteEn, shortNotePl = prof.shortNotePl } local col = prof.borderColor or PURE_WHITE expStroke.Color = col expAvStroke.Color = col ExpNickLbl.Text = prof.name applyHeadshot(ExpAvatar, prof) DimBackdrop.Visible = true DimBackdrop.BackgroundTransparency = 1 playAnim(DimBackdrop, openInfo, { BackgroundTransparency = 0.52 }) ExpandedPlayerCard.Visible = true ExpandedPlayerCard.Position = MODAL_CLOSED_POS playAnim(ExpandedPlayerCard, openInfo, { Position = MODAL_OPEN_POS }) refreshExpandedText() end local function openExpandedEntry(entry) activeModalData = { isSuggestion = true, name = entry.name, userId = entry.userId, suggestionText = entry.text } expStroke.Color = PURE_WHITE expAvStroke.Color = PURE_WHITE ExpNickLbl.Text = entry.name applyHeadshot(ExpAvatar, { userId = entry.userId, name = entry.name }) DimBackdrop.Visible = true DimBackdrop.BackgroundTransparency = 1 playAnim(DimBackdrop, openInfo, { BackgroundTransparency = 0.52 }) ExpandedPlayerCard.Visible = true ExpandedPlayerCard.Position = MODAL_CLOSED_POS playAnim(ExpandedPlayerCard, openInfo, { Position = MODAL_OPEN_POS }) refreshExpandedText() end local function closeExpandedPlayer() activeModalData = nil ExpandedPlayerCard.Visible = false ExpandedPlayerCard.Position = MODAL_CLOSED_POS DimBackdrop.Visible = false DimBackdrop.BackgroundTransparency = 1 end ExpCloseBtn.Activated:Connect(closeExpandedPlayer) DimBackdrop.Activated:Connect(closeExpandedPlayer) PlFlagBtn.Activated:Connect(function() useEnglish = false applyAllLanguageTexts() end) EnFlagBtn.Activated:Connect(function() useEnglish = true applyAllLanguageTexts() end) SugLangBtn.Activated:Connect(function() useEnglish = not useEnglish applyAllLanguageTexts() end) ExecLangBtn.Activated:Connect(function() useEnglish = not useEnglish applyAllLanguageTexts() end) SugKeyBtn.Activated:Connect(function() keyModeKeyless = not keyModeKeyless refreshSugKeyText() end) SugSendBtn.Activated:Connect(function() local gameVal = cleanInput(SugGameBox.Text, "1. Game:") local featVal = cleanInput(SugFeatBox.Text, "2. Features:") local lookVal = cleanInput(SugLookBox.Text, "3. UI / Look:") local noteVal = cleanInput(SugNoteBox.Text, "Note:") local okGame = hasRealInput(SugGameBox.Text, "1. Game:") local okDetails = hasRealInput(SugFeatBox.Text, "2. Features:") or hasRealInput(SugLookBox.Text, "3. UI / Look:") or hasRealInput(SugNoteBox.Text, "Note:") if not okGame or not okDetails then lastSugStatusKey = "blocked_empty" refreshSugStatusText() SugStatusLbl.TextColor3 = RED_CLOSE SugSendBtn.Text = useEnglish and "EMPTY BLOCKED!" or "PUSTE ZABLOKOWANE!" task.delay(1.6, function() if SugSendBtn and SugSendBtn.Parent then SugSendBtn.Text = useEnglish and "SAVE TO MENU & COPY" or "ZAPISZ W MENU I KOPIUJ" end end) return end local keyLabel = keyModeKeyless and "Keyless (No Key)" or "With Key" local lineParts = { "Game: " .. gameVal } if #featVal > 0 then table.insert(lineParts, "Features: " .. featVal) end if #lookVal > 0 then table.insert(lineParts, "UI: " .. lookVal) end table.insert(lineParts, "Key: " .. keyLabel) if #noteVal > 0 then table.insert(lineParts, "Note: " .. noteVal) end local compactText = table.concat(lineParts, " | ") local uid = LocalPlayer and LocalPlayer.UserId or 1 local pName = LocalPlayer and LocalPlayer.Name or "Player" local savedItem = upsertSuggestion(uid, pName, compactText) writeSuggestionsToDisk() local fullReport = table.concat({ "=== KM STUDIOS SCRIPT SUGGESTION ===", "Player: " .. pName, "1. Game: " .. gameVal, "2. Features: " .. (#featVal > 0 and featVal or "-"), "3. UI / Look: " .. (#lookVal > 0 and lookVal or "-"), "4. Key system: " .. keyLabel, "Note: " .. (#noteVal > 0 and noteVal or "-") }, "\n") if type(setclipboard) == "function" then pcall(function() setclipboard(fullReport) end) end if rebuildSuggestionCards then rebuildSuggestionCards() end if activeModalData and activeModalData.isSuggestion and savedItem and activeModalData.userId == savedItem.userId then activeModalData.suggestionText = compactText refreshExpandedText() end lastSugStatusKey = "saved_ok" refreshSugStatusText() SugStatusLbl.TextColor3 = Color3.fromRGB(20, 145, 72) SugSendBtn.Text = useEnglish and "SAVED TO MENU!" or "ZAPISANO W MENU!" task.delay(1.8, function() if SugSendBtn and SugSendBtn.Parent then SugSendBtn.Text = useEnglish and "SAVE TO MENU & COPY" or "ZAPISZ W MENU I KOPIUJ" end end) end) local cardNodes = {} rebuildSuggestionCards = function() for _, node in ipairs(cardNodes) do pcall(function() node:Destroy() end) end cardNodes = {} local rowH = 66 local gap = 7 local totalH = (#savedSuggestions > 0) and (#savedSuggestions * (rowH + gap) - gap) or 0 PlayersScroll.CanvasSize = UDim2.new(0, 0, 0, totalH) for idx, entry in ipairs(savedSuggestions) do local yPos = (idx - 1) * (rowH + gap) local sqCard = Instance.new("TextButton") sqCard.Size = UDim2.new(1, -6, 0, rowH) sqCard.Position = UDim2.new(0, 2, 0, yPos) sqCard.BackgroundColor3 = CARD_GRAY sqCard.BorderSizePixel = 0 sqCard.ClipsDescendants = true sqCard.Text = "" sqCard.AutoButtonColor = false sqCard.ZIndex = 13 sqCard.Parent = PlayersScroll roundBox(sqCard, 8) borderBox(sqCard, PURE_WHITE, 1.5, 0) table.insert(cardNodes, sqCard) local avImg = Instance.new("ImageLabel") avImg.Size = UDim2.new(0, 44, 0, 44) avImg.Position = UDim2.new(0, 7, 0.5, -22) avImg.BackgroundColor3 = INNER_GRAY avImg.BorderSizePixel = 0 avImg.Image = "" avImg.ZIndex = 14 avImg.Parent = sqCard roundBox(avImg, 6) borderBox(avImg, PURE_WHITE, 1.2, 0) applyHeadshot(avImg, { userId = entry.userId, name = entry.name }) local nickLbl = Instance.new("TextLabel") nickLbl.Size = UDim2.new(1, -62, 0, 16) nickLbl.Position = UDim2.new(0, 56, 0, 6) nickLbl.BackgroundTransparency = 1 nickLbl.Text = entry.name nickLbl.TextColor3 = PURE_WHITE nickLbl.TextSize = 11 nickLbl.Font = Enum.Font.GothamBlack nickLbl.TextXAlignment = Enum.TextXAlignment.Left nickLbl.TextTruncate = Enum.TextTruncate.AtEnd nickLbl.ZIndex = 14 nickLbl.Parent = sqCard local sugLbl = Instance.new("TextLabel") sugLbl.Size = UDim2.new(1, -62, 0, 36) sugLbl.Position = UDim2.new(0, 56, 0, 23) sugLbl.BackgroundTransparency = 1 sugLbl.Text = entry.text sugLbl.TextColor3 = Color3.fromRGB(242, 245, 250) sugLbl.TextSize = 9 sugLbl.Font = Enum.Font.GothamMedium sugLbl.TextWrapped = true sugLbl.TextXAlignment = Enum.TextXAlignment.Left sugLbl.TextYAlignment = Enum.TextYAlignment.Top sugLbl.ZIndex = 14 sugLbl.Parent = sqCard sqCard.Activated:Connect(function() openExpandedEntry(entry) end) end end rebuildSuggestionCards() -- Przesuwanie głównego okna razem z panelem zapisanych propozycji do local isDragging = false local dragOrigin = Vector2.zero local mainStart = UDim2.new() local drawerStart = UDim2.new() Bar.InputBegan:Connect(function(inp) if inp.UserInputType == Enum.UserInputType.MouseButton1 or inp.UserInputType == Enum.UserInputType.Touch then isDragging = true dragOrigin = Vector2.new(inp.Position.X, inp.Position.Y) mainStart = Main.Position drawerStart = PlayersPanel.Position end end) UserInputService.InputChanged:Connect(function(inp) if isDragging and (inp.UserInputType == Enum.UserInputType.MouseMovement or inp.UserInputType == Enum.UserInputType.Touch) then local moveBy = Vector2.new(inp.Position.X, inp.Position.Y) - dragOrigin Main.Position = UDim2.new( mainStart.X.Scale, mainStart.X.Offset + moveBy.X, mainStart.Y.Scale, mainStart.Y.Offset + moveBy.Y ) PlayersPanel.Position = UDim2.new( drawerStart.X.Scale, drawerStart.X.Offset + moveBy.X, drawerStart.Y.Scale, drawerStart.Y.Offset + moveBy.Y ) end end) UserInputService.InputEnded:Connect(function(inp) if inp.UserInputType == Enum.UserInputType.MouseButton1 or inp.UserInputType == Enum.UserInputType.Touch then isDragging = false end end) end ExecBtn.Activated:Connect(function() local src = CodeBox.Text or "" if #src:match("%S") == nil then setStatus("no_code", RED_CLOSE) return end if type(loadstring) ~= "function" then setStatus("no_loadstring", RED_CLOSE) return end local fn, err = loadstring(src) if not fn then setStatus("syntax_err", RED_CLOSE, err) return end setStatus("ran", GREEN_EXEC) task.spawn(function() local ok, runErr = pcall(fn) if not ok and StatusLbl and StatusLbl.Parent then setStatus("runtime_err", RED_CLOSE, runErr) end end) end) PasteBtn.Activated:Connect(function() if type(getclipboard) == "function" then local ok, clip = pcall(getclipboard) if ok and type(clip) == "string" and #clip > 0 then CodeBox.Text = clip setStatus("pasted", CYAN_DOT) return end end setStatus("paste_hint", TXT_DIM) end) ClearBtn.Activated:Connect(function() CodeBox.Text = "" setStatus("cleared", TXT_DIM) end) PlayerDrawerBtn.Activated:Connect(function() drawerOpen = not drawerOpen setDrawerVisibleAnimated(drawerOpen) end) CloseBtn.Activated:Connect(function() setMainVisibleAnimated(false) end) KmLeftBtn.Activated:Connect(function() local showNow = not Main.Visible setMainVisibleAnimated(showNow) end) local function hideOtherSidePanels(keepFrame) if SettingsSquare ~= keepFrame then setSidePanelAnimated(SettingsSquare, SETTINGS_OPEN_POS, SETTINGS_CLOSED_POS, false) end if SuggestPanel ~= keepFrame then setSidePanelAnimated(SuggestPanel, SUGGEST_OPEN_POS, SUGGEST_CLOSED_POS, false) end end LinesSquareBtn.Activated:Connect(function() local showNow = not SuggestPanel.Visible hideOtherSidePanels(showNow and SuggestPanel or nil) setSidePanelAnimated(SuggestPanel, SUGGEST_OPEN_POS, SUGGEST_CLOSED_POS, showNow) end) SugClose.Activated:Connect(function() setSidePanelAnimated(SuggestPanel, SUGGEST_OPEN_POS, SUGGEST_CLOSED_POS, false) end) SettingsBtn.Activated:Connect(function() local showNow = not SettingsSquare.Visible hideOtherSidePanels(showNow and SettingsSquare or nil) setSidePanelAnimated(SettingsSquare, SETTINGS_OPEN_POS, SETTINGS_CLOSED_POS, showNow) if showNow then applyAllLanguageTexts() end end) SetClose.Activated:Connect(function() setSidePanelAnimated(SettingsSquare, SETTINGS_OPEN_POS, SETTINGS_CLOSED_POS, false) end) applyAllLanguageTexts()