Advertisement
Joes_Moms_Sploitts09

internalUI

Dec 30th, 2021
767
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.57 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local exec = Instance.new("TextButton")
  4. local clear = Instance.new("TextButton")
  5. local Lines = Instance.new("TextLabel")
  6. local EditorFrame = Instance.new("ScrollingFrame")
  7. local Source = Instance.new("TextBox")
  8. local Comments_ = Instance.new("TextLabel")
  9. local Globals_ = Instance.new("TextLabel")
  10. local Keywords_ = Instance.new("TextLabel")
  11. local RemoteHighlight_ = Instance.new("TextLabel")
  12. local Strings_ = Instance.new("TextLabel")
  13. local Tokens_ = Instance.new("TextLabel")
  14. local Numbers_ = Instance.new("TextLabel")
  15. ScreenGui.ResetOnSpawn = false
  16.  
  17. ScreenGui.Parent = game:GetService("CoreGui")
  18. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19.  
  20. spawn(function()
  21. local UserInputService = game:GetService("UserInputService")
  22. UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  23. if input.KeyCode == Enum.KeyCode.RightShift then
  24. ScreenGui.Enabled = not ScreenGui.Enabled;
  25. end
  26. end)
  27. end)
  28.  
  29. Main.Name = "Main"
  30. Main.Parent = ScreenGui
  31. Main.BackgroundColor3 = Color3.fromRGB(74, 74, 74)
  32. Main.Position = UDim2.new(0.200581893, 0, 0.0717131495, 0)
  33. Main.Size = UDim2.new(0, 469, 0, 349)
  34. Main.ZIndex = 999999999
  35.  
  36. exec.Name = "exec"
  37. exec.Parent = Main
  38. exec.BackgroundColor3 = Color3.fromRGB(115, 115, 115)
  39. exec.BackgroundTransparency = 1.000
  40. exec.Position = UDim2.new(0.0721926168, 0, 0.871060193, 0)
  41. exec.Size = UDim2.new(0, 130, 0, 42)
  42. exec.ZIndex = 999999999
  43. exec.Font = Enum.Font.Code
  44. exec.Text = "Execute"
  45. exec.TextColor3 = Color3.fromRGB(0, 0, 0)
  46. exec.TextScaled = true
  47. exec.TextSize = 12.000
  48. exec.TextWrapped = true
  49.  
  50. clear.Name = "clear"
  51. clear.Parent = Main
  52. clear.BackgroundColor3 = Color3.fromRGB(115, 115, 115)
  53. clear.BackgroundTransparency = 1.000
  54. clear.Position = UDim2.new(0.453855753, 0, 0.888252139, 0)
  55. clear.Size = UDim2.new(0, 130, 0, 30)
  56. clear.ZIndex = 999999999
  57. clear.Font = Enum.Font.Code
  58. clear.Text = "Clear"
  59. clear.TextColor3 = Color3.fromRGB(0, 0, 0)
  60. clear.TextSize = 33.000
  61. clear.TextWrapped = true
  62.  
  63. Lines.Name = "Lines"
  64. Lines.Parent = Main
  65. Lines.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  66. Lines.BackgroundTransparency = 1.000
  67. Lines.Position = UDim2.new(0, 0, 0.0487106033, 0)
  68. Lines.Size = UDim2.new(0.00822673179, 30, 0.822349548, 0)
  69. Lines.ZIndex = 4
  70. Lines.Font = Enum.Font.Code
  71. Lines.Text = "1"
  72. Lines.TextColor3 = Color3.fromRGB(255, 255, 255)
  73. Lines.TextSize = 15.000
  74. Lines.TextYAlignment = Enum.TextYAlignment.Top
  75.  
  76. EditorFrame.Name = "EditorFrame"
  77. EditorFrame.Parent = Main
  78. EditorFrame.BackgroundColor3 = Color3.fromRGB(68, 68, 68)
  79. EditorFrame.BorderColor3 = Color3.fromRGB(61, 61, 61)
  80. EditorFrame.Position = UDim2.new(0, 35, 0, 17)
  81. EditorFrame.Size = UDim2.new(0, 434, 0, 287)
  82. EditorFrame.ZIndex = 3
  83. EditorFrame.BottomImage = "rbxassetid://148970562"
  84. EditorFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  85. EditorFrame.HorizontalScrollBarInset = Enum.ScrollBarInset.Always
  86. EditorFrame.MidImage = "rbxassetid://148970562"
  87. EditorFrame.ScrollBarThickness = 6
  88. EditorFrame.TopImage = "rbxassetid://148970562"
  89. EditorFrame.VerticalScrollBarInset = Enum.ScrollBarInset.Always
  90. EditorFrame.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
  91. EditorFrame.ScrollingEnabled = true
  92. Source.Name = "Source"
  93. Source.Parent = EditorFrame
  94. Source.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  95. Source.BackgroundTransparency = 1.000
  96. Source.Size = UDim2.new(1.00365555, 0, 0.975609779, 0)
  97. Source.ZIndex = 3
  98. Source.ClearTextOnFocus = false
  99. Source.Font = Enum.Font.Code
  100. Source.MultiLine = true
  101. Source.PlaceholderColor3 = Color3.fromRGB(204, 204, 204)
  102. Source.Text = ""
  103. Source.TextColor3 = Color3.fromRGB(204, 204, 204)
  104. Source.TextSize = 15.000
  105. Source.TextXAlignment = Enum.TextXAlignment.Left
  106. Source.TextYAlignment = Enum.TextYAlignment.Top
  107.  
  108. Comments_.Name = "Comments_"
  109. Comments_.Parent = Source
  110. Comments_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  111. Comments_.BackgroundTransparency = 1.000
  112. Comments_.Size = UDim2.new(1, 0, 1, 0)
  113. Comments_.ZIndex = 5
  114. Comments_.Font = Enum.Font.Code
  115. Comments_.Text = ""
  116. Comments_.TextColor3 = Color3.fromRGB(59, 200, 59)
  117. Comments_.TextSize = 15.000
  118. Comments_.TextXAlignment = Enum.TextXAlignment.Left
  119. Comments_.TextYAlignment = Enum.TextYAlignment.Top
  120.  
  121. Globals_.Name = "Globals_"
  122. Globals_.Parent = Source
  123. Globals_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  124. Globals_.BackgroundTransparency = 1.000
  125. Globals_.Size = UDim2.new(1, 0, 1, 0)
  126. Globals_.ZIndex = 5
  127. Globals_.Font = Enum.Font.Code
  128. Globals_.Text = ""
  129. Globals_.TextColor3 = Color3.fromRGB(132, 214, 247)
  130. Globals_.TextSize = 15.000
  131. Globals_.TextXAlignment = Enum.TextXAlignment.Left
  132. Globals_.TextYAlignment = Enum.TextYAlignment.Top
  133.  
  134. Keywords_.Name = "Keywords_"
  135. Keywords_.Parent = Source
  136. Keywords_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  137. Keywords_.BackgroundTransparency = 1.000
  138. Keywords_.Size = UDim2.new(1, 0, 1, 0)
  139. Keywords_.ZIndex = 5
  140. Keywords_.Font = Enum.Font.Code
  141. Keywords_.Text = ""
  142. Keywords_.TextColor3 = Color3.fromRGB(248, 109, 124)
  143. Keywords_.TextSize = 15.000
  144. Keywords_.TextXAlignment = Enum.TextXAlignment.Left
  145. Keywords_.TextYAlignment = Enum.TextYAlignment.Top
  146.  
  147. RemoteHighlight_.Name = "RemoteHighlight_"
  148. RemoteHighlight_.Parent = Source
  149. RemoteHighlight_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  150. RemoteHighlight_.BackgroundTransparency = 1.000
  151. RemoteHighlight_.Size = UDim2.new(1, 0, 1, 0)
  152. RemoteHighlight_.ZIndex = 5
  153. RemoteHighlight_.Font = Enum.Font.Code
  154. RemoteHighlight_.Text = ""
  155. RemoteHighlight_.TextColor3 = Color3.fromRGB(0, 144, 255)
  156. RemoteHighlight_.TextSize = 15.000
  157. RemoteHighlight_.TextXAlignment = Enum.TextXAlignment.Left
  158. RemoteHighlight_.TextYAlignment = Enum.TextYAlignment.Top
  159.  
  160. Strings_.Name = "Strings_"
  161. Strings_.Parent = Source
  162. Strings_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  163. Strings_.BackgroundTransparency = 1.000
  164. Strings_.Size = UDim2.new(1, 0, 1, 0)
  165. Strings_.ZIndex = 5
  166. Strings_.Font = Enum.Font.Code
  167. Strings_.Text = ""
  168. Strings_.TextColor3 = Color3.fromRGB(173, 241, 149)
  169. Strings_.TextSize = 15.000
  170. Strings_.TextXAlignment = Enum.TextXAlignment.Left
  171. Strings_.TextYAlignment = Enum.TextYAlignment.Top
  172.  
  173. Tokens_.Name = "Tokens_"
  174. Tokens_.Parent = Source
  175. Tokens_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  176. Tokens_.BackgroundTransparency = 1.000
  177. Tokens_.Size = UDim2.new(1, 0, 1, 0)
  178. Tokens_.ZIndex = 5
  179. Tokens_.Font = Enum.Font.Code
  180. Tokens_.Text = ""
  181. Tokens_.TextColor3 = Color3.fromRGB(255, 255, 255)
  182. Tokens_.TextSize = 15.000
  183. Tokens_.TextXAlignment = Enum.TextXAlignment.Left
  184. Tokens_.TextYAlignment = Enum.TextYAlignment.Top
  185.  
  186. Numbers_.Name = "Numbers_"
  187. Numbers_.Parent = Source
  188. Numbers_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  189. Numbers_.BackgroundTransparency = 1.000
  190. Numbers_.Size = UDim2.new(1, 0, 1, 0)
  191. Numbers_.ZIndex = 4
  192. Numbers_.Font = Enum.Font.Code
  193. Numbers_.Text = ""
  194. Numbers_.TextColor3 = Color3.fromRGB(255, 198, 0)
  195. Numbers_.TextSize = 15.000
  196. Numbers_.TextXAlignment = Enum.TextXAlignment.Left
  197. Numbers_.TextYAlignment = Enum.TextYAlignment.Top
  198.  
  199. local lua_keywords = {"and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while", "is_synapse_function","is_protosmasher_caller", "execute","foreach","foreachi","insert","syn","HttpGet","HttpPost","__index","__namecall","__add","__call","__tostring","__tonumber","__div"}
  200. local global_env = {"getrawmetatable", "game", "workspace", "script", "math", "string", "table", "print", "wait", "BrickColor", "Color3", "next", "pairs", "ipairs", "select", "unpack", "Instance", "Vector2", "Vector3", "CFrame", "Ray", "UDim2", "Enum", "assert", "error", "warn", "tick", "loadstring", "_G", "shared", "getfenv", "setfenv", "newproxy", "setmetatable", "getmetatable", "os", "debug", "pcall", "ypcall", "xpcall", "rawequal", "rawset", "rawget", "tonumber", "tostring", "type", "typeof", "_VERSION", "coroutine", "delay", "require", "spawn", "LoadLibrary", "settings", "stats", "time", "UserSettings", "version", "Axes", "ColorSequence", "Faces", "ColorSequenceKeypoint", "NumberRange", "NumberSequence", "NumberSequenceKeypoint", "gcinfo", "elapsedTime", "collectgarbage", "PhysicalProperties", "Rect", "Region3", "Region3int16", "UDim", "Vector2int16", "Vector3int16","run_secure_function","create_secure_function","hookfunc","hookfunction","newcclosure","replaceclosure","islclosure","getgc","gcinfo","rconsolewarn","rconsoleprint","rconsoleinfo","rconsoleinput","rconsoleinputasync","rconsoleclear","rconsoleerr",}
  201.  
  202. local src = Source
  203. local lin = Lines
  204.  
  205. local Highlight = function(string, keywords)
  206. local K = {}
  207. local S = string
  208. local Token =
  209. {
  210. ["="] = true,
  211. ["."] = true,
  212. [","] = true,
  213. ["("] = true,
  214. [")"] = true,
  215. ["["] = true,
  216. ["]"] = true,
  217. ["{"] = true,
  218. ["}"] = true,
  219. [":"] = true,
  220. ["*"] = true,
  221. ["/"] = true,
  222. ["+"] = true,
  223. ["-"] = true,
  224. ["%"] = true,
  225. [";"] = true,
  226. ["~"] = true
  227. }
  228. for i, v in pairs(keywords) do
  229. K[v] = true
  230. end
  231. S = S:gsub(".", function(c)
  232. if Token[c] ~= nil then
  233. return "\32"
  234. else
  235. return c
  236. end
  237. end)
  238. S = S:gsub("%S+", function(c)
  239. if K[c] ~= nil then
  240. return c
  241. else
  242. return (" "):rep(#c)
  243. end
  244. end)
  245.  
  246. return S
  247. end
  248.  
  249. local hTokens = function(string)
  250. local Token =
  251. {
  252. ["="] = true,
  253. ["."] = true,
  254. [","] = true,
  255. ["("] = true,
  256. [")"] = true,
  257. ["["] = true,
  258. ["]"] = true,
  259. ["{"] = true,
  260. ["}"] = true,
  261. [":"] = true,
  262. ["*"] = true,
  263. ["/"] = true,
  264. ["+"] = true,
  265. ["-"] = true,
  266. ["%"] = true,
  267. [";"] = true,
  268. ["~"] = true
  269. }
  270. local A = ""
  271. local B = [[]]
  272. string:gsub(".", function(c)
  273. if Token[c] ~= nil then
  274. A = A .. c
  275. elseif c == "\n" then
  276. A = A .. "\n"
  277. elseif c == "\t" then
  278. A = A .. "\t"
  279. else
  280. A = A .. "\32"
  281. end
  282. end)
  283. return A
  284. end
  285.  
  286.  
  287. local strings = function(string)
  288. local highlight = ""
  289. local quote = false
  290. string:gsub(".", function(c)
  291. if quote == false and c == "\"" then
  292. quote = true
  293. elseif quote == true and c == "\"" then
  294. quote = false
  295. end
  296. if quote == false and c == "\"" then
  297. highlight = highlight .. "\""
  298. elseif c == "\n" then
  299. highlight = highlight .. "\n"
  300. elseif c == "\t" then
  301. highlight = highlight .. "\t"
  302. elseif quote == true then
  303. highlight = highlight .. c
  304. elseif quote == false then
  305. highlight = highlight .. "\32"
  306. end
  307. end)
  308.  
  309. return highlight
  310. end
  311.  
  312. local comments = function(string)
  313. local ret = ""
  314. string:gsub("[^\r\n]+", function(c)
  315. local comm = false
  316. local i = 0
  317. c:gsub(".", function(n)
  318. i = i + 1
  319. if c:sub(i, i + 1) == "--" then
  320. comm = true
  321. end
  322. if comm == true then
  323. ret = ret .. n
  324. else
  325. ret = ret .. "\32"
  326. end
  327. end)
  328. ret = ret
  329. end)
  330.  
  331. return ret
  332. end
  333.  
  334. local numbers = function(string)
  335. local A = ""
  336. string:gsub(".", function(c)
  337. if tonumber(c) ~= nil then
  338. A = A .. c
  339. elseif c == "\n" then
  340. A = A .. "\n"
  341. elseif c == "\t" then
  342. A = A .. "\t"
  343. else
  344. A = A .. "\32"
  345. end
  346. end)
  347.  
  348. return A
  349. end
  350.  
  351. local highlight_source = function(type)
  352. if type == "Text" then
  353. src.Text = Source.Text:gsub("\13", "")
  354. src.Text = Source.Text:gsub("\t", "      ")
  355. local s = src.Text
  356. src.Keywords_.Text = Highlight(s, lua_keywords)
  357. src.Globals_.Text = Highlight(s, global_env)
  358. src.RemoteHighlight_.Text = Highlight(s, {"FireServer", "fireServer", "InvokeServer", "invokeServer"})
  359. src.Tokens_.Text = hTokens(s)
  360. src.Numbers_.Text = numbers(s)
  361. src.Strings_.Text = strings(s)
  362. local lin = 1
  363. s:gsub("\n", function()
  364. lin = lin + 1
  365. end)
  366. Lines.Text = ""
  367. for i = 1, lin do
  368. Lines.Text = Lines.Text .. i .. "\n"
  369. end
  370. end
  371. end
  372.  
  373. highlight_source("Text")
  374.  
  375. src.Changed:Connect(highlight_source)
  376. exec.MouseButton1Click:Connect(function()
  377. assert(loadstring(Source.Text))()
  378. end)
  379. clear.MouseButton1Click:Connect(function()
  380.    Source.Text = ""
  381. end)
  382.  
  383. Main.Active = true
  384. Main.Draggable = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement