Advertisement
ERROR_CODE

New Searcher for ECCS V3

Jan 20th, 2024 (edited)
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 24.16 KB | None | 0 0
  1. if game:GetService("CoreGui"):FindFirstChild("UIGui") then
  2. game:GetService("CoreGui"):FindFirstChild("UIGui"):Destroy()
  3. end
  4. local UIGui = Instance.new("ScreenGui")
  5. local MainFrame = Instance.new("Frame")
  6. local SearchBox = Instance.new("TextBox")
  7. local UICorner_3 = Instance.new("UICorner")
  8. local ScriptAuthor = Instance.new("TextLabel")
  9. local ScriptListFrame = Instance.new("ScrollingFrame")
  10. local UIPadding = Instance.new("UIPadding")
  11. local Scripts = Instance.new("Folder")
  12. local UIGridLayout = Instance.new("UIGridLayout")
  13. local ScriptFrame = Instance.new("ImageLabel")
  14. local UICorner_6 = Instance.new("UICorner")
  15. local ScriptTitle = Instance.new("TextLabel")
  16. local ExecuteButton = Instance.new("TextButton")
  17. local UICorner_7 = Instance.new("UICorner")
  18. local InfoButton = Instance.new("TextButton")
  19. local UICorner_8 = Instance.new("UICorner")
  20. local ScriptGame = Instance.new("TextLabel")
  21. local VerifiedScriptFrame = Instance.new("ImageLabel")
  22. local UICorner_9 = Instance.new("UICorner")
  23. local ScriptTitle_2 = Instance.new("TextLabel")
  24. local VerifiedIcon = Instance.new("ImageLabel")
  25. local ExecuteButton_2 = Instance.new("TextButton")
  26. local UICorner_10 = Instance.new("UICorner")
  27. local UICorner_11 = Instance.new("UICorner")
  28. local ScriptAuthor_2 = Instance.new("TextLabel")
  29. local ScriptGame_2 = Instance.new("TextLabel")
  30. local ExecuteButtonBackground = Instance.new("Frame")
  31. local ExecuteButtonBackgroundUICorner = Instance.new("UICorner")
  32. local CopyLinkButton = Instance.new("TextButton")
  33. local CopyLinkButtonUICorner = Instance.new("UICorner")
  34. local CopyLinkButton_2 = Instance.new("TextButton")
  35. local CopyLinkButtonUICorner_2 = Instance.new("UICorner")
  36. local CopyScriptButton = Instance.new("TextButton")
  37. local CopyScriptButtonUICorner = Instance.new("UICorner")
  38. local CopyScriptButton_2 = Instance.new("TextButton")
  39. local CopyScriptButtonUICorner_2 = Instance.new("UICorner")
  40. local OpenDescriptionButton = Instance.new("TextButton")
  41. local OpenDescriptionButtonUICorner = Instance.new("UICorner")
  42. local OpenDescriptionButton_2 = Instance.new("TextButton")
  43. local OpenDescriptionButtonUICorner_2 = Instance.new("UICorner")
  44. local CopyLinkButtonBackground = Instance.new("Frame")
  45. local CopyLinkButtonBackgroundUICorner = Instance.new("UICorner")
  46. local CopyScriptBackground = Instance.new("Frame")
  47. local CopyScriptBackgroundUICorner = Instance.new("UICorner")
  48. local OpenDescriptionBackground = Instance.new("Frame")
  49. local OpenDescriptionBackgroundUICorner = Instance.new("UICorner")
  50. local ExecuteButtonBackground_2 = Instance.new("Frame")
  51. local ExecuteButtonBackgroundUICorner_2 = Instance.new("UICorner")
  52. local CopyLinkButtonBackground_2 = Instance.new("Frame")
  53. local CopyLinkButtonBackgroundUICorner_2 = Instance.new("UICorner")
  54. local CopyScriptBackground_2 = Instance.new("Frame")
  55. local CopyScriptBackgroundUICorner_2 = Instance.new("UICorner")
  56. local OpenDescriptionBackground_2 = Instance.new("Frame")
  57. local OpenDescriptionBackgroundUICorner_2 = Instance.new("UICorner")
  58. local DescriptionScript = Instance.new("TextButton")
  59. local DescriptionScriptUICorner = Instance.new("UICorner")
  60. local ReloadBackgroundButton = Instance.new("Frame")
  61. local ReloadBackgroundButtonUICorner = Instance.new("UICorner")
  62. local ReloadButton = Instance.new("ImageButton")
  63. local ReloadButtonUICorner = Instance.new("UICorner")
  64.  
  65. UIGui.Name = "UIGui"
  66. UIGui.Parent = game.CoreGui
  67. game.CoreGui.UIGui.Enabled = true
  68.  
  69. DescriptionScript.Visible = false
  70.  
  71. MainFrame.Name = "MainFrame"
  72. MainFrame.Parent = UIGui
  73. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  74. MainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  75. MainFrame.BackgroundTransparency = 1
  76. MainFrame.Position = UDim2.new(0.5, 0, -1, 0)
  77. MainFrame.Size = UDim2.new(0, 100, 0, 100)
  78.  
  79. SearchBox.Name = "SearchBox"
  80. SearchBox.Parent = MainFrame
  81. SearchBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  82. SearchBox.BackgroundTransparency = 0.5
  83. SearchBox.Position = UDim2.new(-3.55, 0, -1.8, 0)
  84. SearchBox.Size = UDim2.new(0, 855, 0, 25)
  85. SearchBox.ClearTextOnFocus = false
  86. SearchBox.Font = Enum.Font.SourceSansBold
  87. SearchBox.PlaceholderText = "Tap to search"
  88. SearchBox.Text = ""
  89. SearchBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  90. SearchBox.TextTransparency = 0
  91. SearchBox.TextScaled = true
  92. SearchBox.TextSize = 14.000
  93. SearchBox.TextWrapped = true
  94.  
  95. UICorner_3.CornerRadius = UDim.new(0, 12)
  96. UICorner_3.Parent = SearchBox
  97.  
  98. ScriptListFrame.Name = "ScriptListFrame"
  99. ScriptListFrame.Parent = MainFrame
  100. ScriptListFrame.Active = true
  101. ScriptListFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  102. ScriptListFrame.BackgroundTransparency = 1
  103. ScriptListFrame.BorderSizePixel = 0
  104. ScriptListFrame.Position = UDim2.new(-3.8, 0, -1.5, 0)
  105. ScriptListFrame.Size = UDim2.new(0, 1000, 0, 420)
  106. ScriptListFrame.ZIndex = 2
  107. ScriptListFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  108.  
  109. ScriptAuthor.Name = "ScriptAuthor"
  110. ScriptAuthor.Parent = ScriptFrame
  111. ScriptAuthor.BackgroundTransparency = 1
  112. ScriptAuthor.Position = UDim2.new(0, 10, 0, 150)
  113. ScriptAuthor.Size = UDim2.new(0, 280, 0, 30)
  114. ScriptAuthor.Font = Enum.Font.SourceSansBold
  115. ScriptAuthor.Text = "by ScriptAuthor"
  116. ScriptAuthor.TextColor3 = Color3.fromRGB(192, 192, 192)
  117. ScriptAuthor.TextSize = 14.000
  118. ScriptAuthor.TextWrapped = true
  119. ScriptAuthor.TextScaled = true
  120. ScriptAuthor.TextXAlignment = Enum.TextXAlignment.Left
  121.  
  122. UIPadding.Parent = ScriptListFrame
  123. UIPadding.PaddingBottom = UDim.new(0, 10)
  124. UIPadding.PaddingLeft = UDim.new(0, 25)
  125. UIPadding.PaddingRight = UDim.new(0, 25)
  126. UIPadding.PaddingTop = UDim.new(0, 10)
  127.  
  128. Scripts.Name = "Scripts"
  129. Scripts.Parent = ScriptListFrame
  130.  
  131. UIGridLayout.Parent = Scripts
  132. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  133. UIGridLayout.CellPadding = UDim2.new(0, 20, 0, 20)
  134. UIGridLayout.CellSize = UDim2.new(0, 855, 0, 400)
  135.  
  136. ScriptFrame.Name = "ScriptFrame"
  137. ScriptFrame.Parent = Scripts
  138. ScriptFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  139. ScriptFrame.BackgroundTransparency = 0.5
  140. ScriptFrame.Size = UDim2.new(0, 200, 0, 100)
  141. ScriptFrame.Position = UDim2.new(1.5, 0, 0, 0)
  142. ScriptFrame.Image = "rbxassetid://16050153732"
  143.  
  144. UICorner_6.CornerRadius = UDim.new(0, 12)
  145. UICorner_6.Parent = ScriptFrame
  146.  
  147. ScriptTitle.Name = "ScriptTitle"
  148. ScriptTitle.Parent = ScriptFrame
  149. ScriptTitle.BackgroundTransparency = 1
  150. ScriptTitle.Position = UDim2.new(0, 10, 0, 20)
  151. ScriptTitle.Size = UDim2.new(0, 840, 0, 100)
  152. ScriptTitle.Font = Enum.Font.SourceSansBold
  153. ScriptTitle.Text = "Script Title"
  154. ScriptTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  155. ScriptTitle.TextScaled = true
  156. ScriptTitle.TextSize = 14.000
  157. ScriptTitle.TextWrapped = true
  158. ScriptTitle.TextXAlignment = Enum.TextXAlignment.Left
  159.  
  160. ExecuteButtonBackground.Name = "ExecuteButtonBackground"
  161. ExecuteButtonBackground.Parent = ScriptFrame
  162. ExecuteButtonBackground.BackgroundColor3 = Color3.fromRGB(55,55, 55)
  163. ExecuteButtonBackground.Position = UDim2.new(0.0123, 0, 0.794, 0)
  164. ExecuteButtonBackground.Size = UDim2.new(0, 205, 0, 55)
  165.  
  166. ExecuteButtonBackgroundUICorner.Parent = ExecuteButtonBackground
  167. ExecuteButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  168.  
  169. ExecuteButton.Name = "ExecuteButton"
  170. ExecuteButton.Parent = ScriptFrame
  171. ExecuteButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  172. ExecuteButton.Position = UDim2.new(0.015, 0, 0.8, 0)
  173. ExecuteButton.Size = UDim2.new(0, 200, 0, 50)
  174. ExecuteButton.AutoButtonColor = false
  175. ExecuteButton.Font = Enum.Font.SourceSansBold
  176. ExecuteButton.Text = "Execute"
  177. ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  178. ExecuteButton.TextSize = 14.000
  179. ExecuteButton.TextScaled = true
  180. ExecuteButton.TextWrapped = true
  181.  
  182. UICorner_7.CornerRadius = UDim.new(0, 12)
  183. UICorner_7.Parent = ExecuteButton
  184.  
  185. CopyLinkButtonBackground.Name = "CopyLinkButtonBackground"
  186. CopyLinkButtonBackground.Parent = ScriptFrame
  187. CopyLinkButtonBackground.BackgroundColor3 = Color3.fromRGB(55,55, 55)
  188. CopyLinkButtonBackground.Position = UDim2.new(0.2569, 0, 0.794, 0)
  189. CopyLinkButtonBackground.Size = UDim2.new(0, 205, 0, 55)
  190.  
  191. CopyLinkButtonBackgroundUICorner.Parent = CopyLinkButtonBackground
  192. CopyLinkButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  193.  
  194. CopyLinkButton.Name = "CopyLinkButton"
  195. CopyLinkButton.Parent = ScriptFrame
  196. CopyLinkButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  197. CopyLinkButton.Position = UDim2.new(0.26, 0, 0.8, 0)
  198. CopyLinkButton.Size = UDim2.new(0, 200, 0, 50)
  199. CopyLinkButton.AutoButtonColor = false
  200. CopyLinkButton.Font = Enum.Font.SourceSansBold
  201. CopyLinkButton.Text = "Copy Link"
  202. CopyLinkButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  203. CopyLinkButton.TextSize = 14.000
  204. CopyLinkButton.TextScaled = true
  205. CopyLinkButton.TextWrapped = true
  206.  
  207. CopyLinkButtonUICorner.CornerRadius = UDim.new(0, 12)
  208. CopyLinkButtonUICorner.Parent = CopyLinkButton
  209.  
  210.  
  211. CopyScriptBackground.Name = "CopyScriptBackground"
  212. CopyScriptBackground.Parent = ScriptFrame
  213. CopyScriptBackground.BackgroundColor3 = Color3.fromRGB(55,55, 55)
  214. CopyScriptBackground.Position = UDim2.new(0.5022, 0, 0.794, 0)
  215. CopyScriptBackground.Size = UDim2.new(0, 205, 0, 55)
  216.  
  217. CopyScriptBackgroundUICorner.Parent = CopyScriptBackground
  218. CopyScriptBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  219.  
  220.  
  221. CopyScriptButton.Name = "CopyScriptButton"
  222. CopyScriptButton.Parent = ScriptFrame
  223. CopyScriptButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  224. CopyScriptButton.Position = UDim2.new(0.505, 0, 0.8, 0)
  225. CopyScriptButton.Size = UDim2.new(0, 200, 0, 50)
  226. CopyScriptButton.AutoButtonColor = false
  227. CopyScriptButton.Font = Enum.Font.SourceSansBold
  228. CopyScriptButton.Text = "Copy Script"
  229. CopyScriptButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  230. CopyScriptButton.TextSize = 14.000
  231. CopyScriptButton.TextScaled = true
  232. CopyScriptButton.TextWrapped = true
  233.  
  234. CopyScriptButtonUICorner.CornerRadius = UDim.new(0, 12)
  235. CopyScriptButtonUICorner.Parent = CopyScriptButton
  236.  
  237.  
  238. OpenDescriptionBackground.Name = "OpenDescriptionBackground"
  239. OpenDescriptionBackground.Parent = ScriptFrame
  240. OpenDescriptionBackground.BackgroundColor3 = Color3.fromRGB(55,55, 55)
  241. OpenDescriptionBackground.Position = UDim2.new(0.747, 0, 0.794, 0)
  242. OpenDescriptionBackground.Size = UDim2.new(0, 205, 0, 55)
  243.  
  244. OpenDescriptionBackgroundUICorner.Parent = OpenDescriptionBackground
  245. OpenDescriptionBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  246.  
  247.  
  248. OpenDescriptionButton.Name = "OpenDescriptionButton"
  249. OpenDescriptionButton.Parent = ScriptFrame
  250. OpenDescriptionButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  251. OpenDescriptionButton.Position = UDim2.new(0.75, 0, 0.8, 0)
  252. OpenDescriptionButton.Size = UDim2.new(0, 200, 0, 50)
  253. OpenDescriptionButton.AutoButtonColor = false
  254. OpenDescriptionButton.Font = Enum.Font.SourceSansBold
  255. OpenDescriptionButton.Text = "Description"
  256. OpenDescriptionButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  257. OpenDescriptionButton.TextSize = 14.000
  258. OpenDescriptionButton.TextScaled = true
  259. OpenDescriptionButton.TextWrapped = true
  260.  
  261. OpenDescriptionButtonUICorner.CornerRadius = UDim.new(0, 12)
  262. OpenDescriptionButtonUICorner.Parent = OpenDescriptionButton
  263.  
  264. ScriptGame.Name = "ScriptGame"
  265. ScriptGame.Parent = ScriptFrame
  266. ScriptGame.BackgroundTransparency = 1
  267. ScriptGame.Position = UDim2.new(0, 10, 0, 220)
  268. ScriptGame.Size = UDim2.new(0, 280, 0, 30)
  269. ScriptGame.Font = Enum.Font.SourceSansBold
  270. ScriptGame.Text = "Game"
  271. ScriptGame.TextColor3 = Color3.fromRGB(192, 192, 192)
  272. ScriptGame.TextSize = 14
  273. ScriptGame.TextWrapped = true
  274. ScriptGame.TextScaled = true
  275. ScriptGame.TextXAlignment = Enum.TextXAlignment.Left
  276.  
  277. VerifiedScriptFrame.Name = "VerifiedScriptFrame"
  278. VerifiedScriptFrame.Parent = Scripts
  279. VerifiedScriptFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  280. VerifiedScriptFrame.Size = UDim2.new(0, 300, 0, 150)
  281. VerifiedScriptFrame.Image = "rbxassetid://16050153732"
  282.  
  283. UICorner_9.CornerRadius = UDim.new(0, 12)
  284. UICorner_9.Parent = VerifiedScriptFrame
  285.  
  286. ScriptTitle_2.Name = "ScriptTitle"
  287. ScriptTitle_2.Parent = VerifiedScriptFrame
  288. ScriptTitle_2.BackgroundTransparency = 1
  289. ScriptTitle_2.Position = UDim2.new(0, 10, 0, 20)
  290. ScriptTitle_2.Size = UDim2.new(0, 840, 0, 100)
  291. ScriptTitle_2.Font = Enum.Font.SourceSansBold
  292. ScriptTitle_2.Text = "Script Title"
  293. ScriptTitle_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  294. ScriptTitle_2.TextScaled = true
  295. ScriptTitle_2.TextSize = 14.000
  296. ScriptTitle_2.TextWrapped = true
  297. ScriptTitle_2.TextXAlignment = Enum.TextXAlignment.Left
  298.  
  299. VerifiedIcon.Name = "VerifiedIcon"
  300. VerifiedIcon.Parent = VerifiedScriptFrame
  301. VerifiedIcon.BackgroundTransparency = 0
  302. VerifiedIcon.Position = UDim2.new(0.75, 0, 0.35, 0)
  303. VerifiedIcon.Size = UDim2.new(0, 215, 0, 150)
  304. VerifiedIcon.Image = "rbxassetid://15621211889"
  305. VerifiedIcon.BackgroundTransparency = 1
  306.  
  307. ExecuteButtonBackground_2.Name = "ExecuteButtonBackground_2"
  308. ExecuteButtonBackground_2.Parent = VerifiedScriptFrame
  309. ExecuteButtonBackground_2.BackgroundColor3 = Color3.fromRGB(55,55, 55)
  310. ExecuteButtonBackground_2.Position = UDim2.new(0.0123, 0, 0.794, 0)
  311. ExecuteButtonBackground_2.Size = UDim2.new(0, 205, 0, 55)
  312.  
  313. ExecuteButtonBackgroundUICorner_2.Parent = ExecuteButtonBackground_2
  314. ExecuteButtonBackgroundUICorner_2.CornerRadius = UDim.new(0, 15)
  315.  
  316. ExecuteButton_2.Name = "ExecuteButton"
  317. ExecuteButton_2.Parent = VerifiedScriptFrame
  318. ExecuteButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  319. ExecuteButton_2.Position = UDim2.new(0.015, 0, 0.8, 0)
  320. ExecuteButton_2.Size = UDim2.new(0, 200, 0, 50)
  321. ExecuteButton_2.AutoButtonColor = false
  322. ExecuteButton_2.Font = Enum.Font.SourceSansBold
  323. ExecuteButton_2.Text = "Execute"
  324. ExecuteButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  325. ExecuteButton_2.TextSize = 14.000
  326. ExecuteButton_2.TextScaled = true
  327. ExecuteButton_2.TextWrapped = true
  328.  
  329. UICorner_10.CornerRadius = UDim.new(0, 12)
  330. UICorner_10.Parent = ExecuteButton_2
  331.  
  332. CopyLinkButtonBackground_2.Name = "CopyLinkButtonBackground_2"
  333. CopyLinkButtonBackground_2.Parent = VerifiedScriptFrame
  334. CopyLinkButtonBackground_2.BackgroundColor3 = Color3.fromRGB(55,55, 55)
  335. CopyLinkButtonBackground_2.Position = UDim2.new(0.2569, 0, 0.794, 0)
  336. CopyLinkButtonBackground_2.Size = UDim2.new(0, 205, 0, 55)
  337.  
  338. CopyLinkButtonBackgroundUICorner_2.Parent = CopyLinkButtonBackground_2
  339. CopyLinkButtonBackgroundUICorner_2.CornerRadius = UDim.new(0, 15)
  340.  
  341. CopyLinkButton_2.Name = "CopyLinkButton"
  342. CopyLinkButton_2.Parent = VerifiedScriptFrame
  343. CopyLinkButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  344. CopyLinkButton_2.Position = UDim2.new(0.26, 0, 0.8, 0)
  345. CopyLinkButton_2.Size = UDim2.new(0, 200, 0, 50)
  346. CopyLinkButton_2.AutoButtonColor = false
  347. CopyLinkButton_2.Font = Enum.Font.SourceSansBold
  348. CopyLinkButton_2.Text = "Copy Link"
  349. CopyLinkButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  350. CopyLinkButton_2.TextSize = 14.000
  351. CopyLinkButton_2.TextScaled = true
  352. CopyLinkButton_2.TextWrapped = true
  353.  
  354. CopyLinkButtonUICorner_2.CornerRadius = UDim.new(0, 12)
  355. CopyLinkButtonUICorner_2.Parent = CopyLinkButton_2
  356.  
  357.  
  358. CopyScriptBackground_2.Name = "CopyScriptBackground_2"
  359. CopyScriptBackground_2.Parent = VerifiedScriptFrame
  360. CopyScriptBackground_2.BackgroundColor3 = Color3.fromRGB(55,55, 55)
  361. CopyScriptBackground_2.Position = UDim2.new(0.5022, 0, 0.794, 0)
  362. CopyScriptBackground_2.Size = UDim2.new(0, 205, 0, 55)
  363.  
  364. CopyScriptBackgroundUICorner_2.Parent = CopyScriptBackground_2
  365. CopyScriptBackgroundUICorner_2.CornerRadius = UDim.new(0, 15)
  366.  
  367.  
  368. CopyScriptButton_2.Name = "CopyScriptButton"
  369. CopyScriptButton_2.Parent = VerifiedScriptFrame
  370. CopyScriptButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  371. CopyScriptButton_2.Position = UDim2.new(0.505, 0, 0.8, 0)
  372. CopyScriptButton_2.Size = UDim2.new(0, 200, 0, 50)
  373. CopyScriptButton_2.AutoButtonColor = false
  374. CopyScriptButton_2.Font = Enum.Font.SourceSansBold
  375. CopyScriptButton_2.Text = "Copy Script"
  376. CopyScriptButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  377. CopyScriptButton_2.TextSize = 14.000
  378. CopyScriptButton_2.TextScaled = true
  379. CopyScriptButton_2.TextWrapped = true
  380.  
  381. CopyScriptButtonUICorner_2.CornerRadius = UDim.new(0, 12)
  382. CopyScriptButtonUICorner_2.Parent = CopyScriptButton_2
  383.  
  384.  
  385. OpenDescriptionBackground_2.Name = "OpenDescriptionBackground_2"
  386. OpenDescriptionBackground_2.Parent = VerifiedScriptFrame
  387. OpenDescriptionBackground_2.BackgroundColor3 = Color3.fromRGB(55,55, 55)
  388. OpenDescriptionBackground_2.Position = UDim2.new(0.747, 0, 0.794, 0)
  389. OpenDescriptionBackground_2.Size = UDim2.new(0, 205, 0, 55)
  390.  
  391. OpenDescriptionBackgroundUICorner_2.Parent = OpenDescriptionBackground_2
  392. OpenDescriptionBackgroundUICorner_2.CornerRadius = UDim.new(0, 15)
  393.  
  394.  
  395. OpenDescriptionButton_2.Name = "OpenDescriptionButton"
  396. OpenDescriptionButton_2.Parent = VerifiedScriptFrame
  397. OpenDescriptionButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  398. OpenDescriptionButton_2.Position = UDim2.new(0.75, 0, 0.8, 0)
  399. OpenDescriptionButton_2.Size = UDim2.new(0, 200, 0, 50)
  400. OpenDescriptionButton_2.AutoButtonColor = false
  401. OpenDescriptionButton_2.Font = Enum.Font.SourceSansBold
  402. OpenDescriptionButton_2.Text = "Description"
  403. OpenDescriptionButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  404. OpenDescriptionButton_2.TextSize = 14.000
  405. OpenDescriptionButton_2.TextScaled = true
  406. OpenDescriptionButton_2.TextWrapped = true
  407.  
  408. OpenDescriptionButtonUICorner_2.CornerRadius = UDim.new(0, 12)
  409. OpenDescriptionButtonUICorner_2.Parent = OpenDescriptionButton_2
  410.  
  411. ScriptAuthor_2.Name = "ScriptAuthor"
  412. ScriptAuthor_2.Parent = VerifiedScriptFrame
  413. ScriptAuthor_2.BackgroundTransparency = 1
  414. ScriptAuthor_2.Position = UDim2.new(0, 10, 0, 150)
  415. ScriptAuthor_2.Size = UDim2.new(0, 280, 0, 30)
  416. ScriptAuthor_2.Font = Enum.Font.SourceSansBold
  417. ScriptAuthor_2.Text = "by ScriptAuthor"
  418. ScriptAuthor_2.TextColor3 = Color3.fromRGB(192, 192, 192)
  419. ScriptAuthor_2.TextSize = 14.000
  420. ScriptAuthor_2.TextWrapped = true
  421. ScriptAuthor_2.TextScaled = true
  422. ScriptAuthor_2.TextXAlignment = Enum.TextXAlignment.Left
  423.  
  424. ScriptGame_2.Name = "ScriptGame"
  425. ScriptGame_2.Parent = VerifiedScriptFrame
  426. ScriptGame_2.BackgroundTransparency = 1
  427. ScriptGame_2.Position = UDim2.new(0, 10, 0, 220)
  428. ScriptGame_2.Size = UDim2.new(0, 280, 0, 30)
  429. ScriptGame_2.Font = Enum.Font.Code
  430. ScriptGame_2.Text = "Game"
  431. ScriptGame_2.TextColor3 = Color3.fromRGB(192, 192, 192)
  432. ScriptGame_2.TextSize = 14.000
  433. ScriptGame_2.TextWrapped = true
  434. ScriptGame_2.TextScaled = true
  435. ScriptGame_2.TextXAlignment = Enum.TextXAlignment.Left
  436.  
  437. DescriptionScript.Name = "DescriptionScript"
  438. DescriptionScript.Parent = MainFrame
  439. DescriptionScript.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  440. DescriptionScript.Position = UDim2.new(-3.55, 0, -1.4, 0)
  441. DescriptionScript.Size = UDim2.new(0, 855, 0, 400)
  442. DescriptionScript.BackgroundTransparency = 0.3
  443. DescriptionScript.AutoButtonColor = false
  444. DescriptionScript.Font = Enum.Font.SourceSansBold
  445. DescriptionScript.Text = "Description"
  446. DescriptionScript.TextColor3 = Color3.fromRGB(255, 255, 255)
  447. DescriptionScript.TextSize = 14.000
  448. DescriptionScript.TextScaled = true
  449. DescriptionScript.TextWrapped = true
  450.  
  451. DescriptionScriptUICorner.CornerRadius = UDim.new(0, 12)
  452. DescriptionScriptUICorner.Parent = DescriptionScript
  453.  
  454. ReloadBackgroundButton.Name = "ReloadBackgroundButton"
  455. ReloadBackgroundButton.Parent = MainFrame
  456. ReloadBackgroundButton.AnchorPoint = Vector2.new(0.5, 0.5)
  457. ReloadBackgroundButton.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  458. ReloadBackgroundButton.Position = UDim2.new(-3.9, 0, 2.2, 0)
  459. ReloadBackgroundButton.Size = UDim2.new(0, 50, 0, 50)
  460.  
  461. ReloadBackgroundButtonUICorner.CornerRadius = UDim.new(0, 15)
  462. ReloadBackgroundButtonUICorner.Parent = ReloadBackgroundButton
  463.  
  464. ReloadButton.Name = "ReloadButton"
  465. ReloadButton.Parent = ReloadBackgroundButton
  466. ReloadButton.AnchorPoint = Vector2.new(0.5, 0.5)
  467. ReloadButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  468. ReloadButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  469. ReloadButton.Size = UDim2.new(0, 45, 0, 45)
  470. ReloadButton.Image = "rbxassetid://16422858330"
  471. ReloadButton.AutoButtonColor = false
  472.  
  473. ReloadButtonUICorner.CornerRadius = UDim.new(0, 12)
  474. ReloadButtonUICorner.Parent = ReloadButton
  475.  
  476. local getfakeasset = getcustomasset or getsynasset
  477.  
  478. local HttpService = game:GetService("HttpService")
  479. local TweenService = game:GetService("TweenService")
  480. local TextService = game:GetService("TextService")
  481.  
  482. local page = 1
  483. local gquery = ""
  484.  
  485. function tableConcat(t1,t2)
  486.     for i, v in pairs(t2) do
  487.         table.insert(t1, v)
  488.     end
  489.     return t1
  490. end
  491.  
  492.  
  493. ScriptListFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  494.  
  495. ScriptListFrame.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  496.  
  497.  
  498. local VerifiedScript = VerifiedScriptFrame:Clone()
  499. local Script = ScriptFrame:Clone()
  500. ScriptFrame:Destroy()
  501. VerifiedScriptFrame:Destroy()
  502.  
  503.  
  504.  
  505. function _if(a, b, c)
  506.     if a then return b else return c end
  507. end
  508.  
  509. function fastmodeExec(func)
  510.     if getgenv().fastmode == true then
  511.         task.spawn(func)
  512.     else
  513.         func()
  514.     end
  515. end
  516.  
  517. function fetchScripts(query, page)
  518.     page = page or 1
  519.     query = HttpService:UrlEncode(query)
  520.    
  521.     local url = _if(query == "", "https://www.scriptblox.com/api/script/fetch?page="..tostring(page), "https://scriptblox.com/api/script/search?q="..query.."&max=100&mode=free&page=".. tostring(page))
  522.     local req = HttpService:JSONDecode(game:HttpGetAsync(url)).result
  523.    
  524.     return req.scripts
  525. end
  526.  
  527. function fixScript(scriptObj)
  528.     if not scriptObj["script"] or not scriptObj["owner"] or not scriptObj["features"] then
  529.         local cacheObj = cache[scriptObj["_id"]]
  530.         if cacheObj then
  531.             scriptObj["script"] = _if(scriptObj["script"], scriptObj["script"], cacheObj.script)
  532.             scriptObj["features"] = _if(scriptObj["features"], scriptObj["features"], cacheObj.features)
  533.             scriptObj["owner"] = _if(scriptObj["owner"], scriptObj["owner"], cacheObj.owner)
  534.         else
  535.             local req = HttpService:JSONDecode(game:HttpGetAsync("https://www.scriptblox.com/api/script/".. scriptObj.slug)).script
  536.             scriptObj["script"] = _if(scriptObj["script"], scriptObj["script"], req.script)
  537.             scriptObj["features"] = _if(scriptObj["features"], scriptObj["features"], req.features)
  538.             scriptObj["owner"] = _if(scriptObj["owner"], scriptObj["owner"], req.owner)
  539.            
  540.             cache[scriptObj["_id"]] = req
  541.         end
  542.     end
  543.     return scriptObj
  544. end
  545.  
  546.  
  547.  
  548. function refreshScripts(scriptTbl)
  549.     if #scriptTbl <= 0 then
  550.         SearchBox.Text = ""
  551.       SearchBox.PlaceholderText = "No script founded"
  552. wait(1)
  553. SearchBox.PlaceholderText = "Tap to search"
  554.         return
  555.     else
  556.         SearchBox.PlaceholderText = "Tap to search"
  557.     end
  558.    
  559.     local UIGridLayoutCopy = UIGridLayout:Clone()
  560.     Scripts:ClearAllChildren()
  561.     UIGridLayoutCopy.Parent = Scripts
  562.    
  563.     addScripts(scriptTbl)
  564. end
  565.  
  566. function addScripts(scriptTbl)
  567.     for i, v in pairs(scriptTbl) do
  568.         fastmodeExec(function()
  569.             local newScript
  570.  
  571.             v = fixScript(v)
  572.  
  573.             if v.verified == true then
  574.                 newScript = VerifiedScript:Clone()
  575.                 newScript.ScriptTitle.Text = v.title
  576.                 newScript.ScriptAuthor.Text = "by ".. v.owner.username
  577.                 newScript.ScriptGame.Text = v.game.name
  578.                 newScript.Parent = Scripts
  579.             else
  580.                 newScript = Script:Clone()
  581.                 newScript.ScriptTitle.Text = v.title
  582.                 newScript.ScriptAuthor.Text = "by ".. v.owner.username
  583.                 newScript.ScriptGame.Text = v.game.name
  584.                 newScript.Parent = Scripts
  585.             end
  586.  
  587.             newScript.ExecuteButton.MouseButton1Click:Connect(function()
  588.  
  589.                 loadstring(v.script)()
  590.             end)
  591.  
  592.             newScript.CopyLinkButton.MouseButton1Click:Connect(function()
  593.             setclipboard("https://scriptblox.com/script/".. v.slug)
  594. end)
  595.  
  596. newScript.CopyScriptButton.MouseButton1Click:Connect(function()
  597. setclipboard(v.script)
  598. end)
  599.  
  600. newScript.OpenDescriptionButton.MouseButton1Click:Connect(function()
  601. DescriptionScript.Visible = true
  602. DescriptionScript.Text = v.features
  603. end)
  604.  
  605.  
  606. end)
  607. end
  608.  
  609.    
  610.     pagefetchrunning = false
  611. end
  612.  
  613. DescriptionScript.MouseButton1Click:Connect(function()
  614. DescriptionScript.Visible = false
  615. end)
  616.  
  617. SearchBox.FocusLost:Connect(function(enterPressed)
  618.     if enterPressed then
  619.         gquery = SearchBox.Text
  620.         page = 1
  621.         local scriptsTbl = fetchScripts(SearchBox.Text, 1)
  622.         refreshScripts(scriptsTbl)
  623.     end
  624. end)
  625.  
  626. ReloadButton.MouseButton1Click:Connect(function()
  627. gquery = SearchBox.Text
  628.         page = 1
  629.         local scriptsTbl = fetchScripts(SearchBox.Text, 1)
  630.         refreshScripts(scriptsTbl)
  631. end)
  632.  
  633. refreshScripts(fetchScripts(gquery, 1))
  634.  
  635. ScriptListFrame:GetPropertyChangedSignal("CanvasPosition"):Connect(function()
  636.     if (ScriptListFrame.CanvasPosition.Y + ScriptListFrame.AbsoluteSize.Y) >= ScriptListFrame.AbsoluteCanvasSize.Y -200 and not pagefetchrunning then
  637.         page = page + 1
  638.         pagefetchrunning = true
  639.         addScripts(fetchScripts(gquery, page))
  640.     end
  641. end)
  642. MainFrame:TweenPosition(UDim2.new(0.5, 0, 0.5, 0),"InOut","Sine",0.2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement