5rfpbtfsc

cheat engine title randomizer lua 3script

Jun 20th, 2026
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.91 KB | Source Code | 0 0
  1. local replacements = {
  2.     ["a"] = "ɑ", ["A"] = "Α",
  3.     ["b"] = "Ь", ["B"] = "Β",
  4.     ["c"] = "с", ["C"] = "С",
  5.     ["d"] = "ԁ", ["D"] = "Ⅾ",
  6.     ["e"] = "е", ["E"] = "Ε",
  7.     ["f"] = "ғ", ["F"] = "Ϝ",
  8.     ["g"] = "ɡ", ["G"] = "Ԍ",
  9.     ["h"] = "һ", ["H"] = "Н",
  10.     ["i"] = "і", ["I"] = "І",
  11.     ["j"] = "ј", ["J"] = "Ј",
  12.     ["k"] = "к", ["K"] = "Κ",
  13.     ["l"] = "ӏ", ["L"] = "Ⅼ",
  14.     ["m"] = "м", ["M"] = "Μ",
  15.     ["n"] = "ո", ["N"] = "Ν",
  16.     ["o"] = "о", ["O"] = "Ο",
  17.     ["p"] = "р", ["P"] = "Ρ",
  18.     ["q"] = "ԛ", ["Q"] = "𝐐",
  19.     ["r"] = "г", ["R"] = "Ꞃ",
  20.     ["s"] = "ѕ", ["S"] = "Ѕ",
  21.     ["t"] = "т", ["T"] = "Τ",
  22.     ["u"] = "ц", ["U"] = "υ",
  23.     ["v"] = "ѵ", ["V"] = "Ѵ",
  24.     ["w"] = "ԝ", ["W"] = "Ԝ",
  25.     ["x"] = "х", ["X"] = "Χ",
  26.     ["y"] = "у", ["Y"] = "Υ",
  27.     ["z"] = "ᴢ", ["Z"] = "Ζ"
  28. }
  29. local comboReplacements = {
  30.     ["a"] = "ɑ", ["e"] = "е", ["i"] = "і", ["o"] = "о",
  31.     ["A"] = "Α", ["E"] = "Ε", ["I"] = "І", ["O"] = "Ο"
  32. }
  33. local function obfuscateText(str, isComboBox)
  34.     local result = ""
  35.     local changeCount = 0
  36.     for i = 1, #str do
  37.         local char = str:sub(i, i)
  38.         if isComboBox then
  39.             if comboReplacements[char] and changeCount < 2 then
  40.                 result = result .. comboReplacements[char]
  41.                 changeCount = changeCount + 1
  42.             else
  43.                 result = result .. char
  44.             end
  45.         else
  46.             result = result .. (replacements[char] or char)
  47.         end
  48.     end
  49.     return result
  50. end
  51. local function processControls(comp)
  52.     if not comp then return end
  53.     local success, count = pcall(function() return comp.ComponentCount end)
  54.     if not success then return end
  55.     for i = 0, count - 1 do
  56.         local child = comp.Component[i]
  57.         if child then
  58.             local cls = child.ClassName
  59.             if cls ~= "TEdit" and cls ~= "TMemo" and cls ~= "TRichEdit" then
  60.                 pcall(function()
  61.                     if child.Caption and child.Caption ~= "" then
  62.                         child.Caption = obfuscateText(child.Caption, false)
  63.                     end
  64.                     if (cls == "TComboBox" or cls == "TListBox") and child.Items then
  65.                         for j = 0, child.Items.Count - 1 do
  66.                             local itemText = child.Items[j]
  67.                             if itemText ~= "" then
  68.                                 child.Items[j] = obfuscateText(itemText, true)
  69.                             end
  70.                         end
  71.                     end
  72.                 end)
  73.             end
  74.             processControls(child)
  75.         end
  76.     end
  77. end
  78. local fCount = getFormCount()
  79. for i = 0, fCount - 1 do
  80.     local form = getForm(i)
  81.     if form then
  82.         pcall(function() form.Caption = obfuscateText(form.Caption, false) end)
  83.         processControls(form)
  84.     end
  85. end
  86. collectgarbage("collect")
Advertisement
Add Comment
Please, Sign In to add comment