ERROR_CODE

ECCS•Searcher V2.5 (Mobile)

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