Advertisement
ExecutorForALLdomain

Untitled

Aug 20th, 2024
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.82 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local e = Instance.new("ScreenGui")
  7. local ScrollingFrame = Instance.new("ScrollingFrame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local line = Instance.new("Frame")
  10. local TextButton = Instance.new("TextButton")
  11. local TextButton_2 = Instance.new("TextButton")
  12. local TextButton_3 = Instance.new("TextButton")
  13. local ScriptViewer = Instance.new("Frame")
  14. local ScrollingFrame_2 = Instance.new("ScrollingFrame")
  15. local TextBox = Instance.new("TextBox")
  16. local TextButton_4 = Instance.new("TextButton")
  17.  
  18. --Properties:
  19.  
  20. e.Name = "e"
  21. e.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  22. e.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  23.  
  24. ScrollingFrame.Parent = e
  25. ScrollingFrame.Active = true
  26. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
  27. ScrollingFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  28. ScrollingFrame.BorderSizePixel = 0
  29. ScrollingFrame.Position = UDim2.new(0.826405883, 0, 0, 0)
  30. ScrollingFrame.Size = UDim2.new(0, 284, 0, 664)
  31.  
  32. TextLabel.Parent = e
  33. TextLabel.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
  34. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  35. TextLabel.BorderSizePixel = 0
  36. TextLabel.Position = UDim2.new(0.202933982, 0, 0.106927708, 0)
  37. TextLabel.Size = UDim2.new(0, 543, 0, 20)
  38. TextLabel.Font = Enum.Font.SourceSans
  39. TextLabel.Text = " Script Viewer"
  40. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  41. TextLabel.TextSize = 14.000
  42. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  43. TextLabel.TextYAlignment = Enum.TextYAlignment.Top
  44.  
  45. line.Name = "line"
  46. line.Parent = TextLabel
  47. line.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  48. line.BorderColor3 = Color3.fromRGB(0, 0, 0)
  49. line.BorderSizePixel = 0
  50. line.Position = UDim2.new(0, 0, 0.949999988, 0)
  51. line.Size = UDim2.new(0, 543, 0, 4)
  52.  
  53. TextButton.Parent = line
  54. TextButton.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
  55. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  56. TextButton.BorderSizePixel = 0
  57. TextButton.Size = UDim2.new(0, 196, 0, 24)
  58. TextButton.Font = Enum.Font.SourceSans
  59. TextButton.Text = "clipboard"
  60. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  61. TextButton.TextSize = 14.000
  62.  
  63. TextButton_2.Parent = line
  64. TextButton_2.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
  65. TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  66. TextButton_2.BorderSizePixel = 0
  67. TextButton_2.Position = UDim2.new(0.360957652, 0, 0, 0)
  68. TextButton_2.Size = UDim2.new(0, 196, 0, 24)
  69. TextButton_2.Font = Enum.Font.SourceSans
  70. TextButton_2.Text = "Copy Path"
  71. TextButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  72. TextButton_2.TextSize = 14.000
  73.  
  74. TextButton_3.Parent = line
  75. TextButton_3.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
  76. TextButton_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
  77. TextButton_3.BorderSizePixel = 0
  78. TextButton_3.Position = UDim2.new(0.721915305, 0, 0.25, 0)
  79. TextButton_3.Size = UDim2.new(0, 151, 0, 24)
  80. TextButton_3.Font = Enum.Font.SourceSans
  81. TextButton_3.Text = "Clear"
  82. TextButton_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  83. TextButton_3.TextSize = 14.000
  84.  
  85. ScriptViewer.Name = "ScriptViewer"
  86. ScriptViewer.Parent = TextLabel
  87. ScriptViewer.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  88. ScriptViewer.BorderColor3 = Color3.fromRGB(0, 0, 0)
  89. ScriptViewer.BorderSizePixel = 0
  90. ScriptViewer.Position = UDim2.new(0, 0, 2.1500001, 0)
  91. ScriptViewer.Size = UDim2.new(0, 543, 0, 322)
  92.  
  93. ScrollingFrame_2.Parent = ScriptViewer
  94. ScrollingFrame_2.Active = true
  95. ScrollingFrame_2.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  96. ScrollingFrame_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  97. ScrollingFrame_2.BorderSizePixel = 0
  98. ScrollingFrame_2.Size = UDim2.new(0, 543, 0, 342)
  99.  
  100. TextBox.Parent = ScrollingFrame_2
  101. TextBox.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  102. TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  103. TextBox.BorderSizePixel = 0
  104. TextBox.Position = UDim2.new(0.023941068, 0, 0, 0)
  105. TextBox.Size = UDim2.new(0, 530, 0, 542)
  106. TextBox.ClearTextOnFocus = false
  107. TextBox.Font = Enum.Font.SourceSans
  108. TextBox.MultiLine = true
  109. TextBox.Text = ""
  110. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  111. TextBox.TextSize = 14.000
  112. TextBox.TextXAlignment = Enum.TextXAlignment.Left
  113. TextBox.TextYAlignment = Enum.TextYAlignment.Top
  114.  
  115. TextButton_4.Parent = e
  116. TextButton_4.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
  117. TextButton_4.BorderColor3 = Color3.fromRGB(0, 0, 0)
  118. TextButton_4.BorderSizePixel = 0
  119. TextButton_4.Position = UDim2.new(0.397921771, 0, 0, 0)
  120. TextButton_4.Size = UDim2.new(0, 48, 0, 31)
  121. TextButton_4.Font = Enum.Font.SourceSans
  122. TextButton_4.Text = "Viewer"
  123. TextButton_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  124. TextButton_4.TextSize = 14.000
  125.  
  126. -- Scripts:
  127.  
  128. local function RNJRUS_fake_script() -- ScrollingFrame.LocalScript
  129. local script = Instance.new('LocalScript', ScrollingFrame)
  130.  
  131. local textbox = script.Parent.Parent.TextLabel.ScriptViewer.ScrollingFrame.TextBox
  132. local buttonHeight = 30
  133. local spacing = 5
  134. local currentY = 0
  135.  
  136.  
  137. for i, v in pairs(game:GetDescendants()) do
  138. if v:IsA("ModuleScript") or v:IsA("LocalScript") then
  139. local textButton = Instance.new("TextButton")
  140. textButton.Name = v.Name
  141. textButton.Size = UDim2.new(1, -10, 0, buttonHeight)
  142. textButton.Position = UDim2.new(0, 5, 0, currentY)
  143. textButton.Text = v.Name
  144. textButton.TextColor3 = Color3.new(1, 1, 1)
  145. textButton.BackgroundColor3 = Color3.new(0, 0, 0)
  146. textButton.Parent = script.Parent
  147. textButton.Name = v.Name
  148.  
  149. textButton.MouseButton1Click:Connect(function()
  150. local s, err = pcall(function()
  151. textbox.Text = getscriptbytecode(v)
  152. end)
  153. if not s then
  154. textbox.Text = "-- failed to get LocalScript or ModuleScript bytecode in Roblox Studio."
  155. end
  156. end)
  157.  
  158.  
  159. currentY = currentY + buttonHeight + spacing
  160. end
  161. end
  162.  
  163. end
  164. coroutine.wrap(RNJRUS_fake_script)()
  165. local function MIJQUE_fake_script() -- TextButton.LocalScript
  166. local script = Instance.new('LocalScript', TextButton)
  167.  
  168. local textbox = script.Parent.Parent.Parent.ScriptViewer.ScrollingFrame.TextBox
  169. local function c()
  170. setclipboard(textbox.Text)
  171. end
  172. b = script.Parent
  173. b.MouseButton1Click:Connect(c)
  174. end
  175. coroutine.wrap(MIJQUE_fake_script)()
  176. local function RYPGKFA_fake_script() -- TextButton_3.LocalScript
  177. local script = Instance.new('LocalScript', TextButton_3)
  178.  
  179. local textbox = script.Parent.Parent.Parent.ScriptViewer.ScrollingFrame.TextBox
  180. script.Parent.MouseButton1Click:Connect(function()
  181. textbox.Text = ""
  182. end)
  183. end
  184. coroutine.wrap(RYPGKFA_fake_script)()
  185. local function WHDOXI_fake_script() -- TextBox.LocalScript
  186. local script = Instance.new('LocalScript', TextBox)
  187.  
  188. local keywords = {
  189. foo = "255,0,0";
  190. bar = "0,255,0";
  191. --keyword = rgb color;
  192. }
  193.  
  194. function insertHighlights(txt) --txt is the text you want to highlight
  195. txt = " " .. txt .. " " --add some padding because my string pattern smells
  196. for i,v in next, keywords do --loop through keywords
  197. txt = txt:gsub("%A"..i.."%A",function(x) --replace keyword with result of function
  198. return x:gsub(i,function(y) --remove %A and %A used to see if its a freestanding word (ig. foob wouldnt highlight)
  199. return "<font color=\"rgb("..v..")\">"..y.."</font>" --richtext junk
  200. end)
  201. end)
  202. end
  203. return txt:sub(2,#txt-1) --remove padding added line #1 of function
  204. end
  205.  
  206. print(insertHighlights("a foo eats a bar"))
  207. end
  208. coroutine.wrap(WHDOXI_fake_script)()
  209. local function CRSL_fake_script() -- TextLabel.LocalScript
  210. local script = Instance.new('LocalScript', TextLabel)
  211.  
  212. local UserInputService = game:GetService("UserInputService")
  213.  
  214. local gui = script.Parent
  215.  
  216. local dragging
  217. local dragInput
  218. local dragStart
  219. local startPos
  220.  
  221. local function update(input)
  222. local delta = input.Position - dragStart
  223. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  224. end
  225.  
  226. gui.InputBegan:Connect(function(input)
  227. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  228. dragging = true
  229. dragStart = input.Position
  230. startPos = gui.Position
  231.  
  232. input.Changed:Connect(function()
  233. if input.UserInputState == Enum.UserInputState.End then
  234. dragging = false
  235. end
  236. end)
  237. end
  238. end)
  239.  
  240. gui.InputChanged:Connect(function(input)
  241. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  242. dragInput = input
  243. end
  244. end)
  245.  
  246. UserInputService.InputChanged:Connect(function(input)
  247. if input == dragInput and dragging then
  248. update(input)
  249. end
  250. end)
  251. end
  252. coroutine.wrap(CRSL_fake_script)()
  253. local function WAQDT_fake_script() -- TextButton_4.LocalScript
  254. local script = Instance.new('LocalScript', TextButton_4)
  255.  
  256. script.Parent.MouseButton1Click:Connect(function()
  257. local FRAME = script.Parent.Parent.TextLabel
  258. FRAME.Visible = not FRAME.Visible
  259. end)
  260. end
  261. coroutine.wrap(WAQDT_fake_script)()
  262.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement