Advertisement
ERROR_CODE

Console

Jan 2nd, 2024 (edited)
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.92 KB | None | 0 0
  1. local ImpostorGui = Instance.new("ScreenGui")
  2. local CustomConsoleBG = Instance.new("Frame")
  3. local LogsText = Instance.new("TextBox")
  4. local ClearLogs = Instance.new("TextButton")
  5. local CopyLogs = Instance.new("TextButton")
  6.  
  7. function randomString(leng, seed) --does this even do anything?
  8.  
  9.     local array = {}
  10.  
  11.     for i = 0, leng do
  12.         local leNumberPlus = (math.floor((i*6)*(256^2)))
  13.         math.randomseed(seed+leNumberPlus)
  14.         array[i] = string.char(math.random(33, 126))
  15.  
  16.     end
  17.  
  18.     return table.concat(array)
  19.  
  20. end
  21.  
  22. ImpostorGui.Name = randomString(12, 0)
  23. ImpostorGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  24.  
  25. CustomConsoleBG.Name = randomString(12, 40)
  26. CustomConsoleBG.Parent = ImpostorGui
  27. CustomConsoleBG.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  28. CustomConsoleBG.BorderColor3 = Color3.fromRGB(255, 0, 0)
  29. CustomConsoleBG.BorderSizePixel = 2
  30. CustomConsoleBG.Position = UDim2.new(0.60392499, 0, 0.533521414, 0)
  31. CustomConsoleBG.Size = UDim2.new(0, 410, 0, 245)
  32. CustomConsoleBG.Visible = true
  33. CustomConsoleBG.ZIndex = -1
  34.  
  35. LogsText.Name = randomString(12, 41)
  36. LogsText.Parent = CustomConsoleBG
  37. LogsText.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  38. LogsText.BorderColor3 = Color3.fromRGB(255, 0, 0)
  39. LogsText.BorderSizePixel = 2
  40. LogsText.Selectable = false
  41. LogsText.TextEditable = false
  42. LogsText.Size = UDim2.new(0, 410, 0, 175)
  43. LogsText.ClearTextOnFocus = false
  44. LogsText.Font = Enum.Font.Ubuntu
  45. LogsText.MultiLine = true
  46. LogsText.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
  47. LogsText.Text = "Logs"
  48. LogsText.TextColor3 = Color3.fromRGB(255, 0, 0)
  49. LogsText.TextSize = 14.000
  50. LogsText.TextWrapped = true
  51.  
  52. ClearLogs.Name = randomString(12, 42)
  53. ClearLogs.Parent = CustomConsoleBG
  54. ClearLogs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  55. ClearLogs.BackgroundTransparency = 0.850
  56. ClearLogs.BorderColor3 = Color3.fromRGB(255, 255, 255)
  57. ClearLogs.Position = UDim2.new(0.546975613, 0, 0.754999995, 0)
  58. ClearLogs.Size = UDim2.new(0, 150, 0, 50)
  59. ClearLogs.Font = Enum.Font.Ubuntu
  60. ClearLogs.Text = "Clear"
  61. ClearLogs.TextColor3 = Color3.fromRGB(255, 255, 255)
  62. ClearLogs.TextSize = 16.000
  63.  
  64. CopyLogs.Name = randomString(12, 43)
  65. CopyLogs.Parent = CustomConsoleBG
  66. CopyLogs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  67. CopyLogs.BackgroundTransparency = 0.850
  68. CopyLogs.BorderColor3 = Color3.fromRGB(255, 255, 255)
  69. CopyLogs.Position = UDim2.new(0.0876097605, 0, 0.754999995, 0)
  70. CopyLogs.Size = UDim2.new(0, 150, 0, 50)
  71. CopyLogs.Font = Enum.Font.Ubuntu
  72. CopyLogs.Text = "Copy"
  73. CopyLogs.TextColor3 = Color3.fromRGB(255, 255, 255)
  74. CopyLogs.TextSize = 16.000
  75. local logTable = {}
  76. local function FMZSUM_fake_script()
  77.     local script = Instance.new("LocalScript", CustomConsoleBG)
  78.  
  79.     local frame = script.Parent
  80.     local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  81.  
  82.     local keybind = "q"
  83.  
  84.     mouse.KeyDown:connect(
  85.         function(key)
  86.             key = key:lower()
  87.             if key == keybind then
  88.                 frame.Visible = not frame.Visible
  89.             end
  90.         end
  91.     )
  92.  
  93.     print("Current keybind is:", keybind)
  94. end
  95. coroutine.wrap(FMZSUM_fake_script)()
  96. local function URYDQKV_fake_script()
  97.     local script = Instance.new("LocalScript", CustomConsoleBG)
  98.  
  99.     local UserInputService = game:GetService("UserInputService")
  100.  
  101.     local gui = script.Parent
  102.  
  103.     local dragging
  104.     local dragInput
  105.     local dragStart
  106.     local startPos
  107.  
  108.     local function update(input)
  109.         local delta = input.Position - dragStart
  110.         gui.Position =
  111.             UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  112.     end
  113.  
  114.     gui.InputBegan:Connect(
  115.         function(input)
  116.             if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  117.                 dragging = true
  118.                 dragStart = input.Position
  119.                 startPos = gui.Position
  120.  
  121.                 input.Changed:Connect(
  122.                     function()
  123.                         if input.UserInputState == Enum.UserInputState.End then
  124.                             dragging = false
  125.                         end
  126.                     end
  127.                 )
  128.             end
  129.         end
  130.     )
  131.  
  132.     gui.InputChanged:Connect(
  133.         function(input)
  134.             if
  135.                 input.UserInputType == Enum.UserInputType.MouseMovement or
  136.                 input.UserInputType == Enum.UserInputType.Touch
  137.             then
  138.                 dragInput = input
  139.             end
  140.         end
  141.     )
  142.  
  143.     UserInputService.InputChanged:Connect(
  144.         function(input)
  145.             if input == dragInput and dragging then
  146.                 update(input)
  147.             end
  148.         end
  149.     )
  150. end
  151. coroutine.wrap(URYDQKV_fake_script)()
  152. game:GetService("LogService").MessageOut:Connect(
  153. function(Message)
  154.     repeat
  155.         wait(.1)
  156.     until Message
  157.     logTable[#logTable + 1] = Message
  158.     LogsText.Text = (table.concat(logTable, "\n"))
  159.     for i, v in pairs(logTable) do
  160.         if i == 5 then
  161.             table.remove(logTable, 1)
  162.         end
  163.     end
  164. end
  165. )
  166. ClearLogs.MouseButton1Click:Connect(
  167.     function()
  168.         table.remove(logTable, 4)
  169.         table.remove(logTable, 3)
  170.         table.remove(logTable, 2)
  171.         table.remove(logTable, 1)
  172.         table.remove(logTable)
  173.         wait(.1)
  174.         LogsText.Text = "Logs"
  175.     end
  176. )
  177. CopyLogs.MouseButton1Click:Connect(
  178.     function()
  179.         setclipboard(LogsText.Text)
  180.     end
  181. )
  182.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement