ERROR_CODE

ECCS•Searcher

Dec 10th, 2023 (edited)
5,469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 41.52 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 UserInputService = game:GetService("UserInputService")
  6. local MainFrame = Instance.new("Frame")
  7. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  8. local UICorner = Instance.new("UICorner")
  9. local TopBarFrame = Instance.new("Frame")
  10. local UICorner_2 = Instance.new("UICorner")
  11. local SearchBox = Instance.new("TextBox")
  12. local UICorner_3 = Instance.new("UICorner")
  13. local Title = Instance.new("TextLabel")
  14. local CloseButton = Instance.new("TextButton")
  15. local UICorner_4 = Instance.new("UICorner")
  16. local UICorner_5 = Instance.new("UICorner")
  17. local ScriptAuthor = Instance.new("TextLabel")
  18. local TopbarBottomCover = Instance.new("Frame")
  19. local ScriptListFrame = Instance.new("ScrollingFrame")
  20. local UIPadding = Instance.new("UIPadding")
  21. local Scripts = Instance.new("Folder")
  22. local UIGridLayout = Instance.new("UIGridLayout")
  23. local ScriptFrame = Instance.new("Frame")
  24. local UICorner_6 = Instance.new("UICorner")
  25. local ScriptTitle = Instance.new("TextLabel")
  26. local ExecuteButton = Instance.new("TextButton")
  27. local UICorner_7 = Instance.new("UICorner")
  28. local InfoButton = Instance.new("TextButton")
  29. local UICorner_8 = Instance.new("UICorner")
  30. local ScriptGame = Instance.new("TextLabel")
  31. local VerifiedScriptFrame = Instance.new("Frame")
  32. local UICorner_9 = Instance.new("UICorner")
  33. local ScriptTitle_2 = Instance.new("TextLabel")
  34. local VerifiedIcon = Instance.new("ImageLabel")
  35. local ExecuteButton_2 = Instance.new("TextButton")
  36. local UICorner_10 = Instance.new("UICorner")
  37. local InfoButton_2 = Instance.new("TextButton")
  38. local UICorner_11 = Instance.new("UICorner")
  39. local ScriptAuthor_2 = Instance.new("TextLabel")
  40. local ScriptGame_2 = Instance.new("TextLabel")
  41. local ScriptListBackgroundFrame = Instance.new("Frame")
  42. local UICorner_12 = Instance.new("UICorner")
  43. local NoScriptsFound = Instance.new("TextLabel")
  44. local InfoBox = Instance.new("ScrollingFrame")
  45. local UIListLayout = Instance.new("UIListLayout")
  46. local UICorner_13 = Instance.new("UICorner")
  47. local Info = Instance.new("Frame")
  48. local PreviewImage = Instance.new("ImageLabel")
  49. local UIScale = Instance.new("UIScale")
  50. local UICorner_14 = Instance.new("UICorner")
  51. local Author = Instance.new("Frame")
  52. local InfoBoxAuthor = Instance.new("TextLabel")
  53. local ProfilePicture = Instance.new("ImageLabel")
  54. local UICorner_15 = Instance.new("UICorner")
  55. local Title_2 = Instance.new("Frame")
  56. local InfoBoxTitle = Instance.new("TextLabel")
  57. local Game = Instance.new("TextLabel")
  58. local Buttons = Instance.new("Frame")
  59. local UIListLayout_2 = Instance.new("UIListLayout")
  60. local Close = Instance.new("TextButton")
  61. local UICorner_16 = Instance.new("UICorner")
  62. local CopyScriptBloxLink = Instance.new("TextButton")
  63. local UICorner_17 = Instance.new("UICorner")
  64. local CopyScriptButton = Instance.new("TextButton")
  65. local UICorner_18 = Instance.new("UICorner")
  66. local ExecuteButton_3 = Instance.new("TextButton")
  67. local UICorner_19 = Instance.new("UICorner")
  68. local InfoBoxDescription = Instance.new("TextLabel")
  69. local Comments = Instance.new("Frame")
  70. local UICorner_20 = Instance.new("UICorner")
  71. local Inner = Instance.new("Frame")
  72. local UICorner_21 = Instance.new("UICorner")
  73. local Line = Instance.new("Frame")
  74. local CommentsText = Instance.new("TextLabel")
  75. local Comments_2 = Instance.new("ScrollingFrame")
  76. local Comment = Instance.new("Frame")
  77. local Content = Instance.new("TextLabel")
  78. local Author_2 = Instance.new("TextLabel")
  79. local ProfilePicture_2 = Instance.new("ImageLabel")
  80. local UICorner_22 = Instance.new("UICorner")
  81. local UIListLayout_3 = Instance.new("UIListLayout")
  82. local UIInfoBox = Instance.new("UICorner")
  83. local UIClick = Instance.new("Sound")
  84. local OpenCloseSearcherButton = Instance.new("TextButton")
  85. local OpenCloseSearcherButtonUICorner = Instance.new("UICorner")
  86. local PlayerIcon = Instance.new("ImageLabel")
  87. local PlayerIconUICorner = Instance.new("UICorner")
  88. local UIGui = Instance.new("ScreenGui")
  89. local NotifFrame = Instance.new("Frame")
  90. local NotifFrameUICorner = Instance.new("UICorner")
  91. local Label1 = Instance.new("TextLabel")
  92. local Label2 = Instance.new("TextLabel")
  93. local DeveloperImage = Instance.new("ImageLabel")
  94. local DeveloperImageUICorner = Instance.new("UICorner")
  95. local NotifSound = Instance.new("Sound")
  96. local DeveloperID = 3323558881
  97.  
  98. UIClick.Parent = game.Workspace
  99. UIClick.SoundId = "rbxassetid://6895079853"
  100. UIClick.Playing = true
  101. UIClick.Looped = false
  102. UIClick.Volume = 1
  103. UIClick:Stop()
  104.  
  105. UIGui.Name = "UIGui"
  106. UIGui.Parent = game.CoreGui
  107. UIGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  108. game.CoreGui.UIGui.Enabled = true
  109.  
  110. OpenCloseSearcherButton.Parent = UIGui
  111. OpenCloseSearcherButton.Size = UDim2.new(0, 32, 0, 32)
  112. OpenCloseSearcherButton.Position = UDim2.new(0, 105, 0, -32)
  113. OpenCloseSearcherButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  114. OpenCloseSearcherButton.BackgroundTransparency = 0.5
  115. OpenCloseSearcherButton.Text = "🔎"
  116. OpenCloseSearcherButton.TextColor3 = Color3.fromRGB(200, 200, 200)
  117. OpenCloseSearcherButton.Font = 'Code'
  118. OpenCloseSearcherButton.TextSize = 20
  119.  
  120. OpenCloseSearcherButtonUICorner.Parent = OpenCloseSearcherButton
  121. OpenCloseSearcherButtonUICorner.CornerRadius = UDim.new(0, 8)
  122.  
  123. MainFrame.Visible = false
  124.  
  125. MainFrame.Name = "MainFrame"
  126. MainFrame.Parent = UIGui
  127. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  128. MainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  129. MainFrame.BackgroundTransparency = 0.5
  130. MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  131. MainFrame.Size = UDim2.new(0, 400, 0, 400)
  132. MainFrame.ZIndex = 2
  133.  
  134. UIAspectRatioConstraint.Parent = MainFrame
  135. UIAspectRatioConstraint.AspectRatio = 1.778
  136.  
  137. UICorner.CornerRadius = UDim.new(0, 12)
  138. UICorner.Parent = MainFrame
  139.  
  140. TopBarFrame.Name = "TopBarFrame"
  141. TopBarFrame.Parent = MainFrame
  142. TopBarFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  143. TopBarFrame.Size = UDim2.new(0, 350, 0, 20)
  144. TopBarFrame.ZIndex = 2
  145.  
  146. OpenCloseSearcherButton.MouseButton1Click:Connect(function()
  147. if OpenCloseSearcherButton.Text == "🔎" then
  148. OpenCloseSearcherButton.Text = " 🔎 "
  149. UIClick:Play()
  150. MainFrame.Visible = true
  151. else
  152. if OpenCloseSearcherButton.Text == " 🔎 " then
  153. OpenCloseSearcherButton.Text = "🔎"
  154. UIClick:Play()
  155. MainFrame.Visible = false
  156. end
  157. end
  158. end)
  159.  
  160. UICorner_2.CornerRadius = UDim.new(0, 12)
  161. UICorner_2.Parent = TopBarFrame
  162.  
  163. TopBarFrame.Visible = false
  164.  
  165. SearchBox.Name = "SearchBox"
  166. SearchBox.Parent = MainFrame
  167. SearchBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  168. SearchBox.BackgroundTransparency = 0.5
  169. SearchBox.Position = UDim2.new(0, 9, 0, 5)
  170. SearchBox.Size = UDim2.new(0, 220, 0, 25)
  171. SearchBox.ClearTextOnFocus = false
  172. SearchBox.Font = Enum.Font.Code
  173. SearchBox.PlaceholderText = "ECCS•Searcher"
  174. SearchBox.Text = ""
  175. SearchBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  176. SearchBox.TextTransparency = 0.5
  177. SearchBox.TextScaled = true
  178. SearchBox.TextSize = 14.000
  179. SearchBox.TextWrapped = true
  180.  
  181. UICorner_3.CornerRadius = UDim.new(0, 12)
  182. UICorner_3.Parent = SearchBox
  183.  
  184. Title.Name = "Title"
  185. Title.Parent = MainFrame
  186. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  187. Title.BackgroundTransparency = 1
  188. Title.Size = UDim2.new(0, 300, 0, 40)
  189. Title.Font = Enum.Font.Code
  190. Title.Text = ""
  191. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  192. Title.TextSize = 28
  193.  
  194. CloseButton.Name = "CloseButton"
  195. CloseButton.Position = UDim2.new(0.93, 0, 0.02, 0)
  196. CloseButton.Parent = MainFrame
  197. CloseButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  198. CloseButton.BackgroundTransparency = 0.5
  199. CloseButton.LayoutOrder = 1
  200. CloseButton.Size = UDim2.new(0, 25, 0, 25)
  201. CloseButton.AutoButtonColor = false
  202. CloseButton.Font = Enum.Font.Code
  203. CloseButton.Text = "X"
  204. CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  205. CloseButton.TextScaled = true
  206. CloseButton.TextSize = 14.000
  207. CloseButton.TextWrapped = true
  208.  
  209. UICorner_4.Parent = CloseButton
  210.  
  211. PlayerIcon.Name = "PlayerIcon"
  212. PlayerIcon.Parent = MainFrame
  213. PlayerIcon.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  214. PlayerIcon.BackgroundTransparency = 1
  215. PlayerIcon.Position = UDim2.new(0.575, 0, -0.02, 0)
  216. PlayerIcon.Size = UDim2.new(0, 35, 0, 35)
  217. PlayerIcon.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=999&height=999&format=png"
  218.  
  219. PlayerIconUICorner.Parent = PlayerIcon
  220. PlayerIconUICorner.CornerRadius = UDim.new(0.5, 0)
  221.  
  222. ScriptListFrame.Name = "ScriptListFrame"
  223. ScriptListFrame.Parent = MainFrame
  224. ScriptListFrame.Active = true
  225. ScriptListFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  226. ScriptListFrame.BackgroundTransparency = 1
  227. ScriptListFrame.BorderSizePixel = 0
  228. ScriptListFrame.Position = UDim2.new(0, 0, 0.15, 10)
  229. ScriptListFrame.Size = UDim2.new(0, 400, 0, 170)
  230. ScriptListFrame.ZIndex = 2
  231. ScriptListFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  232.  
  233. ScriptAuthor.Name = "ScriptAuthor"
  234. ScriptAuthor.Parent = ScriptFrame
  235. ScriptAuthor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  236. ScriptAuthor.BackgroundTransparency = 1.000
  237. ScriptAuthor.Position = UDim2.new(0, 10, 0, 55)
  238. ScriptAuthor.Size = UDim2.new(0, 280, 0, 25)
  239. ScriptAuthor.Font = Enum.Font.Code
  240. ScriptAuthor.Text = "by ScriptAuthor"
  241. ScriptAuthor.TextColor3 = Color3.fromRGB(192, 192, 192)
  242. ScriptAuthor.TextSize = 14.000
  243. ScriptAuthor.TextWrapped = true
  244. ScriptAuthor.TextXAlignment = Enum.TextXAlignment.Left
  245.  
  246. UIPadding.Parent = ScriptListFrame
  247. UIPadding.PaddingBottom = UDim.new(0, 10)
  248. UIPadding.PaddingLeft = UDim.new(0, 25)
  249. UIPadding.PaddingRight = UDim.new(0, 25)
  250. UIPadding.PaddingTop = UDim.new(0, 10)
  251.  
  252. Scripts.Name = "Scripts"
  253. Scripts.Parent = ScriptListFrame
  254.  
  255. UIGridLayout.Parent = Scripts
  256. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  257. UIGridLayout.CellPadding = UDim2.new(0, 20, 0, 20)
  258. UIGridLayout.CellSize = UDim2.new(0, 300, 0, 150)
  259.  
  260. ScriptFrame.Name = "ScriptFrame"
  261. ScriptFrame.Parent = Scripts
  262. ScriptFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  263. ScriptFrame.BackgroundTransparency = 0.5
  264. ScriptFrame.Size = UDim2.new(0, 200, 0, 100)
  265. ScriptFrame.Position = UDim2.new(1.5, 0, 0, 0)
  266.  
  267. UICorner_6.CornerRadius = UDim.new(0, 12)
  268. UICorner_6.Parent = ScriptFrame
  269.  
  270. ScriptTitle.Name = "ScriptTitle"
  271. ScriptTitle.Parent = ScriptFrame
  272. ScriptTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  273. ScriptTitle.BackgroundTransparency = 1.000
  274. ScriptTitle.Position = UDim2.new(0, 10, 0, 10)
  275. ScriptTitle.Size = UDim2.new(0, 180, 0, 40)
  276. ScriptTitle.Font = Enum.Font.Code
  277. ScriptTitle.Text = "Script Title"
  278. ScriptTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  279. ScriptTitle.TextScaled = true
  280. ScriptTitle.TextSize = 14.000
  281. ScriptTitle.TextWrapped = true
  282. ScriptTitle.TextXAlignment = Enum.TextXAlignment.Left
  283.  
  284. ExecuteButton.Name = "ExecuteButton"
  285. ExecuteButton.Parent = ScriptFrame
  286. ExecuteButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  287. ExecuteButton.Position = UDim2.new(0.0399999991, 0, 0.733333349, 0)
  288. ExecuteButton.Size = UDim2.new(0, 255, 0, 30)
  289. ExecuteButton.AutoButtonColor = false
  290. ExecuteButton.Font = Enum.Font.Code
  291. ExecuteButton.Text = "Execute"
  292. ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  293. ExecuteButton.TextSize = 14.000
  294.  
  295. UICorner_7.CornerRadius = UDim.new(0, 12)
  296. UICorner_7.Parent = ExecuteButton
  297.  
  298. InfoButton.Name = "InfoButton"
  299. InfoButton.Parent = ScriptFrame
  300. InfoButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  301. InfoButton.BackgroundTransparency = 0.5
  302. InfoButton.Position = UDim2.new(0.533333361, 0, 0.733333349, 0)
  303. InfoButton.Size = UDim2.new(0, 130, 0, 30)
  304. InfoButton.AutoButtonColor = false
  305. InfoButton.Font = Enum.Font.Code
  306. InfoButton.Text = "Info"
  307. InfoButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  308. InfoButton.TextSize = 14.000
  309.  
  310. UICorner_8.CornerRadius = UDim.new(0, 12)
  311. UICorner_8.Parent = InfoButton
  312.  
  313. InfoButton.Visible = false
  314.  
  315. ScriptGame.Name = "ScriptGame"
  316. ScriptGame.Parent = ScriptFrame
  317. ScriptGame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  318. ScriptGame.BackgroundTransparency = 1.000
  319. ScriptGame.Position = UDim2.new(0, 10, 0, 80)
  320. ScriptGame.Size = UDim2.new(0, 280, 0, 25)
  321. ScriptGame.Font = Enum.Font.Code
  322. ScriptGame.Text = "Game"
  323. ScriptGame.TextColor3 = Color3.fromRGB(192, 192, 192)
  324. ScriptGame.TextSize = 14.000
  325. ScriptGame.TextWrapped = true
  326. ScriptGame.TextXAlignment = Enum.TextXAlignment.Left
  327.  
  328. VerifiedScriptFrame.Name = "VerifiedScriptFrame"
  329. VerifiedScriptFrame.Parent = Scripts
  330. VerifiedScriptFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  331. VerifiedScriptFrame.Size = UDim2.new(0, 300, 0, 150)
  332.  
  333. UICorner_9.CornerRadius = UDim.new(0, 12)
  334. UICorner_9.Parent = VerifiedScriptFrame
  335.  
  336. ScriptTitle_2.Name = "ScriptTitle"
  337. ScriptTitle_2.Parent = VerifiedScriptFrame
  338. ScriptTitle_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  339. ScriptTitle_2.BackgroundTransparency = 1.000
  340. ScriptTitle_2.Position = UDim2.new(0, 50, 0, 10)
  341. ScriptTitle_2.Size = UDim2.new(0, 240, 0, 40)
  342. ScriptTitle_2.Font = Enum.Font.Code
  343. ScriptTitle_2.Text = "Script Title"
  344. ScriptTitle_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  345. ScriptTitle_2.TextScaled = true
  346. ScriptTitle_2.TextSize = 14.000
  347. ScriptTitle_2.TextWrapped = true
  348. ScriptTitle_2.TextXAlignment = Enum.TextXAlignment.Left
  349.  
  350. VerifiedIcon.Name = "VerifiedIcon"
  351. VerifiedIcon.Parent = VerifiedScriptFrame
  352. VerifiedIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  353. VerifiedIcon.BackgroundTransparency = 0
  354. VerifiedIcon.Position = UDim2.new(0, 10, 0, 15)
  355. VerifiedIcon.Size = UDim2.new(0, 30, 0, 25)
  356. VerifiedIcon.Image = "rbxassetid://15621211889"
  357. VerifiedIcon.BackgroundTransparency = 1
  358.  
  359. ExecuteButton_2.Name = "ExecuteButton"
  360. ExecuteButton_2.Parent = VerifiedScriptFrame
  361. ExecuteButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  362. ExecuteButton_2.BackgroundTransparency = 0.5
  363. ExecuteButton_2.Position = UDim2.new(0.0399999991, 0, 0.733333349, 0)
  364. ExecuteButton_2.Size = UDim2.new(0, 255, 0, 30)
  365. ExecuteButton_2.AutoButtonColor = false
  366. ExecuteButton_2.Font = Enum.Font.Code
  367. ExecuteButton_2.Text = "Execute"
  368. ExecuteButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  369. ExecuteButton_2.TextSize = 14.000
  370.  
  371. UICorner_10.CornerRadius = UDim.new(0, 12)
  372. UICorner_10.Parent = ExecuteButton_2
  373.  
  374. InfoButton_2.Name = "InfoButton"
  375. InfoButton_2.Parent = VerifiedScriptFrame
  376. InfoButton_2.BackgroundColor3 = Color3.fromRGB(19, 24, 52)
  377. InfoButton_2.Position = UDim2.new(0.533333361, 0, 0.733333349, 0)
  378. InfoButton_2.Size = UDim2.new(0, 130, 0, 30)
  379. InfoButton_2.AutoButtonColor = false
  380. InfoButton_2.Font = Enum.Font.Code
  381. InfoButton_2.Text = "Info"
  382. InfoButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  383. InfoButton_2.TextSize = 14.000
  384.  
  385. UICorner_11.CornerRadius = UDim.new(0, 12)
  386. UICorner_11.Parent = InfoButton_2
  387. InfoButton_2.Visible = false
  388.  
  389. ScriptAuthor_2.Name = "ScriptAuthor"
  390. ScriptAuthor_2.Parent = VerifiedScriptFrame
  391. ScriptAuthor_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  392. ScriptAuthor_2.BackgroundTransparency = 1.000
  393. ScriptAuthor_2.Position = UDim2.new(0.0399999991, 0, 0.366666675, 0)
  394. ScriptAuthor_2.Size = UDim2.new(0, 280, 0, 25)
  395. ScriptAuthor_2.Font = Enum.Font.Code
  396. ScriptAuthor_2.Text = "by ScriptAuthor"
  397. ScriptAuthor_2.TextColor3 = Color3.fromRGB(192, 192, 192)
  398. ScriptAuthor_2.TextSize = 14.000
  399. ScriptAuthor_2.TextWrapped = true
  400. ScriptAuthor_2.TextXAlignment = Enum.TextXAlignment.Left
  401.  
  402. ScriptGame_2.Name = "ScriptGame"
  403. ScriptGame_2.Parent = VerifiedScriptFrame
  404. ScriptGame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  405. ScriptGame_2.BackgroundTransparency = 1.000
  406. ScriptGame_2.Position = UDim2.new(0, 10, 0, 80)
  407. ScriptGame_2.Size = UDim2.new(0, 280, 0, 25)
  408. ScriptGame_2.Font = Enum.Font.Code
  409. ScriptGame_2.Text = "Game"
  410. ScriptGame_2.TextColor3 = Color3.fromRGB(192, 192, 192)
  411. ScriptGame_2.TextSize = 14.000
  412. ScriptGame_2.TextWrapped = true
  413. ScriptGame_2.TextXAlignment = Enum.TextXAlignment.Left
  414.  
  415. ScriptListBackgroundFrame.Name = "ScriptListBackgroundFrame"
  416. ScriptListBackgroundFrame.Parent = MainFrame
  417. ScriptListBackgroundFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  418. ScriptListBackgroundFrame.BackgroundTransparency = 0.5
  419. ScriptListBackgroundFrame.Position = UDim2.new(0, 10, 0.15, 10)
  420. ScriptListBackgroundFrame.Size = UDim2.new(0, 375, 0, 175)
  421.  
  422. UICorner_12.CornerRadius = UDim.new(0, 12)
  423. UICorner_12.Parent = ScriptListBackgroundFrame
  424.  
  425. NoScriptsFound.Name = "No Scripts Found"
  426. NoScriptsFound.Parent = MainFrame
  427. NoScriptsFound.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  428. NoScriptsFound.BackgroundTransparency = 1.000
  429. NoScriptsFound.Position = UDim2.new(0.51, 0, 0.02, 0)
  430. NoScriptsFound.Size = UDim2.new(0, 220, 0, 25)
  431. NoScriptsFound.Visible = false
  432. NoScriptsFound.ZIndex = 3
  433. NoScriptsFound.Font = Enum.Font.Code
  434. NoScriptsFound.Text = "No Scripts!"
  435. NoScriptsFound.TextColor3 = Color3.fromRGB(255, 255, 255)
  436. NoScriptsFound.TextSize = 18
  437. NoScriptsFound.TextWrapped = true
  438.  
  439. InfoBox.Name = "InfoBox"
  440. InfoBox.Parent = MainFrame
  441. InfoBox.Active = true
  442. InfoBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  443. InfoBox.BackgroundTransparency = 0.5
  444. InfoBox.BorderSizePixel = 0
  445. InfoBox.Position = UDim2.new(0, 20, 0, 50)
  446. InfoBox.Size = UDim2.new(0, 350, 0, 155)
  447. InfoBox.ZIndex = 3
  448.  
  449. InfoBox.CanvasSize = UDim2.new(0, 0, 0, 0)
  450. InfoBox.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
  451.  
  452. UIInfoBox.Parent = InfoBox
  453.  
  454. UIListLayout.Parent = InfoBox
  455. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  456. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  457. UIListLayout.Padding = UDim.new(0, 10)
  458.  
  459. UICorner_13.CornerRadius = UDim.new(0, 12)
  460. UICorner_13.Parent = InfoBox
  461.  
  462. Info.Name = "Info"
  463. Info.Parent = InfoBox
  464. Info.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  465. Info.BackgroundTransparency = 1.000
  466. Info.Size = UDim2.new(0, 150, 0, 150)
  467.  
  468. PreviewImage.Name = "PreviewImage"
  469. PreviewImage.Parent = Info
  470. PreviewImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  471. PreviewImage.BackgroundTransparency = 1.000
  472. PreviewImage.Position = UDim2.new(0, 50, 0, 10)
  473. PreviewImage.Size = UDim2.new(0, 100, 0, 100)
  474. PreviewImage.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  475.  
  476. UIScale.Parent = PreviewImage
  477. UIScale.Scale = 0.700
  478.  
  479. UICorner_14.CornerRadius = UDim.new(0, 24)
  480. UICorner_14.Parent = PreviewImage
  481.  
  482. Author.Name = "Author"
  483. Author.Parent = Info
  484. Author.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  485. Author.BackgroundTransparency = 1.000
  486. Author.Position = UDim2.new(0, 395, 0, 110)
  487. Author.Size = UDim2.new(0, 250, 0, 40)
  488.  
  489. InfoBoxAuthor.Name = "InfoBoxAuthor"
  490. InfoBoxAuthor.Parent = Author
  491. InfoBoxAuthor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  492. InfoBoxAuthor.BackgroundTransparency = 1.000
  493. InfoBoxAuthor.BorderSizePixel = 0
  494. InfoBoxAuthor.Position = UDim2.new(0, 45, 0, 0)
  495. InfoBoxAuthor.Size = UDim2.new(0, 150, 0, 40)
  496. InfoBoxAuthor.Font = Enum.Font.Code
  497. InfoBoxAuthor.Text = "Author"
  498. InfoBoxAuthor.TextColor3 = Color3.fromRGB(140, 125, 233)
  499. InfoBoxAuthor.TextSize = 20.000
  500. InfoBoxAuthor.TextWrapped = true
  501. InfoBoxAuthor.TextXAlignment = Enum.TextXAlignment.Left
  502.  
  503. ProfilePicture.Name = "ProfilePicture"
  504. ProfilePicture.Parent = Author
  505. ProfilePicture.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  506. ProfilePicture.BackgroundTransparency = 1.000
  507. ProfilePicture.Size = UDim2.new(0, 40, 0, 40)
  508. ProfilePicture.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  509.  
  510. UICorner_15.CornerRadius = UDim.new(1, 0)
  511. UICorner_15.Parent = ProfilePicture
  512.  
  513. Title_2.Name = "Title"
  514. Title_2.Parent = Info
  515. Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  516. Title_2.BackgroundTransparency = 1.000
  517. Title_2.Position = UDim2.new(0, 395, 0, 10)
  518. Title_2.Size = UDim2.new(0, 550, 0, 50)
  519.  
  520. InfoBoxTitle.Name = "InfoBoxTitle"
  521. InfoBoxTitle.Parent = Title_2
  522. InfoBoxTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  523. InfoBoxTitle.BackgroundTransparency = 1.000
  524. InfoBoxTitle.Size = UDim2.new(0, 550, 0, 50)
  525. InfoBoxTitle.Font = Enum.Font.Code
  526. InfoBoxTitle.Text = "Script Title"
  527. InfoBoxTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  528. InfoBoxTitle.TextScaled = true
  529. InfoBoxTitle.TextSize = 14.000
  530. InfoBoxTitle.TextWrapped = true
  531. InfoBoxTitle.TextXAlignment = Enum.TextXAlignment.Left
  532.  
  533. Game.Name = "Game"
  534. Game.Parent = Info
  535. Game.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  536. Game.BackgroundTransparency = 1.000
  537. Game.Position = UDim2.new(0, 395, 0, 70)
  538. Game.Size = UDim2.new(0, 250, 0, 25)
  539. Game.Font = Enum.Font.Gotham
  540. Game.Text = "Game Name"
  541. Game.TextColor3 = Color3.fromRGB(255, 255, 255)
  542. Game.TextSize = 22.000
  543. Game.TextXAlignment = Enum.TextXAlignment.Left
  544.  
  545. Buttons.Name = "Buttons"
  546. Buttons.Parent = InfoBox
  547. Buttons.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  548. Buttons.BackgroundTransparency = 1
  549. Buttons.Position = UDim2.new(0.0100502511, 0, 0.911764622, 0)
  550. Buttons.Size = UDim2.new(0.2, 0, 1.2, 0)
  551.  
  552. UIListLayout_2.Parent = Buttons
  553. UIListLayout_2.FillDirection = Enum.FillDirection.Horizontal
  554. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  555. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  556. UIListLayout_2.VerticalAlignment = Enum.VerticalAlignment.Center
  557. UIListLayout_2.Padding = UDim.new(0, 40)
  558.  
  559. Close.Name = "Close"
  560. Close.Parent = Buttons
  561. Close.BackgroundColor3 = Color3.fromRGB(19, 24, 52)
  562. Close.LayoutOrder = 3
  563. Close.Position = UDim2.new(0, 50, 0, 465)
  564. Close.Size = UDim2.new(0, 95, 0, 35)
  565. Close.ZIndex = 2
  566. Close.AutoButtonColor = false
  567. Close.Font = Enum.Font.Code
  568. Close.Text = "Close"
  569. Close.TextColor3 = Color3.fromRGB(255, 255, 255)
  570. Close.TextSize = 14.000
  571.  
  572. UICorner_16.CornerRadius = UDim.new(0, 12)
  573. UICorner_16.Parent = Close
  574.  
  575. CopyScriptBloxLink.Name = "CopyScriptBloxLink"
  576. CopyScriptBloxLink.Parent = Buttons
  577. CopyScriptBloxLink.BackgroundColor3 = Color3.fromRGB(19, 24, 52)
  578. CopyScriptBloxLink.LayoutOrder = 1
  579. CopyScriptBloxLink.Position = UDim2.new(0, 400, 0, 465)
  580. CopyScriptBloxLink.Size = UDim2.new(0, 95, 0, 35)
  581. CopyScriptBloxLink.AutoButtonColor = false
  582. CopyScriptBloxLink.Font = Enum.Font.Code
  583. CopyScriptBloxLink.Text = "Copy Link"
  584. CopyScriptBloxLink.TextColor3 = Color3.fromRGB(255, 255, 255)
  585. CopyScriptBloxLink.TextSize = 14.000
  586.  
  587. UICorner_17.CornerRadius = UDim.new(0, 12)
  588. UICorner_17.Parent = CopyScriptBloxLink
  589.  
  590. CopyScriptButton.Name = "CopyScriptButton"
  591. CopyScriptButton.Parent = Buttons
  592. CopyScriptButton.BackgroundColor3 = Color3.fromRGB(19, 24, 52)
  593. CopyScriptButton.LayoutOrder = 2
  594. CopyScriptButton.Position = UDim2.new(0, 270, 0, 465)
  595. CopyScriptButton.Size = UDim2.new(0, 95, 0, 35)
  596. CopyScriptButton.AutoButtonColor = false
  597. CopyScriptButton.Font = Enum.Font.Code
  598. CopyScriptButton.Text = "Copy Script"
  599. CopyScriptButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  600. CopyScriptButton.TextSize = 14.000
  601.  
  602. UICorner_18.CornerRadius = UDim.new(0, 12)
  603. UICorner_18.Parent = CopyScriptButton
  604.  
  605. ExecuteButton_3.Name = "ExecuteButton"
  606. ExecuteButton_3.Parent = Buttons
  607. ExecuteButton_3.BackgroundColor3 = Color3.fromRGB(19, 24, 52)
  608. ExecuteButton_3.Position = UDim2.new(0, 250, 0, 465)
  609. ExecuteButton_3.Size = UDim2.new(0, 95, 0, 35)
  610. ExecuteButton_3.AutoButtonColor = false
  611. ExecuteButton_3.Font = Enum.Font.Code
  612. ExecuteButton_3.Text = "Execute"
  613. ExecuteButton_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  614. ExecuteButton_3.TextSize = 14.000
  615.  
  616. UICorner_19.CornerRadius = UDim.new(0, 12)
  617. UICorner_19.Parent = ExecuteButton_3
  618.  
  619. InfoBoxDescription.Name = "InfoBoxDescription"
  620. InfoBoxDescription.Parent = InfoBox
  621. InfoBoxDescription.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  622. InfoBoxDescription.BackgroundTransparency = 1.000
  623. InfoBoxDescription.Size = UDim2.new(0, 150, 0, 0)
  624. InfoBoxDescription.Font = Enum.Font.Code
  625. InfoBoxDescription.Text = "This is a pretty cool description!"
  626. InfoBoxDescription.TextColor3 = Color3.fromRGB(255, 255, 255)
  627. InfoBoxDescription.TextSize = 20.000
  628. InfoBoxDescription.TextWrapped = true
  629. InfoBoxDescription.TextXAlignment = Enum.TextXAlignment.Left
  630. InfoBoxDescription.TextYAlignment = Enum.TextYAlignment.Top
  631.  
  632. Comments.Name = "Comments"
  633. Comments.Parent = InfoBox
  634. Comments.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  635. Comments.Size = UDim2.new(0, 250, 0, 200)
  636.  
  637. UICorner_20.CornerRadius = UDim.new(0, 12)
  638. UICorner_20.Parent = Comments
  639.  
  640. Inner.Name = "Inner"
  641. Inner.Parent = Comments
  642. Inner.AnchorPoint = Vector2.new(0.5, 0.5)
  643. Inner.BackgroundColor3 = Color3.fromRGB(13, 18, 39)
  644. Inner.Position = UDim2.new(0.5, 0, 0.5, 0)
  645. Inner.Size = UDim2.new(0, 189, 0, 96)
  646.  
  647. UICorner_21.CornerRadius = UDim.new(0, 12)
  648. UICorner_21.Parent = Inner
  649.  
  650. Line.Name = "Line"
  651. Line.Parent = Inner
  652. Line.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  653. Line.BorderSizePixel = 0
  654. Line.LayoutOrder = 1
  655. Line.Position = UDim2.new(0, 0, 0, 25)
  656. Line.Size = UDim2.new(0, 150, 0, 2)
  657.  
  658. CommentsText.Name = "CommentsText"
  659. CommentsText.Parent = Inner
  660. CommentsText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  661. CommentsText.BackgroundTransparency = 1.000
  662. CommentsText.Size = UDim2.new(0, 150, 0, 25)
  663. CommentsText.Font = Enum.Font.Code
  664. CommentsText.Text = "Comments"
  665. CommentsText.TextColor3 = Color3.fromRGB(255, 255, 255)
  666. CommentsText.TextSize = 14.000
  667.  
  668. Comments_2.Name = "Comments"
  669. Comments_2.Parent = Inner
  670. Comments_2.Active = true
  671. Comments_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  672. Comments_2.BackgroundTransparency = 1.000
  673. Comments_2.BorderSizePixel = 0
  674. Comments_2.Position = UDim2.new(0, 5, 0, 30)
  675. Comments_2.Size = UDim2.new(0, 370, 0, 170)
  676. Comments_2.CanvasSize = UDim2.new(0, 0, 0, 0)
  677.  
  678. Comment.Name = "Comment"
  679. Comment.Parent = Comments_2
  680. Comment.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  681. Comment.BackgroundTransparency = 1.000
  682. Comment.Size = UDim2.new(0, 920, 0, 500)
  683.  
  684. Content.Name = "Content"
  685. Content.Parent = Comment
  686. Content.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  687. Content.BackgroundTransparency = 1.000
  688. Content.Position = UDim2.new(0, 50, 0, 30)
  689. Content.Size = UDim2.new(0, 200, 0, 100)
  690. Content.Font = Enum.Font.Code
  691. Content.Text = "Pretty Cool Comment"
  692. Content.TextColor3 = Color3.fromRGB(255, 255, 255)
  693. Content.TextSize = 14.000
  694. Content.TextWrapped = true
  695. Content.TextXAlignment = Enum.TextXAlignment.Left
  696. Content.TextYAlignment = Enum.TextYAlignment.Top
  697.  
  698. Author_2.Name = "Author"
  699. Author_2.Parent = Comment
  700. Author_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  701. Author_2.BackgroundTransparency = 1.000
  702. Author_2.BorderSizePixel = 0
  703. Author_2.Position = UDim2.new(0, 50, 0, 5)
  704. Author_2.Size = UDim2.new(0, 200, 0, 25)
  705. Author_2.Font = Enum.Font.Code
  706. Author_2.Text = "Author"
  707. Author_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  708. Author_2.TextSize = 20.000
  709. Author_2.TextWrapped = true
  710. Author_2.TextXAlignment = Enum.TextXAlignment.Left
  711.  
  712. ProfilePicture_2.Name = "ProfilePicture"
  713. ProfilePicture_2.Parent = Comment
  714. ProfilePicture_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  715. ProfilePicture_2.BackgroundTransparency = 1.000
  716. ProfilePicture_2.Position = UDim2.new(0, 5, 0, 5)
  717. ProfilePicture_2.Size = UDim2.new(0, 40, 0, 40)
  718. ProfilePicture_2.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  719.  
  720. UICorner_22.CornerRadius = UDim.new(1, 0)
  721. UICorner_22.Parent = ProfilePicture_2
  722.  
  723. UIListLayout_3.Parent = Comments_2
  724. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  725. UIListLayout_3.Padding = UDim.new(0, 5)
  726.  
  727. NotifSound.Parent = game.Workspace
  728. NotifSound.SoundId = "rbxassetid://5153734608"
  729. NotifSound.Playing = true
  730. NotifSound.Looped = false
  731. NotifSound.Volume = 1
  732. NotifSound:Stop()
  733.  
  734. DeveloperImage.Visible = false
  735. Label1.Visible = false
  736. Label2.Visible = false
  737.  
  738. NotifFrame.Name = "NotifFrame"
  739. NotifFrame.Parent = UIGui
  740. NotifFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  741. NotifFrame.BackgroundTransparency = 0.5
  742. NotifFrame.Position = UDim2.new(0.3, 0, 0.15, 0)
  743. NotifFrame.Size = UDim2.new(0, 0, 0, 0)
  744. NotifFrame.BorderSizePixel = 0
  745. NotifFrameUICorner.Parent = NotifFrame
  746.  
  747. DeveloperImage.Name = "PlayerIcon"
  748. DeveloperImage.Parent = NotifFrame
  749. DeveloperImage.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  750. DeveloperImage.BackgroundTransparency = 0.5
  751. DeveloperImage.Position = UDim2.new(0.86, 0, 0.78, 0)
  752. DeveloperImage.Size = UDim2.new(0, 50, 0, 50)
  753. DeveloperImage.BorderSizePixel = 0
  754. DeveloperImage.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=3323558881&width=999&height=999&format=png"
  755.  
  756. DeveloperImageUICorner.Parent = DeveloperImage
  757. DeveloperImageUICorner.CornerRadius = UDim.new(0.5, 0)
  758.  
  759. Label1.Name = "Label1"
  760. Label1.Parent = NotifFrame
  761. Label1.BackgroundTransparency = 1
  762. Label1.Position = UDim2.new(0.5, 0, 0.05, 0)
  763. Label1.Size = UDim2.new(0, 1, 0, 1)
  764. Label1.Font = Enum.Font.SourceSansBold
  765. Label1.Text = "!WARNING!"
  766. Label1.TextColor3 = Color3.fromRGB(255, 255, 255)
  767. Label1.TextSize = 50
  768.  
  769. Label2.Name = "Label2"
  770. Label2.Parent = NotifFrame
  771. Label2.BackgroundTransparency = 1
  772. Label2.Position = UDim2.new(0.5, 0, 0.5, 0)
  773. Label2.Size = UDim2.new(0, 1, 0, 1)
  774. Label2.Font = Enum.Font.SourceSansBold
  775. Label2.Text = "The developer \"ERROR_CODE\"\n has joined to the experience. \nDon't swear until he \ngets out of the experience and everything will be fine."
  776. Label2.TextColor3 = Color3.fromRGB(255, 255, 255)
  777. Label2.TextSize = 20
  778.  
  779. game.Players.PlayerAdded:Connect(function(player)
  780. if player.UserId == DeveloperID then
  781. NotifSound:Play()
  782. NotifFrame:TweenSize(UDim2.new(0, 400, 0, 250), 'Out', 4, true)
  783. wait(0.5)
  784. Label2.Text = "The developer \"ERROR_CODE\"\n has joined to the experience. \nDon't swear until he \ngets out of the experience and everything will be fine."
  785. DeveloperImage.Visible = true
  786. Label1.Visible = true
  787. Label2.Visible = true
  788. wait(4.5)
  789. DeveloperImage.Visible = false
  790. Label1.Visible = false
  791. Label2.Visible = false
  792. NotifFrame:TweenSize(UDim2.new(0, 0, 0, 0), 'Out', 4, true)
  793. wait(0.5)
  794. NotifFrame.Visible = false
  795. end
  796. end)
  797.  
  798. game.Players.PlayerRemoving:Connect(function(player)
  799. if player.UserId == DeveloperID then
  800. NotifSound:Play()
  801. NotifFrame:TweenSize(UDim2.new(0, 400, 0, 250), 'Out', 4, true)
  802. wait(0.5)
  803. Label2.Text = "The developer \"ERROR_CODE\"\n has leaved."
  804. DeveloperImage.Visible = true
  805. Label1.Visible = true
  806. Label2.Visible = true
  807. wait(4.5)
  808. DeveloperImage.Visible = false
  809. Label1.Visible = false
  810. Label2.Visible = false
  811. NotifFrame:TweenSize(UDim2.new(0, 0, 0, 0), 'Out', 4, true)
  812. wait(0.5)
  813. NotifFrame.Visible = false
  814. end
  815. end)
  816.  
  817. assert(assert, "Assert couldn't assert itself!")
  818.  
  819. function createfolders(path)
  820.     local pathtbl = string.split(path, "/")
  821.     for i, v in pairs(pathtbl) do
  822.         if i == 1 then
  823.             if not isfolder(v) then
  824.                 makefolder(v)
  825.             end
  826.         else
  827.             local newpath = pathtbl[1]
  828.             for i2=2, i-1 do
  829.                 newpath = newpath.. "/" ..pathtbl[i2]
  830.             end
  831.             newpath = newpath.. "/" ..v
  832.             if not isfolder(newpath) then
  833.                 makefolder(newpath)
  834.             end
  835.         end
  836.     end
  837. end
  838.  
  839. if not isfile("ScriptBlox/Searcher/Cache.json") and isfolder("ScriptBlox") then
  840.     delfolder("ScriptBlox")
  841. end
  842.  
  843. createfolders("ScriptBlox/Searcher/ImageCache/Scripts")
  844. createfolders("ScriptBlox/Searcher/ImageCache/ProfilePictures")
  845.  
  846. if not isfile("ScriptBlox/Searcher/Cache.json") then
  847.     writefile("ScriptBlox/Searcher/Cache.json", "{}")
  848. end
  849.  
  850. UIGui.MainFrame.InfoBox.Visible = false
  851.  
  852. local getfakeasset = getcustomasset or getsynasset
  853.  
  854. local HttpService = game:GetService("HttpService")
  855. local TweenService = game:GetService("TweenService")
  856. local TextService = game:GetService("TextService")
  857.  
  858. local cache = HttpService:JSONDecode(readfile("ScriptBlox/Searcher/Cache.json"))
  859.  
  860. local page = 1
  861. local gquery = ""
  862.  
  863. function tableConcat(t1,t2)
  864.     for i, v in pairs(t2) do
  865.         table.insert(t1, v)
  866.     end
  867.     return t1
  868. end
  869.  
  870. UIGui.MainFrame.Title.RichText = true
  871. UIGui.MainFrame.ScriptListFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  872. UIGui.MainFrame.InfoBox.InfoBoxDescription.AutomaticSize = Enum.AutomaticSize.Y
  873. UIGui.MainFrame.ScriptListFrame.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  874. UIGui.MainFrame.InfoBox.AutomaticCanvasSize = Enum.AutomaticSize.Y
  875. UIGui.MainFrame.InfoBox.Comments.Inner.Comments.AutomaticCanvasSize = Enum.AutomaticSize.Y
  876. UIGui.MainFrame.InfoBox.Comments.Inner.Comments.ScrollBarImageColor3 = Color3.new(0, 0, 0)
  877. UIGui.MainFrame.InfoBox.ScrollBarImageColor3 = Color3.new(0, 0, 0)
  878.  
  879. local VerifiedScript = UIGui.MainFrame.ScriptListFrame.Scripts.VerifiedScriptFrame:Clone()
  880. local Script = UIGui.MainFrame.ScriptListFrame.Scripts.ScriptFrame:Clone()
  881. UIGui.MainFrame.ScriptListFrame.Scripts.ScriptFrame:Destroy()
  882. UIGui.MainFrame.ScriptListFrame.Scripts.VerifiedScriptFrame:Destroy()
  883.  
  884. local Comment = UIGui.MainFrame.InfoBox.Comments.Inner.Comments.Comment:Clone()
  885. UIGui.MainFrame.InfoBox.Comments.Inner.Comments.Comment:Destroy()
  886.  
  887. function setHoverTransition(from, to, obj)
  888.     from = from or obj.BackgroundColor3
  889.    
  890.     obj.MouseEnter:Connect(function()
  891.  
  892.         TweenService:Create(obj, TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {
  893.             BackgroundColor3 = to
  894.         }):Play()
  895.  
  896.     end)
  897.    
  898.     obj.MouseLeave:Connect(function()
  899.  
  900.         TweenService:Create(obj, TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {
  901.             BackgroundColor3 = from
  902.         }):Play()
  903.  
  904.     end)
  905. end
  906.  
  907. setHoverTransition(nil, Color3.new(0, 0, 0), UIGui.MainFrame.InfoBox.Buttons.ExecuteButton)
  908. setHoverTransition(nil, Color3.new(0, 0, 0), UIGui.MainFrame.InfoBox.Buttons.Close)
  909. setHoverTransition(nil, Color3.new(0, 0, 0), UIGui.MainFrame.InfoBox.Buttons.CopyScriptBloxLink)
  910. setHoverTransition(nil, Color3.new(0, 0, 0), UIGui.MainFrame.InfoBox.Buttons.CopyScriptButton)
  911.  
  912. function _if(a, b, c)
  913.     if a then return b else return c end
  914. end
  915.  
  916. function fastmodeExec(func)
  917.     if getgenv().fastmode == true then
  918.         task.spawn(func)
  919.     else
  920.         func()
  921.     end
  922. end
  923.  
  924. function fetchScripts(query, page)
  925.     page = page or 1
  926.     query = HttpService:UrlEncode(query)
  927.    
  928.     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))
  929.     local req = HttpService:JSONDecode(game:HttpGetAsync(url)).result
  930.    
  931.     return req.scripts
  932. end
  933.  
  934. function fetchComments(scriptId, page)
  935.     page = page or 1   
  936.    
  937.     local url = "https://scriptblox.com/api/comment/" ..scriptId.. "?page=" ..tostring(page).. "&max=20"
  938.     local req = HttpService:JSONDecode(game:HttpGetAsync(url)).result
  939.    
  940.     return req.comments
  941. end
  942.  
  943. function loadImage(url, id, ispfp)
  944.     ispfp = _if(type(ispfp) == "boolean", ispfp, false)
  945.    
  946.     local path = "ScriptBlox/Searcher/ImageCache/" .._if(ispfp, "ProfilePictures/", "Scripts/")..id..".png"
  947.    
  948.     if table.find(string.split(url, "/"), "user-default.png") then
  949.         path = "ScriptBlox/Searcher/ImageCache/ProfilePictures/user-default.png"
  950.     end
  951.    
  952.     if isfile(path) then
  953.         return getfakeasset(path)
  954.     else
  955.         local img = game:HttpGetAsync(url)
  956.         writefile(path, img)
  957.        
  958.         return getfakeasset(path)
  959.     end
  960. end
  961.  
  962. function fixScript(scriptObj)
  963.     if not scriptObj["script"] or not scriptObj["owner"] or not scriptObj["features"] then
  964.         local cacheObj = cache[scriptObj["_id"]]
  965.         if cacheObj then
  966.             scriptObj["script"] = _if(scriptObj["script"], scriptObj["script"], cacheObj.script)
  967.             scriptObj["features"] = _if(scriptObj["features"], scriptObj["features"], cacheObj.features)
  968.             scriptObj["owner"] = _if(scriptObj["owner"], scriptObj["owner"], cacheObj.owner)
  969.         else
  970.             local req = HttpService:JSONDecode(game:HttpGetAsync("https://www.scriptblox.com/api/script/".. scriptObj.slug)).script
  971.             scriptObj["script"] = _if(scriptObj["script"], scriptObj["script"], req.script)
  972.             scriptObj["features"] = _if(scriptObj["features"], scriptObj["features"], req.features)
  973.             scriptObj["owner"] = _if(scriptObj["owner"], scriptObj["owner"], req.owner)
  974.            
  975.             cache[scriptObj["_id"]] = req
  976.         end
  977.     end
  978.     return scriptObj
  979. end
  980.  
  981. function updateCache(newCache)
  982.     cache = newCache
  983.     writefile("ScriptBlox/Searcher/Cache.json", HttpService:JSONEncode(cache))
  984. end
  985.  
  986. function updateInfoBox(scriptObj)
  987.     scriptObj = fixScript(scriptObj)
  988.    
  989.     UIGui.MainFrame.InfoBox.Info.Author.InfoBoxAuthor.Text = scriptObj.owner.username
  990.     UIGui.MainFrame.InfoBox.Info.Title.InfoBoxTitle.Text = scriptObj.title
  991.     UIGui.MainFrame.InfoBox.Info.Game.Text = scriptObj.game.name
  992.     UIGui.MainFrame.InfoBox.InfoBoxDescription.Text = scriptObj.features or "For features to be displayed, please use the search bar to find this script and then open the info again, this is caused by an API Error that I will fix later."
  993.    
  994.     task.spawn(function()
  995.         UIGui.MainFrame.InfoBox.Info.Author.ProfilePicture.Image = loadImage("https://scriptblox.com"..scriptObj.owner.profilePicture, scriptObj["owner"]["_id"], true)
  996.     end)
  997.     task.spawn(function()
  998.         UIGui.MainFrame.InfoBox.Info.PreviewImage.Image = loadImage(_if(string.find(scriptObj.game.imageUrl, "rbxcdn.com"), scriptObj.game.imageUrl, "https://scriptblox.com"..scriptObj.game.imageUrl), scriptObj["_id"], false)
  999.     end)
  1000.    
  1001.     local ExecuteConnection
  1002.     local CopyLinkConnection
  1003.     local CopyScriptConnection
  1004.    
  1005.     ExecuteConnection = UIGui.MainFrame.InfoBox.Buttons.ExecuteButton.MouseButton1Click:Connect(function()
  1006.         loadstring(scriptObj.script)()
  1007.     end)
  1008.    
  1009.     CopyLinkConnection = UIGui.MainFrame.InfoBox.Buttons.CopyScriptBloxLink.MouseButton1Click:Connect(function()
  1010.         setclipboard("https://scriptblox.com/script/".. scriptObj.slug)
  1011.     end)
  1012.    
  1013.     CopyScriptConnection = UIGui.MainFrame.InfoBox.Buttons.CopyScriptButton.MouseButton1Click:Connect(function()
  1014.         setclipboard(scriptObj.script)
  1015.     end)
  1016.    
  1017.     UIGui.MainFrame.InfoBox.Buttons.Close.MouseButton1Click:Connect(function()
  1018.         ExecuteConnection:Disconnect()
  1019.         CopyLinkConnection:Disconnect()
  1020.         CopyScriptConnection:Disconnect()
  1021.        
  1022.         UIGui.MainFrame.InfoBox.Visible = false
  1023.         UIGui.MainFrame.ScriptListFrame.Visible = true
  1024.     end)
  1025.    
  1026.     local commentsUIListLayout = UIGui.MainFrame.InfoBox.Comments.Inner.Comments.UIListLayout:Clone()
  1027.     UIGui.MainFrame.InfoBox.Comments.Inner.Comments:ClearAllChildren()
  1028.     commentsUIListLayout.Parent = UIGui.MainFrame.InfoBox.Comments.Inner.Comments
  1029.    
  1030.     task.spawn(function()
  1031.         for _, v in pairs(fetchComments(scriptObj["_id"])) do
  1032.  
  1033.             local newComment = Comment:Clone()
  1034.             newComment.Parent = UIGui.MainFrame.InfoBox.Comments.Inner.Comments
  1035.             newComment.Content.Text = v.text
  1036.             newComment.Author.Text = v.commentBy.username
  1037.  
  1038.             task.spawn(function()
  1039.                 newComment.ProfilePicture.Image = loadImage("https://scriptblox.com"..v.commentBy.profilePicture, v.commentBy["_id"], true)
  1040.             end)
  1041.  
  1042.         end
  1043.     end)
  1044. end
  1045.  
  1046.  
  1047. function refreshScripts(scriptTbl)
  1048.     if #scriptTbl <= 0 then
  1049.         UIGui.MainFrame["No Scripts Found"].Visible = true
  1050.         return
  1051.     else
  1052.         UIGui.MainFrame["No Scripts Found"].Visible = false
  1053.     end
  1054.    
  1055.     local UIGridLayoutCopy = UIGui.MainFrame.ScriptListFrame.Scripts.UIGridLayout:Clone()
  1056.     UIGui.MainFrame.ScriptListFrame.Scripts:ClearAllChildren()
  1057.     UIGridLayoutCopy.Parent = UIGui.MainFrame.ScriptListFrame.Scripts
  1058.    
  1059.     addScripts(scriptTbl)
  1060. end
  1061.  
  1062. function addScripts(scriptTbl)
  1063.     for i, v in pairs(scriptTbl) do
  1064.         fastmodeExec(function()
  1065.             local newScript
  1066.  
  1067.             v = fixScript(v)
  1068.  
  1069.             if v.verified == true then
  1070.                 newScript = VerifiedScript:Clone()
  1071.                 newScript.ScriptTitle.Text = v.title
  1072.                 newScript.ScriptAuthor.Text = "by ".. v.owner.username
  1073.                 newScript.ScriptGame.Text = v.game.name
  1074.                 newScript.Parent = UIGui.MainFrame.ScriptListFrame.Scripts
  1075.             else
  1076.                 newScript = Script:Clone()
  1077.                 newScript.ScriptTitle.Text = v.title
  1078.                 newScript.ScriptAuthor.Text = "by ".. v.owner.username
  1079.                 newScript.ScriptGame.Text = v.game.name
  1080.                 newScript.Parent = UIGui.MainFrame.ScriptListFrame.Scripts
  1081.             end
  1082.  
  1083.             newScript.ExecuteButton.MouseButton1Click:Connect(function()
  1084. UIClick:Play()
  1085.                 loadstring(v.script)()
  1086.             end)
  1087.  
  1088.             setHoverTransition(newScript.ExecuteButton.BackgroundColor3, Color3.new(0, 0, 0), newScript.ExecuteButton)
  1089.  
  1090.            
  1091.             newScript.InfoButton.MouseButton1Click:Connect(function()
  1092.                 updateInfoBox(v)
  1093.                 task.wait()
  1094.                 ScriptBloxSearcher.MainFrame.InfoBox.Visible = true
  1095.                 ScriptBloxSearcher.MainFrame.ScriptListFrame.Visible = false
  1096.             end)
  1097.  
  1098.             setHoverTransition(newScript.InfoButton.BackgroundColor3, Color3.new(0, 0, 0), newScript.InfoButton)
  1099.  
  1100.            
  1101.             setHoverTransition(newScript.BackgroundColor3, Color3.new(0, 0, 0), newScript)
  1102.         end)
  1103.     end
  1104.    
  1105.     updateCache(cache)
  1106.    
  1107.     pagefetchrunning = false
  1108. end
  1109.  
  1110. UIGui.MainFrame.SearchBox.FocusLost:Connect(function(enterPressed)
  1111.     if enterPressed then
  1112. UIClick:Play()
  1113.         gquery = UIGui.MainFrame.SearchBox.Text
  1114.         page = 1
  1115.         local scriptsTbl = fetchScripts(UIGui.MainFrame.SearchBox.Text, 1)
  1116.         refreshScripts(scriptsTbl)
  1117.     end
  1118. end)
  1119.  
  1120.  
  1121. UIGui.MainFrame.CloseButton.MouseButton1Click:Connect(function()
  1122. UIClick:Play()
  1123.     MainFrame:Destroy()
  1124.     OpenCloseSearcherButton:Destroy()
  1125. end)
  1126. setHoverTransition(nil, Color3.fromRGB(0, 0, 0), UIGui.MainFrame.CloseButton)
  1127.  
  1128.  
  1129. local gui = MainFrame
  1130.  
  1131. local dragging
  1132. local dragInput
  1133. local dragStart
  1134. local startPos
  1135.  
  1136. local function update(input)
  1137.     local delta = input.Position - dragStart
  1138.     gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  1139. end
  1140.  
  1141. gui.InputBegan:Connect(function(input)
  1142.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  1143.         dragging = true
  1144.         dragStart = input.Position
  1145.         startPos = gui.Position
  1146.  
  1147.         input.Changed:Connect(function()
  1148.             if input.UserInputState == Enum.UserInputState.End then
  1149.                 dragging = false
  1150.             end
  1151.         end)
  1152.     end
  1153. end)
  1154.  
  1155. gui.InputChanged:Connect(function(input)
  1156.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  1157.         dragInput = input
  1158.     end
  1159. end)
  1160.  
  1161. UserInputService.InputChanged:Connect(function(input)
  1162.     if input == dragInput and dragging then
  1163.         update(input)
  1164.     end
  1165. end)
  1166.  
  1167. refreshScripts(fetchScripts(gquery, 1))
  1168.  
  1169. UIGui.MainFrame.ScriptListFrame:GetPropertyChangedSignal("CanvasPosition"):Connect(function()
  1170.     if (UIGui.MainFrame.ScriptListFrame.CanvasPosition.Y + UIGui.MainFrame.ScriptListFrame.AbsoluteSize.Y) >= UIGui.MainFrame.ScriptListFrame.AbsoluteCanvasSize.Y -200 and not pagefetchrunning then
  1171.         page = page + 1
  1172.         pagefetchrunning = true
  1173.         addScripts(fetchScripts(gquery, page))
  1174.     end
  1175. end)
  1176. while wait() do
  1177. PlayerIcon.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=999&height=999&format=png"
  1178. end
Add Comment
Please, Sign In to add comment