DARKMODZ

cloud script

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