Roblox Script Viewer - Pastebin.com (2024)

  1. -- Gui to Lua

  2. -- Version: 3.2

  3. -- Instances:

  4. local ScriptViewer = Instance.new("ScreenGui")

  5. local ActivateScripts = Instance.new("TextButton")

  6. local UICorner = Instance.new("UICorner")

  7. local Scripts = Instance.new("Frame")

  8. local Scripts_2 = Instance.new("ScrollingFrame")

  9. local UIGridLayout = Instance.new("UIGridLayout")

  10. local UICorner_2 = Instance.new("UICorner")

  11. local LoadedScript = Instance.new("ScrollingFrame")

  12. local TextLabel = Instance.new("TextLabel")

  13. local TextButton = Instance.new("TextButton")

  14. local Input = Instance.new("TextBox")

  15. local ActivateCredits = Instance.new("TextButton")

  16. local UICorner_3 = Instance.new("UICorner")

  17. local Frame = Instance.new("Frame")

  18. local UICorner_4 = Instance.new("UICorner")

  19. local TextLabel_2 = Instance.new("TextLabel")

  20. local UICorner_5 = Instance.new("UICorner")

  21. local TextLabel_3 = Instance.new("TextLabel")

  22. local UICorner_6 = Instance.new("UICorner")

  23. local Guis = Instance.new("Folder")

  24. local LocalScript = Instance.new("Frame")

  25. local Image = Instance.new("ImageLabel")

  26. local ScriptName = Instance.new("TextLabel")

  27. local ActivationButton = Instance.new("TextButton")

  28. local ModuleScript = Instance.new("Frame")

  29. local Image_2 = Instance.new("ImageLabel")

  30. local ScriptName_2 = Instance.new("TextLabel")

  31. local ActivationButton_2 = Instance.new("TextButton")

  32. local Main = Instance.new("Frame")

  33. local UICorner_7 = Instance.new("UICorner")

  34. --Properties:

  35. ScriptViewer.Name = "ScriptViewer"

  36. ScriptViewer.Parent = game:GetService("CoreGui")

  37. ActivateScripts.Name = "ActivateScripts"

  38. ActivateScripts.Parent = ScriptViewer

  39. ActivateScripts.BackgroundColor3 = Color3.fromRGB(59, 59, 59)

  40. ActivateScripts.Position = UDim2.new(0.276897401, 0, 0.219393939, 0)

  41. ActivateScripts.Size = UDim2.new(0.166666672, 0, 0.0606060624, 0)

  42. ActivateScripts.ZIndex = 18

  43. ActivateScripts.Font = Enum.Font.SourceSans

  44. ActivateScripts.Text = "Scripts"

  45. ActivateScripts.TextColor3 = Color3.fromRGB(255, 255, 255)

  46. ActivateScripts.TextScaled = true

  47. ActivateScripts.TextSize = 14.000

  48. ActivateScripts.TextWrapped = true

  49. UICorner.CornerRadius = UDim.new(0.300000012, 0)

  50. UICorner.Parent = ActivateScripts

  51. Scripts.Name = "Scripts"

  52. Scripts.Parent = ActivateScripts

  53. Scripts.BackgroundColor3 = Color3.fromRGB(94, 94, 94)

  54. Scripts.Position = UDim2.new(0.059, 0,0.82, 0)

  55. Scripts.Size = UDim2.new(4.04, 0, 8.46, 0)

  56. Scripts.ZIndex = 3

  57. Scripts_2.Name = "Scripts"

  58. Scripts_2.Parent = Scripts

  59. Scripts_2.Active = true

  60. Scripts_2.BackgroundColor3 = Color3.fromRGB(72, 72, 72)

  61. Scripts_2.BorderSizePixel = 0

  62. Scripts_2.ClipsDescendants = true

  63. Scripts_2.Position = UDim2.new(0.03582149, 0, 0.285476804, 0)

  64. Scripts_2.Size = UDim2.new(0.217821777, 0, 0.625, 0)

  65. Scripts_2.ZIndex = 3

  66. Scripts_2.CanvasSize = UDim2.new(0, 0, 50, 0)

  67. Scripts_2.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left

  68. UIGridLayout.Parent = Scripts_2

  69. UIGridLayout.HorizontalAlignment = Enum.HorizontalAlignment.Right

  70. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder

  71. UIGridLayout.CellSize = UDim2.new(0, 150, 0, 25)

  72. UICorner_2.CornerRadius = UDim.new(0.0500000007, 0)

  73. UICorner_2.Parent = Scripts

  74. LoadedScript.Name = "LoadedScript"

  75. LoadedScript.Parent = Scripts

  76. LoadedScript.Active = true

  77. LoadedScript.BackgroundColor3 = Color3.fromRGB(66, 66, 66)

  78. LoadedScript.BorderSizePixel = 0

  79. LoadedScript.Position = UDim2.new(0.278, 0 ,0.182, 0)

  80. LoadedScript.Size = UDim2.new(0.684, 0 ,0.728, 0)

  81. LoadedScript.ZIndex = 3

  82. LoadedScript.CanvasSize = UDim2.new(0, 0, 50, 0)

  83. TextLabel.Parent = LoadedScript

  84. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  85. TextLabel.BackgroundTransparency = 1

  86. TextLabel.Position = UDim2.new(0, 0, 0, 0)

  87. TextLabel.Size = UDim2.new(0.9, 0, 26, 0)

  88. TextLabel.Visible = true

  89. TextLabel.ZIndex = 100

  90. TextLabel.Font = Enum.Font.SourceSans

  91. TextLabel.Text = ''

  92. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)

  93. TextLabel.TextSize = 20

  94. TextLabel.TextWrapped = true

  95. TextLabel.TextXAlignment = Enum.TextXAlignment.Left

  96. TextLabel.TextYAlignment = Enum.TextYAlignment.Top

  97. TextButton.Parent = Scripts

  98. TextButton.BackgroundColor3 = Color3.fromRGB(47, 47, 47)

  99. TextButton.BorderSizePixel = 0

  100. TextButton.Position = UDim2.new(0.190537781, 0, 0.181603774, 0)

  101. TextButton.Size = UDim2.new(0.0618811883, 0, 0.0754716992, 0)

  102. TextButton.ZIndex = 7

  103. TextButton.Font = Enum.Font.SourceSans

  104. TextButton.Text = "Search"

  105. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)

  106. TextButton.TextScaled = true

  107. TextButton.TextSize = 14.000

  108. TextButton.TextWrapped = true

  109. Input.Name = "Input"

  110. Input.Parent = TextButton

  111. Input.BackgroundColor3 = Color3.fromRGB(47, 47, 47)

  112. Input.BorderSizePixel = 0

  113. Input.Position = UDim2.new(-2.50021482, 0, 0, 0)

  114. Input.Size = UDim2.new(2.38000011, 0, 1, 0)

  115. Input.ZIndex = 15

  116. Input.Font = Enum.Font.SourceSans

  117. Input.Text = ""

  118. Input.TextColor3 = Color3.fromRGB(255, 255, 255)

  119. Input.TextScaled = true

  120. Input.TextSize = 14.000

  121. Input.TextWrapped = true

  122. ActivateCredits.Name = "ActivateCredits"

  123. ActivateCredits.Parent = ScriptViewer

  124. ActivateCredits.BackgroundColor3 = Color3.fromRGB(59, 59, 59)

  125. ActivateCredits.Position = UDim2.new(0.806505442, 0, 0.219393939, 0)

  126. ActivateCredits.Size = UDim2.new(0.166666672, 0, 0.0606060624, 0)

  127. ActivateCredits.ZIndex = 18

  128. ActivateCredits.Font = Enum.Font.SourceSans

  129. ActivateCredits.Text = "Credits"

  130. ActivateCredits.TextColor3 = Color3.fromRGB(255, 255, 255)

  131. ActivateCredits.TextScaled = true

  132. ActivateCredits.TextSize = 14.000

  133. ActivateCredits.TextWrapped = true

  134. UICorner_3.CornerRadius = UDim.new(0.300000012, 0)

  135. UICorner_3.Parent = ActivateCredits

  136. Frame.Parent = ActivateCredits

  137. Frame.BackgroundColor3 = Color3.fromRGB(94, 94, 94)

  138. Frame.Position = UDim2.new(-3.11893439, 0, 0.819999993, 0)

  139. Frame.Size = UDim2.new(4.03499985, 0, 8.47999954, 0)

  140. Frame.Visible = false

  141. Frame.ZIndex = 3

  142. UICorner_4.CornerRadius = UDim.new(0.0500000007, 0)

  143. UICorner_4.Parent = Frame

  144. TextLabel_2.Parent = Frame

  145. TextLabel_2.BackgroundColor3 = Color3.fromRGB(77, 77, 77)

  146. TextLabel_2.BorderSizePixel = 0

  147. TextLabel_2.Position = UDim2.new(0.235439897, 0, 0.0683962256, 0)

  148. TextLabel_2.Size = UDim2.new(0.527881026, 0, 0.323113233, 0)

  149. TextLabel_2.ZIndex = 5

  150. TextLabel_2.Font = Enum.Font.SourceSans

  151. TextLabel_2.Text = "Scripted By DaSmoothDev"

  152. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)

  153. TextLabel_2.TextSize = 55.000

  154. TextLabel_2.TextWrapped = true

  155. UICorner_5.CornerRadius = UDim.new(0.300000012, 0)

  156. UICorner_5.Parent = TextLabel_2

  157. TextLabel_3.Parent = Frame

  158. TextLabel_3.BackgroundColor3 = Color3.fromRGB(77, 77, 77)

  159. TextLabel_3.BorderSizePixel = 0

  160. TextLabel_3.Position = UDim2.new(0.235439897, 0, 0.488207519, 0)

  161. TextLabel_3.Size = UDim2.new(0.527881026, 0, 0.323113233, 0)

  162. TextLabel_3.ZIndex = 5

  163. TextLabel_3.Font = Enum.Font.SourceSans

  164. TextLabel_3.Text = "Gui By DaSmoothDev"

  165. TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)

  166. TextLabel_3.TextSize = 55.000

  167. TextLabel_3.TextWrapped = true

  168. UICorner_6.CornerRadius = UDim.new(0.300000012, 0)

  169. UICorner_6.Parent = TextLabel_3

  170. Guis.Name = "Guis"

  171. Guis.Parent = ScriptViewer

  172. LocalScript.Name = "LocalScript"

  173. LocalScript.Parent = Guis

  174. LocalScript.BackgroundColor3 = Color3.fromRGB(53, 53, 53)

  175. LocalScript.BorderSizePixel = 0

  176. LocalScript.Position = UDim2.new(0.00484778965, 100, 0.50242424, 0)

  177. LocalScript.Selectable = true

  178. LocalScript.Size = UDim2.new(0.144999996, 0, 0.0363636352, 0)

  179. LocalScript.Visible = false

  180. LocalScript.ZIndex = 80

  181. Image.Name = "Image"

  182. Image.Parent = LocalScript

  183. Image.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  184. Image.BackgroundTransparency = 1.000

  185. Image.Position = UDim2.new(0.827586234, 0, 0.100000001, 0)

  186. Image.Size = UDim2.new(0.143678159, 0, 0.833333313, 0)

  187. Image.ZIndex = 82

  188. Image.Image = "http://www.roblox.com/asset/?id=5168599557"

  189. ScriptName.Name = "ScriptName"

  190. ScriptName.Parent = LocalScript

  191. ScriptName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  192. ScriptName.BackgroundTransparency = 1.000

  193. ScriptName.BorderSizePixel = 0

  194. ScriptName.Size = UDim2.new(1, 0, 1, 0)

  195. ScriptName.ZIndex = 81

  196. ScriptName.Font = Enum.Font.SourceSans

  197. ScriptName.TextColor3 = Color3.fromRGB(255, 255, 255)

  198. ScriptName.TextScaled = true

  199. ScriptName.TextSize = 14.000

  200. ScriptName.TextWrapped = true

  201. ActivationButton.Name = "ActivationButton"

  202. ActivationButton.Parent = LocalScript

  203. ActivationButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  204. ActivationButton.BackgroundTransparency = 1.000

  205. ActivationButton.Size = UDim2.new(1, 0, 1, 0)

  206. ActivationButton.ZIndex = 100

  207. ActivationButton.Font = Enum.Font.SourceSans

  208. ActivationButton.TextColor3 = Color3.fromRGB(0, 0, 0)

  209. ActivationButton.TextSize = 14.000

  210. ActivationButton.TextTransparency = 1.000

  211. ModuleScript.Name = "ModuleScript"

  212. ModuleScript.Parent = Guis

  213. ModuleScript.BackgroundColor3 = Color3.fromRGB(53, 53, 53)

  214. ModuleScript.BorderSizePixel = 0

  215. ModuleScript.Position = UDim2.new(0.00499999989, 100, 0.400000006, 0)

  216. ModuleScript.Selectable = true

  217. ModuleScript.Size = UDim2.new(0.144999996, 0, 0.0363636352, 0)

  218. ModuleScript.Visible = false

  219. ModuleScript.ZIndex = 80

  220. Image_2.Name = "Image"

  221. Image_2.Parent = ModuleScript

  222. Image_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  223. Image_2.BackgroundTransparency = 1.000

  224. Image_2.Position = UDim2.new(0.827586234, 0, 0.100000001, 0)

  225. Image_2.Size = UDim2.new(0.143678159, 0, 0.833333313, 0)

  226. Image_2.ZIndex = 83

  227. Image_2.Image = "http://www.roblox.com/asset/?id=5016313061"

  228. ScriptName_2.Name = "ScriptName"

  229. ScriptName_2.Parent = ModuleScript

  230. ScriptName_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  231. ScriptName_2.BackgroundTransparency = 1.000

  232. ScriptName_2.BorderSizePixel = 0

  233. ScriptName_2.Size = UDim2.new(1, 0, 1, 0)

  234. ScriptName_2.ZIndex = 81

  235. ScriptName_2.Font = Enum.Font.SourceSans

  236. ScriptName_2.TextColor3 = Color3.fromRGB(255, 255, 255)

  237. ScriptName_2.TextScaled = true

  238. ScriptName_2.TextSize = 14.000

  239. ScriptName_2.TextWrapped = true

  240. ActivationButton_2.Name = "ActivationButton"

  241. ActivationButton_2.Parent = ModuleScript

  242. ActivationButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  243. ActivationButton_2.BackgroundTransparency = 1.000

  244. ActivationButton_2.Size = UDim2.new(1, 0, 1, 0)

  245. ActivationButton_2.ZIndex = 100

  246. ActivationButton_2.Font = Enum.Font.SourceSans

  247. ActivationButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)

  248. ActivationButton_2.TextSize = 14.000

  249. ActivationButton_2.TextTransparency = 1.000

  250. -- Scripts:

  251. local function XZQQ_fake_script() -- ActivateScripts.LocalScript

  252. ActivateScripts.Activated:Connect(function()

  253. local vis = ActivateScripts.Scripts.Visible

  254. print(vis)

  255. if vis then

  256. return

  257. else

  258. ActivateScripts.Scripts.Visible = true

  259. ActivateCredits.Frame.Visible = false

  260. end

  261. end)

  262. end

  263. coroutine.wrap(XZQQ_fake_script)()

  264. local function CBMY_fake_script() -- ActivateCredits.LocalScript

  265. ActivateCredits.Activated:Connect(function()

  266. local vis = ActivateCredits.Frame.Visible

  267. if vis then

  268. return

  269. else

  270. ActivateScripts.Scripts.Visible = false

  271. ActivateCredits.Frame.Visible = true

  272. end

  273. end)

  274. end

  275. coroutine.wrap(CBMY_fake_script)()

  276. local function AHUB_fake_script()

  277. local userInputService = game:GetService('UserInputService')

  278. userInputService.InputBegan:Connect(function(key , istyping)

  279. if key.KeyCode == Enum.KeyCode.RightShift and not istyping then

  280. local vis = ScriptViewer.Enabled

  281. if vis then

  282. ScriptViewer.Enabled = false

  283. else

  284. ScriptViewer.Enabled = true

  285. end

  286. end

  287. end)

  288. end

  289. coroutine.wrap(AHUB_fake_script)()

  290. -- Gui Functions --

  291. local HttpService = game:GetService("HttpService")

  292. getgenv().Scripts = {}

  293. local function DumpAllScripts()

  294. for i,ScriptA in pairs(getscripts()) do

  295. pcall(function()

  296. local ScriptInfo = {}

  297. ScriptInfo['Script'] = decompile(ScriptA)

  298. ScriptInfo['Class'] = ScriptA.ClassName

  299. ScriptInfo['Path'] = ScriptA:GetFullName()

  300. ScriptInfo['Name'] = ScriptA.Name

  301. getgenv().Scripts[ScriptA.Name] = ScriptInfo

  302. end)

  303. end

  304. makefolder(tostring(game.PlaceId))

  305. writefile(tostring(game.PlaceId)..'//Scripts.json' , HttpService:JSONEncode(getgenv().Scripts))

  306. print('Dumped Scripts')

  307. end

  308. local function LoadScripts()

  309. if not isfile(tostring(game.PlaceId)..'//Scripts.json') then

  310. getgenv().Scripts = {}

  311. DumpAllScripts()

  312. end

  313. print(isfolder(tostring(game.PlaceId)))

  314. getgenv().Scripts = HttpService:JSONDecode(readfile(tostring(game.PlaceId)..'//Scripts.json'))

  315. for i,v in pairs(getgenv().Scripts) do

  316. local ScriptGuiObject = Guis[v['Class']]:Clone()

  317. ScriptGuiObject.Parent = Scripts_2

  318. ScriptGuiObject.Visible = true

  319. ScriptGuiObject.ScriptName.Text = v['Name']

  320. local path = Instance.new("StringValue")

  321. path.Name = 'Path'

  322. path.Parent = ScriptGuiObject

  323. path.Value = v['Path']

  324. getgenv()[path.Value] = v['Script']

  325. ScriptGuiObject.ActivationButton.Activated:Connect(function()

  326. getgenv().ScriptText = v['Script']

  327. end)

  328. end

  329. end

  330. local function Loop()

  331. local RunService = game:GetService("RunService")

  332. RunService.RenderStepped:Connect(function()

  333. if getgenv().ScriptText then

  334. TextLabel.Text = getgenv().ScriptText

  335. end

  336. end)

  337. end

  338. local function FindInScripts(Text)

  339. for i,v in pairs(Scripts_2:GetChildren()) do

  340. if v:IsA('Frame') then

  341. if not string.find(getgenv()[v.Path.Value] , Text) then

  342. v.Visible = false

  343. elseif Text == '' then

  344. v.Visible = true

  345. end

  346. end

  347. end

  348. end

  349. TextButton.Activated:Connect(function()

  350. FindInScripts(TextButton.Input.Text)

  351. end)

  352. LoadScripts()

  353. Loop()

Roblox Script Viewer - Pastebin.com (2024)
Top Articles
Latest Posts
Article information

Author: Golda Nolan II

Last Updated:

Views: 5849

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Golda Nolan II

Birthday: 1998-05-14

Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

Phone: +522993866487

Job: Sales Executive

Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.