Advertisement
ERROR_CODE

Dynamic Island V2

Nov 16th, 2024 (edited)
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 32.42 KB | None | 0 0
  1. if game:GetService("CoreGui"):FindFirstChild("DI") then
  2. game:GetService("CoreGui"):FindFirstChild("DI"):Destroy()
  3. end
  4. HttpService = game:GetService("HttpService")
  5. UserInputService = game:GetService("UserInputService")
  6. Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  7. TweenService = game:GetService("TweenService")
  8. DI = Instance.new("ScreenGui")
  9. DynamicIsland = Instance.new("TextButton")
  10. DynamicIslandUICorner = Instance.new("UICorner")
  11. MainFrame = Instance.new("Frame")
  12. SearchBox = Instance.new("TextBox")
  13. UICorner_3 = Instance.new("UICorner")
  14. ScriptListFrame = Instance.new("ScrollingFrame")
  15. UIPadding = Instance.new("UIPadding")
  16. Scripts = Instance.new("Folder")
  17. UIGridLayout = Instance.new("UIGridLayout")
  18. ScriptFrame = Instance.new("Frame")
  19. ScriptTitle = Instance.new("TextLabel")
  20. ScriptGame = Instance.new("TextLabel")
  21. VerifiedScriptFrame = Instance.new("Frame")
  22. ScriptTitle_2 = Instance.new("TextLabel")
  23. ScriptGame_2 = Instance.new("TextLabel")
  24. PreviewImage = Instance.new("ImageLabel")
  25. UICorner_14 = Instance.new("UICorner")
  26. Author = Instance.new("Frame")
  27. InfoBoxAuthor = Instance.new("TextLabel")
  28. ProfilePicture = Instance.new("ImageLabel")
  29. UICorner_15 = Instance.new("UICorner")
  30. Title_2 = Instance.new("Frame")
  31. InfoBoxTitle = Instance.new("TextLabel")
  32. Comments_2 = Instance.new("ScrollingFrame")
  33. Comment = Instance.new("Frame")
  34. Content = Instance.new("TextLabel")
  35. Author_2 = Instance.new("TextLabel")
  36. ProfilePicture_2 = Instance.new("ImageLabel")
  37. UICorner_22 = Instance.new("UICorner")
  38. UIListLayout_2 = Instance.new("UIListLayout")
  39. PreviewImage_2 = Instance.new("ImageLabel")
  40. PreviewImageUICorner_2 = Instance.new("UICorner")
  41. KeySystem = Instance.new("TextLabel")
  42. KeySystemUICorner = Instance.new("UICorner")
  43. KeySystem_2 = Instance.new("TextLabel")
  44. KeySystemUICorner_2 = Instance.new("UICorner")
  45. InfoBox = Instance.new("Frame")
  46. ExecuteButton = Instance.new("TextButton")
  47. ExecuteButtonUICorner = Instance.new("UICorner")
  48. ExecuteButton_2 = Instance.new("TextButton")
  49. ExecuteButtonUICorner_2 = Instance.new("UICorner")
  50. CopyScriptButton = Instance.new("TextButton")
  51. CopyScriptButtonUICorner = Instance.new("UICorner")
  52. CopyScriptButton_2 = Instance.new("TextButton")
  53. CopyScriptButtonUICorner_2 = Instance.new("UICorner")
  54. TabsLine = Instance.new("Frame")
  55. TabsLineUICorner = Instance.new("UICorner")
  56. HomeTab = Instance.new("TextButton")
  57. ExecutorTab = Instance.new("TextButton")
  58. SearchTab = Instance.new("TextButton")
  59. SettingsTab = Instance.new("TextButton")
  60. FavouritesTab = Instance.new("TextButton")
  61. TabsFolder = Instance.new("ScrollingFrame")
  62. TabsParent = Instance.new("Frame")
  63. ImageShadow = Instance.new("Frame")
  64. ImageShadowUICorner = Instance.new("UICorner")
  65. ImageShadow_2 = Instance.new("Frame")
  66. ImageShadowUICorner_2 = Instance.new("UICorner")
  67. HistoryFrameBackground = Instance.new("Frame")
  68. HistoryFrameBackgroundUICorner = Instance.new("UICorner")
  69. HistoryScrollingFrame = Instance.new("ScrollingFrame")
  70. ExecutorMainFrame = Instance.new("Frame")
  71. ExecutorScrollingFrame = Instance.new("ScrollingFrame")
  72. ExecutorTextBox = Instance.new("TextBox")
  73. ExecutorTextBoxUICorner = Instance.new("UICorner")
  74. ExecuteTextBox = Instance.new("TextButton")
  75. ExecuteTextBoxUICorner = Instance.new("UICorner")
  76. CopyTextBox = Instance.new("TextButton")
  77. CopyTextBoxUICorner = Instance.new("UICorner")
  78. PasteTextBox = Instance.new("TextButton")
  79. PasteTextBoxUICorner = Instance.new("UICorner")
  80. ClearTextBox = Instance.new("TextButton")
  81. ClearTextBoxUICorner = Instance.new("UICorner")
  82.  
  83. local History = {}
  84. HeadFont = Enum.Font.SourceSansBold
  85. HomeTabValue = 1
  86. ExecutorTabValue = 0
  87. SearchTabValue = 0
  88. FavouritesTabValue = 0
  89. SettingsTabValue = 0
  90.  
  91. DI.Name = "DI"
  92. DI.Parent = game.CoreGui
  93. DI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  94. game.CoreGui.DI.Enabled = true
  95.  
  96. TabsLine.Visible = false
  97. HomeTab.Visible = false
  98. ExecutorTab.Visible = false
  99. SearchTab.Visible = false
  100. FavouritesTab.Visible = false
  101. SettingsTab.Visible = false
  102. TabsFolder.Visible = false
  103.  
  104. DynamicIsland.Name = "DynamicIsland"
  105. DynamicIsland.Parent = DI
  106. DynamicIsland.AnchorPoint = Vector2.new(0.5, 0)
  107. DynamicIsland.Size = UDim2.new(0, 100, 0, 30)
  108. DynamicIsland.Position = UDim2.new(0.5, 0, 0.9, 0)
  109. DynamicIsland.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  110. DynamicIsland.ZIndex = 2
  111. DynamicIsland.Text = os.date("%H:%M")
  112. DynamicIsland.Font = HeadFont
  113. DynamicIsland.TextScaled = true
  114. DynamicIsland.TextColor3 = Color3.fromRGB(222, 222, 222)
  115. DynamicIsland.AutoButtonColor = false
  116.  
  117. DynamicIslandUICorner.CornerRadius = UDim.new(1, 0)
  118. DynamicIslandUICorner.Parent = DynamicIsland
  119.  
  120. TabsLine.Name = "TabsLine"
  121. TabsLine.Parent = DynamicIsland
  122. TabsLine.AnchorPoint = Vector2.new(0.5, 0.5)
  123. TabsLine.Size = UDim2.new(0, 20, 0, 5)
  124. TabsLine.Position = UDim2.new(0.1, 0, 0.18, 0)
  125. TabsLine.BackgroundColor3 = Color3.fromRGB(222, 222, 222)
  126.  
  127. TabsLineUICorner.CornerRadius = UDim.new(0, 20)
  128. TabsLineUICorner.Parent = TabsLine
  129.  
  130. HomeTab.Name = "HomeTab"
  131. HomeTab.Parent = DynamicIsland
  132. HomeTab.AnchorPoint = Vector2.new(0.5, 0.5)
  133. HomeTab.Size = UDim2.new(0, 80, 0, 25)
  134. HomeTab.Position = UDim2.new(0.1, 0, 0.1, 0)
  135. HomeTab.BackgroundTransparency = 1
  136. HomeTab.Text = "Home"
  137. HomeTab.Font = HeadFont
  138. HomeTab.TextSize = 20
  139. HomeTab.TextColor3 = Color3.fromRGB(222, 222, 222)
  140. HomeTab.AutoButtonColor = false
  141.  
  142. ExecutorTab.Name = "ExecutorTab"
  143. ExecutorTab.Parent = DynamicIsland
  144. ExecutorTab.AnchorPoint = Vector2.new(0.5, 0.5)
  145. ExecutorTab.Size = UDim2.new(0, 80, 0, 25)
  146. ExecutorTab.Position = UDim2.new(0.3, 0, 0.1, 0)
  147. ExecutorTab.BackgroundTransparency = 1
  148. ExecutorTab.Text = "Executor"
  149. ExecutorTab.Font = HeadFont
  150. ExecutorTab.TextSize = 20
  151. ExecutorTab.TextColor3 = Color3.fromRGB(222, 222, 222)
  152. ExecutorTab.AutoButtonColor = false
  153.  
  154. SearchTab.Name = "SearchTab"
  155. SearchTab.Parent = DynamicIsland
  156. SearchTab.AnchorPoint = Vector2.new(0.5, 0.5)
  157. SearchTab.Size = UDim2.new(0, 80, 0, 25)
  158. SearchTab.Position = UDim2.new(0.5, 0, 0.1, 0)
  159. SearchTab.BackgroundTransparency = 1
  160. SearchTab.Text = "Search"
  161. SearchTab.Font = HeadFont
  162. SearchTab.TextSize = 20
  163. SearchTab.TextColor3 = Color3.fromRGB(222, 222, 222)
  164. SearchTab.AutoButtonColor = false
  165.  
  166. FavouritesTab.Name = "FavouritesTab"
  167. FavouritesTab.Parent = DynamicIsland
  168. FavouritesTab.AnchorPoint = Vector2.new(0.5, 0.5)
  169. FavouritesTab.Size = UDim2.new(0, 80, 0, 25)
  170. FavouritesTab.Position = UDim2.new(0.7, 0, 0.1, 0)
  171. FavouritesTab.BackgroundTransparency = 1
  172. FavouritesTab.Text = "Favourites"
  173. FavouritesTab.Font = HeadFont
  174. FavouritesTab.TextSize = 20
  175. FavouritesTab.TextColor3 = Color3.fromRGB(222, 222, 222)
  176. FavouritesTab.AutoButtonColor = false
  177.  
  178. SettingsTab.Name = "SettingsTab"
  179. SettingsTab.Parent = DynamicIsland
  180. SettingsTab.AnchorPoint = Vector2.new(0.5, 0.5)
  181. SettingsTab.Size = UDim2.new(0, 80, 0, 25)
  182. SettingsTab.Position = UDim2.new(0.9, 0, 0.1, 0)
  183. SettingsTab.BackgroundTransparency = 1
  184. SettingsTab.Text = "Settings"
  185. SettingsTab.Font = HeadFont
  186. SettingsTab.TextSize = 20
  187. SettingsTab.TextColor3 = Color3.fromRGB(222, 222, 222)
  188. SettingsTab.AutoButtonColor = false
  189.  
  190. TabsFolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  191. TabsFolder.Transparency = 1
  192. TabsFolder.Active = true
  193. TabsFolder.AnchorPoint = Vector2.new(0.5, 0.5)
  194. TabsFolder.Position = UDim2.new(0.5, 0, 0.6, 0)
  195. TabsFolder.Size = UDim2.new(0, 550, 0, 120)
  196. TabsFolder.Name = "TabsFolder"
  197. TabsFolder.Parent = DynamicIsland
  198. TabsFolder.ScrollBarThickness = 0
  199.  
  200. TabsParent.Transparency = 1
  201. TabsParent.AnchorPoint = Vector2.new(0.5, 0.5)
  202. TabsParent.Position = UDim2.new(3.5, 0, 0.5, 0)
  203. TabsParent.Size = UDim2.new(0, 10, 0, 10)
  204. TabsParent.Name = "TabsParent"
  205. TabsParent.Parent = TabsFolder
  206.  
  207. MainFrame.Name = "MainFrame"
  208. MainFrame.Parent = TabsParent
  209. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  210. MainFrame.Transparency = 1
  211. MainFrame.Position = UDim2.new(0.5, 0, -0.8, 0)
  212. MainFrame.Size = UDim2.new(0, 550, 0, 95)
  213.  
  214. ExecutorMainFrame.Name = "MainFrame"
  215. ExecutorMainFrame.Parent = TabsParent
  216. ExecutorMainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  217. ExecutorMainFrame.Transparency = 1
  218. ExecutorMainFrame.Position = UDim2.new(-82, 0, -0.8, 0)
  219. ExecutorMainFrame.Size = UDim2.new(0, 550, 0, 95)
  220.  
  221. ExecutorScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  222. ExecutorScrollingFrame.Transparency = 1
  223. ExecutorScrollingFrame.Active = true
  224. ExecutorScrollingFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  225. ExecutorScrollingFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  226. ExecutorScrollingFrame.Size = UDim2.new(0, 550, 0, 95)
  227. ExecutorScrollingFrame.Name = "ExecutorScrollingFrame"
  228. ExecutorScrollingFrame.Parent = ExecutorMainFrame
  229. ExecutorScrollingFrame.ScrollBarThickness = 0
  230.  
  231. ExecutorTextBox.Name = "ExecutorTextBox"
  232. ExecutorTextBox.Parent = ExecutorScrollingFrame
  233. ExecutorTextBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  234. ExecutorTextBox.Position = UDim2.new(0, 0, 0, 0)
  235. ExecutorTextBox.Size = UDim2.new(0, 551, 0, 95)
  236. ExecutorTextBox.Font = HeadFont
  237. ExecutorTextBox.ClearTextOnFocus = false
  238. ExecutorTextBox.FontSize = Enum.FontSize.Size18
  239. ExecutorTextBox.Text = ""
  240. ExecutorTextBox.PlaceholderText = "print(\"Hello World\")"
  241. ExecutorTextBox.TextColor3 = Color3.fromRGB(0, 200, 0)
  242. ExecutorTextBox.MultiLine = true
  243. ExecutorTextBox.TextSize = 15
  244. ExecutorTextBox.TextXAlignment = Enum.TextXAlignment.Left
  245. ExecutorTextBox.TextYAlignment = Enum.TextYAlignment.Top
  246. ExecutorTextBox.TextWrapped = true
  247.  
  248. ExecutorTextBoxUICorner.Parent = ExecutorTextBox
  249. ExecutorTextBoxUICorner.CornerRadius = UDim.new(0, 10)
  250.  
  251. ExecuteTextBox.Name = "ExecuteTextBox"
  252. ExecuteTextBox.Parent = ExecutorMainFrame
  253.  
  254. ExecuteTextBox.Position = UDim2.new(0.09, 0, 1.137, 0)
  255. ExecuteTextBox.Size = UDim2.new(0, 100, 0, 25)
  256. ExecuteTextBox.AnchorPoint = Vector2.new(0.5, 0.5)
  257. ExecuteTextBox.Font = HeadFont
  258. ExecuteTextBox.Text = "Run"
  259. ExecuteTextBox.TextColor3 = Color3.fromRGB(222, 222, 222)
  260. ExecuteTextBox.AutoButtonColor = false
  261. ExecuteTextBox.TextSize = 25
  262. ExecuteTextBox.BackgroundColor3 = Color3.fromRGB(80, 200, 120)
  263.  
  264. ExecuteTextBoxUICorner.CornerRadius = UDim.new(0, 10)
  265. ExecuteTextBoxUICorner.Parent = ExecuteTextBox
  266.  
  267. InfoBox.Name = "InfoBox"
  268. InfoBox.Parent = MainFrame
  269. InfoBox.Transparency = 1
  270. InfoBox.AnchorPoint = Vector2.new(0.5, 0.5)
  271. InfoBox.Position = UDim2.new(0.5, 0, 1, 0)
  272. InfoBox.Size = UDim2.new(0, 550, 0, 95)
  273.  
  274. SearchBox.Name = "SearchBox"
  275. SearchBox.Parent = TabsParent
  276. SearchBox.BackgroundTransparency = 1
  277. SearchBox.AnchorPoint = Vector2.new(0.5, 0.5)
  278. SearchBox.Position = UDim2.new(0.5, 0, 5.25, 0)
  279. SearchBox.Size = UDim2.new(0, 550, 0, 25)
  280. SearchBox.ClearTextOnFocus = false
  281. SearchBox.Font = HeadFont
  282. SearchBox.PlaceholderText = "Click Here To Search"
  283. SearchBox.PlaceholderColor3 = Color3.fromRGB(222, 222, 222)
  284. SearchBox.Text = ""
  285. SearchBox.TextColor3 = Color3.fromRGB(222, 222, 222)
  286. SearchBox.TextScaled = true
  287. SearchBox.TextSize = 14.000
  288. SearchBox.TextWrapped = true
  289.  
  290. UICorner_3.CornerRadius = UDim.new(0, 100)
  291. UICorner_3.Parent = SearchBox
  292.  
  293. ScriptListFrame.Name = "ScriptListFrame"
  294. ScriptListFrame.Parent = MainFrame
  295. ScriptListFrame.Active = true
  296. ScriptListFrame.Transparency = 1
  297. ScriptListFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  298. ScriptListFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  299. ScriptListFrame.Size = UDim2.new(0, 550, 0, 95)
  300. ScriptListFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  301. ScriptListFrame.ScrollBarThickness = 0
  302.  
  303. UIPadding.Parent = ScriptListFrame
  304. UIPadding.PaddingBottom = UDim.new(0, 5)
  305. UIPadding.PaddingLeft = UDim.new(0, 0)
  306. UIPadding.PaddingRight = UDim.new(0, 0)
  307. UIPadding.PaddingTop = UDim.new(0, 0)
  308.  
  309. Scripts.Name = "Scripts"
  310. Scripts.Parent = ScriptListFrame
  311.  
  312. UIGridLayout.Parent = Scripts
  313. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  314. UIGridLayout.CellPadding = UDim2.new(0, 0, 0, 5)
  315. UIGridLayout.CellSize = UDim2.new(0, 550, 0, 95)
  316.  
  317. ScriptFrame.Name = "ScriptFrame"
  318. ScriptFrame.Parent = Scripts
  319. ScriptFrame.Transparency = 1
  320.  
  321. PreviewImage.Name = "PreviewImage"
  322. PreviewImage.Parent = ScriptFrame
  323. PreviewImage.BackgroundTransparency = 1
  324. PreviewImage.AnchorPoint = Vector2.new(0.5, 0.5)
  325. PreviewImage.Position = UDim2.new(0.5, 0, 0.5, 0)
  326. PreviewImage.Size = UIGridLayout.CellSize
  327. PreviewImage.Image = ""
  328.  
  329. UICorner_14.CornerRadius = UDim.new(0, 10)
  330. UICorner_14.Parent = PreviewImage
  331.  
  332. ImageShadow.Name = "ImageShadow"
  333. ImageShadow.Parent = PreviewImage
  334. ImageShadow.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  335. ImageShadow.BackgroundTransparency = 0.5
  336. ImageShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  337. ImageShadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  338. ImageShadow.Size = UIGridLayout.CellSize
  339.  
  340. ImageShadowUICorner.CornerRadius = UDim.new(0, 10)
  341. ImageShadowUICorner.Parent = ImageShadow
  342.  
  343. ScriptTitle.Name = "ScriptTitle"
  344. ScriptTitle.Parent = ScriptFrame
  345. ScriptTitle.BackgroundTransparency = 1
  346. ScriptTitle.Position = UDim2.new(0, 85, 0, 0)
  347. ScriptTitle.Size = UDim2.new(0, 160, 0, 25)
  348. ScriptTitle.Font = HeadFont
  349. ScriptTitle.Text = "Script Title"
  350. ScriptTitle.TextColor3 = Color3.fromRGB(222, 222, 222)
  351. ScriptTitle.TextScaled = true
  352. ScriptTitle.TextSize = 14.000
  353. ScriptTitle.TextWrapped = true
  354. ScriptTitle.TextXAlignment = Enum.TextXAlignment.Left
  355.  
  356. ExecuteButton.Name = "ExecuteButton"
  357. ExecuteButton.Parent = ScriptFrame
  358. ExecuteButton.Position = UDim2.new(0, 85, 0, 28)
  359. ExecuteButton.Size = UDim2.new(0, 100, 0, 20)
  360. ExecuteButton.Font = HeadFont
  361. ExecuteButton.Text = "Execute"
  362. ExecuteButton.TextColor3 = Color3.fromRGB(222, 222, 222)
  363. ExecuteButton.AutoButtonColor = false
  364. ExecuteButton.TextSize = 15
  365. ExecuteButton.BackgroundColor3 = Color3.fromRGB(80, 200, 120)
  366.  
  367. ExecuteButtonUICorner.CornerRadius = UDim.new(0, 20)
  368. ExecuteButtonUICorner.Parent = ExecuteButton
  369.  
  370. CopyScriptButton.Name = "CopyScriptButton"
  371. CopyScriptButton.Parent = ScriptFrame
  372. CopyScriptButton.Position = UDim2.new(0, 145, 0, 62)
  373. CopyScriptButton.Size = UDim2.new(0, 100, 0, 20)
  374. CopyScriptButton.Font = HeadFont
  375. CopyScriptButton.Text = "Copy"
  376. CopyScriptButton.TextColor3 = Color3.fromRGB(222, 222, 222)
  377. CopyScriptButton.AutoButtonColor = false
  378. CopyScriptButton.TextSize = 15
  379. CopyScriptButton.BackgroundColor3 = Color3.fromRGB(218, 223, 247)
  380.  
  381. CopyScriptButtonUICorner.CornerRadius = UDim.new(0, 20)
  382. CopyScriptButtonUICorner.Parent = CopyScriptButton
  383.  
  384. KeySystem.Name = "KeySystem"
  385. KeySystem.Parent = ScriptFrame
  386. KeySystem.BackgroundColor3 = Color3.fromRGB(242, 191, 33)
  387. KeySystem.Position = UDim2.new(0, 190, 0, 28)
  388. KeySystem.Size = UDim2.new(0, 50, 0, 20)
  389. KeySystem.Font = HeadFont
  390. KeySystem.Text = "Key System"
  391. KeySystem.TextColor3 = Color3.fromRGB(0, 0, 0)
  392.  
  393. KeySystemUICorner.CornerRadius = UDim.new(0, 10)
  394. KeySystemUICorner.Parent = KeySystem
  395.  
  396. ScriptGame.Name = "ScriptGame"
  397. ScriptGame.Parent = ScriptFrame
  398. ScriptGame.BackgroundTransparency = 1
  399. ScriptGame.Position = UDim2.new(0, 0, 0, 375)
  400. ScriptGame.Size = UDim2.new(0, 280, 0, 25)
  401. ScriptGame.Font = HeadFont
  402. ScriptGame.Text = "Game"
  403. ScriptGame.TextColor3 = Color3.fromRGB(222, 222, 222)
  404. ScriptGame.TextSize = 14.000
  405. ScriptGame.TextWrapped = true
  406. ScriptGame.TextXAlignment = Enum.TextXAlignment.Left
  407.  
  408. VerifiedScriptFrame.Name = "VerifiedScriptFrame"
  409. VerifiedScriptFrame.Parent = Scripts
  410. VerifiedScriptFrame.Transparency = 1
  411.  
  412. PreviewImage_2.Name = "PreviewImage"
  413. PreviewImage_2.Parent = VerifiedScriptFrame
  414. PreviewImage_2.BackgroundTransparency = 1
  415. PreviewImage_2.AnchorPoint = Vector2.new(0.5, 0.5)
  416. PreviewImage_2.Position = PreviewImage.Position
  417. PreviewImage_2.Size = UIGridLayout.CellSize
  418. PreviewImage_2.Image = ""
  419.  
  420. PreviewImageUICorner_2.CornerRadius = UDim.new(0, 10)
  421. PreviewImageUICorner_2.Parent = PreviewImage_2
  422.  
  423. ImageShadow_2.Name = "ImageShadow_2"
  424. ImageShadow_2.Parent = PreviewImage_2
  425. ImageShadow_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  426. ImageShadow_2.BackgroundTransparency = 0.5
  427. ImageShadow_2.AnchorPoint = Vector2.new(0.5, 0.5)
  428. ImageShadow_2.Position = UDim2.new(0.5, 0, 0.5, 0)
  429. ImageShadow_2.Size = UIGridLayout.CellSize
  430.  
  431. ImageShadowUICorner_2.CornerRadius = UDim.new(0, 10)
  432. ImageShadowUICorner_2.Parent = ImageShadow_2
  433.  
  434. ScriptTitle_2.Name = "ScriptTitle"
  435. ScriptTitle_2.Parent = VerifiedScriptFrame
  436. ScriptTitle_2.BackgroundTransparency = 1
  437. ScriptTitle_2.Position = ScriptTitle.Position
  438. ScriptTitle_2.Size = ScriptTitle.Size
  439. ScriptTitle_2.Font = HeadFont
  440. ScriptTitle_2.Text = "Script Title"
  441. ScriptTitle_2.TextColor3 = Color3.fromRGB(222, 222, 222)
  442. ScriptTitle_2.TextScaled = true
  443. ScriptTitle_2.TextSize = 14.000
  444. ScriptTitle_2.TextWrapped = true
  445. ScriptTitle_2.TextXAlignment = Enum.TextXAlignment.Left
  446.  
  447. ExecuteButton_2.Name = "ExecuteButton"
  448. ExecuteButton_2.Parent = VerifiedScriptFrame
  449. ExecuteButton_2.Position = ExecuteButton.Position
  450. ExecuteButton_2.Size = ExecuteButton.Size
  451. ExecuteButton_2.Font = HeadFont
  452. ExecuteButton_2.Text = "Execute"
  453. ExecuteButton_2.TextColor3 = Color3.fromRGB(222, 222, 222)
  454. ExecuteButton_2.AutoButtonColor = false
  455. ExecuteButton_2.TextSize = 15
  456. ExecuteButton_2.BackgroundColor3 = ExecuteButton.BackgroundColor3
  457.  
  458. ExecuteButtonUICorner_2.CornerRadius = UDim.new(0, 20)
  459. ExecuteButtonUICorner_2.Parent = ExecuteButton_2
  460.  
  461. CopyScriptButton_2.Name = "CopyScriptButton"
  462. CopyScriptButton_2.Parent = VerifiedScriptFrame
  463. CopyScriptButton_2.Position = CopyScriptButton.Position
  464. CopyScriptButton_2.Size = CopyScriptButton.Size
  465. CopyScriptButton_2.Font = HeadFont
  466. CopyScriptButton_2.Text = "Copy"
  467. CopyScriptButton_2.TextColor3 = Color3.fromRGB(222, 222, 222)
  468. CopyScriptButton_2.AutoButtonColor = false
  469. CopyScriptButton_2.TextSize = 15
  470. CopyScriptButton_2.BackgroundColor3 = CopyScriptButton.BackgroundColor3
  471.  
  472. CopyScriptButtonUICorner_2.CornerRadius = UDim.new(0, 20)
  473. CopyScriptButtonUICorner_2.Parent = CopyScriptButton_2
  474.  
  475. KeySystem_2.Name = "KeySystem"
  476. KeySystem_2.Parent = VerifiedScriptFrame
  477. KeySystem_2.BackgroundColor3 = Color3.fromRGB(242, 191, 33)
  478. KeySystem_2.Position = KeySystem.Position
  479. KeySystem_2.Size = KeySystem.Size
  480. KeySystem_2.Font = HeadFont
  481. KeySystem_2.Text = "Key System"
  482. KeySystem_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  483.  
  484. KeySystemUICorner_2.CornerRadius = UDim.new(0, 10)
  485. KeySystemUICorner_2.Parent = KeySystem_2
  486.  
  487. KeySystem.Visible = false
  488. KeySystem_2.Visible = false
  489.  
  490. ScriptGame_2.Name = "ScriptGame"
  491. ScriptGame_2.Parent = VerifiedScriptFrame
  492. ScriptGame_2.BackgroundTransparency = 1
  493. ScriptGame_2.Position = ScriptGame.Position
  494. ScriptGame_2.Size = ScriptGame.Size
  495. ScriptGame_2.Font = HeadFont
  496. ScriptGame_2.Text = "Game"
  497. ScriptGame_2.TextColor3 = Color3.fromRGB(222, 222, 222)
  498. ScriptGame_2.TextSize = 14.000
  499. ScriptGame_2.TextWrapped = true
  500. ScriptGame_2.TextXAlignment = Enum.TextXAlignment.Left
  501.  
  502. Comments_2.Name = "Comments"
  503. Comments_2.Parent = InfoBox
  504. Comments_2.Active = true
  505. Comments_2.BackgroundTransparency = 1
  506. Comments_2.BorderSizePixel = 0
  507. Comments_2.Position = UDim2.new(0, 0, 0, 10)
  508. Comments_2.Size = UDim2.new(0, 240, 0, 60)
  509. Comments_2.CanvasSize = UDim2.new(0, 0, 0, 0)
  510.  
  511. Comment.Name = "Comment"
  512. Comment.Parent = Comments_2
  513. Comment.BackgroundTransparency = 1
  514. Comment.Size = UDim2.new(0, 400, 0, 50)
  515.  
  516. Content.Name = "Content"
  517. Content.Parent = Comment
  518. Content.BackgroundTransparency = 1
  519. Content.Position = UDim2.new(0, 50, 0, 30)
  520. Content.Size = UDim2.new(0, 190, 0, 20)
  521. Content.Font = HeadFont
  522. Content.Text = "Comment"
  523. Content.TextColor3 = Color3.fromRGB(222, 222, 222)
  524. Content.TextSize = 14
  525. Content.TextWrapped = true
  526. Content.TextXAlignment = Enum.TextXAlignment.Left
  527. Content.TextYAlignment = Enum.TextYAlignment.Top
  528. Content.TextScaled = true
  529.  
  530. Author_2.Name = "Author"
  531. Author_2.Parent = Comment
  532. Author_2.BackgroundTransparency = 1
  533. Author_2.BorderSizePixel = 0
  534. Author_2.Position = UDim2.new(0, 50, 0, 5)
  535. Author_2.Size = UDim2.new(0, 200, 0, 25)
  536. Author_2.Font = HeadFont
  537. Author_2.Text = "Author"
  538. Author_2.TextColor3 = Color3.fromRGB(222, 222, 222)
  539. Author_2.TextSize = 20.000
  540. Author_2.TextWrapped = true
  541. Author_2.TextXAlignment = Enum.TextXAlignment.Left
  542.  
  543. ProfilePicture_2.Name = "ProfilePicture"
  544. ProfilePicture_2.Parent = Comment
  545. ProfilePicture_2.BackgroundColor3 = Color3.fromRGB(222, 222, 222)
  546. ProfilePicture_2.BackgroundTransparency = 1.000
  547. ProfilePicture_2.Position = UDim2.new(0, 5, 0, 5)
  548. ProfilePicture_2.Size = UDim2.new(0, 40, 0, 40)
  549. ProfilePicture_2.Image = "rbxassetid://17093333262"
  550.  
  551. UICorner_22.CornerRadius = UDim.new(1, 0)
  552. UICorner_22.Parent = ProfilePicture_2
  553.  
  554. UIListLayout_2.Parent = Comments_2
  555. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  556. UIListLayout_2.Padding = UDim.new(0, 5)
  557.  
  558. HistoryFrameBackground.Name = "HistoryFrameBackground"
  559. HistoryFrameBackground.Position = UDim2.new(0.5, 0, -1.9, 0)
  560. HistoryFrameBackground.Parent = SearchBox
  561. HistoryFrameBackground.AnchorPoint = Vector2.new(0.5, 0.5)
  562. HistoryFrameBackground.Size = MainFrame.Size
  563. HistoryFrameBackground.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  564. HistoryFrameBackground.Visible = false
  565.  
  566. HistoryFrameBackgroundUICorner.Parent = HistoryFrameBackground
  567. HistoryFrameBackgroundUICorner.CornerRadius = UDim.new(0, 10)
  568.  
  569. HistoryScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  570. HistoryScrollingFrame.Transparency = 1
  571. HistoryScrollingFrame.Active = true
  572. HistoryScrollingFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  573. HistoryScrollingFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  574. HistoryScrollingFrame.Size = UDim2.new(0, 546, 0, 95)
  575. HistoryScrollingFrame.Name = "HistoryScrollingFrame"
  576. HistoryScrollingFrame.Parent = HistoryFrameBackground
  577. HistoryScrollingFrame.ScrollBarThickness = 0
  578.  
  579. ExecutorTextBox:GetPropertyChangedSignal("Text"):Connect(function()
  580. ExecutorTextBox.Size = UDim2.new(0, 551, 0, ExecutorTextBox.TextBounds.Y + 95)
  581. end)
  582.  
  583. function createfolders(path)
  584. local pathtbl = string.split(path, "/")
  585. for i, v in pairs(pathtbl) do
  586. if i == 1 then
  587. if not isfolder(v) then
  588. makefolder(v)
  589. end
  590. else
  591. local newpath = pathtbl[1]
  592. for i2=2, i-1 do
  593. newpath = newpath.. "/" ..pathtbl[i2]
  594. end
  595. newpath = newpath.. "/" ..v
  596. if not isfolder(newpath) then
  597. makefolder(newpath)
  598. end
  599. end
  600. end
  601. end
  602.  
  603. if not isfolder("Dynamic_Island") then
  604. createfolders("Dynamic_Island")
  605. end
  606.  
  607. if not isfile("Dynamic_Island/History.ECCS") then
  608. writefile("Dynamic_Island/History.ECCS", "")
  609. end
  610.  
  611. File1 = readfile("Dynamic_Island/History.ECCS")
  612.  
  613. spawn(function()
  614. while task.wait() do
  615. if DynamicIsland.Size == UDim2.new(0, 550, 0, 150) then
  616. TabsLine.Visible = true
  617. HomeTab.Visible = true
  618. ExecutorTab.Visible = true
  619. SearchTab.Visible = true
  620. FavouritesTab.Visible = true
  621. SettingsTab.Visible = true
  622. TabsFolder.Visible = true
  623. end
  624. if DynamicIsland.Size ~= UDim2.new(0, 550, 0, 150) then
  625. TabsLine.Visible = false
  626. HomeTab.Visible = false
  627. ExecutorTab.Visible = false
  628. SearchTab.Visible = false
  629. FavouritesTab.Visible = false
  630. SettingsTab.Visible = false
  631. TabsFolder.Visible = false
  632. end
  633. end
  634. end)
  635.  
  636. spawn(function()
  637. while task.wait() do
  638. if DynamicIsland.Size == UDim2.new(0, 100, 0, 30) then
  639. DynamicIslandUICorner.CornerRadius = UDim.new(1, 0)
  640. DynamicIsland.TextTransparency = 0
  641. TweenService:Create(DynamicIsland, TweenInfo.new(0.2), {BackgroundTransparency = 0}):Play()
  642. else
  643. DynamicIsland.TextTransparency = 1
  644. DynamicIslandUICorner.CornerRadius = UDim.new(0, 10)
  645. TweenService:Create(DynamicIsland, TweenInfo.new(0.2), {BackgroundTransparency = 0.3}):Play()
  646. end
  647. end
  648. end)
  649.  
  650. spawn(function()
  651. while task.wait() do
  652. if HomeTabValue == 1 then
  653. TabsLine:TweenPosition(UDim2.new(0.1, 0, 0.18, 0),"InOut","Sine",0.2)
  654. TabsParent:TweenPosition(UDim2.new(3.5, 0, 0.5, 0),"InOut","Sine",0.2)
  655. end
  656. if ExecutorTabValue == 1 then
  657. TabsLine:TweenPosition(UDim2.new(0.3, 0, 0.18, 0),"InOut","Sine",0.2)
  658. TabsParent:TweenPosition(UDim2.new(2, 0, 0.5, 0),"InOut","Sine",0.2)
  659. end
  660. if SearchTabValue == 1 then
  661. TabsLine:TweenPosition(UDim2.new(0.5, 0, 0.18, 0),"InOut","Sine",0.2)
  662. TabsParent:TweenPosition(UDim2.new(0.5, 0, 0.5, 0),"InOut","Sine",0.2)
  663. end
  664. if FavouritesTabValue == 1 then
  665. TabsLine:TweenPosition(UDim2.new(0.7, 0, 0.18, 0),"InOut","Sine",0.2)
  666. TabsParent:TweenPosition(UDim2.new(-2, 0, 0.5, 0),"InOut","Sine",0.2)
  667. end
  668. if SettingsTabValue == 1 then
  669. TabsLine:TweenPosition(UDim2.new(0.9, 0, 0.18, 0),"InOut","Sine",0.2)
  670. TabsParent:TweenPosition(UDim2.new(-3.5, 0, 0.5, 0),"InOut","Sine",0.2)
  671. end
  672. end
  673. end)
  674.  
  675. HomeTab.MouseButton1Click:Connect(function()
  676. HomeTabValue = 1
  677. ExecutorTabValue = 0
  678. SearchTabValue = 0
  679. FavouritesTabValue = 0
  680. SettingsTabValue = 0
  681. end)
  682.  
  683. HomeTab.MouseButton1Click:Connect(function()
  684. HomeTabValue = 1
  685. ExecutorTabValue = 0
  686. SearchTabValue = 0
  687. FavouritesTabValue = 0
  688. SettingsTabValue = 0
  689. end)
  690.  
  691. ExecutorTab.MouseButton1Click:Connect(function()
  692. HomeTabValue = 0
  693. ExecutorTabValue = 1
  694. SearchTabValue = 0
  695. FavouritesTabValue = 0
  696. SettingsTabValue = 0
  697. end)
  698.  
  699. SearchTab.MouseButton1Click:Connect(function()
  700. HomeTabValue = 0
  701. ExecutorTabValue = 0
  702. SearchTabValue = 1
  703. FavouritesTabValue = 0
  704. SettingsTabValue = 0
  705. end)
  706.  
  707. FavouritesTab.MouseButton1Click:Connect(function()
  708. HomeTabValue = 0
  709. ExecutorTabValue = 0
  710. SearchTabValue = 0
  711. FavouritesTabValue = 1
  712. SettingsTabValue = 0
  713. end)
  714.  
  715. SettingsTab.MouseButton1Click:Connect(function()
  716. HomeTabValue = 0
  717. ExecutorTabValue = 0
  718. SearchTabValue = 0
  719. FavouritesTabValue = 0
  720. SettingsTabValue = 1
  721. end)
  722.  
  723. spawn(function()
  724. while task.wait() do
  725. DynamicIsland.Text = os.date("%H:%M")
  726. end
  727. end)
  728.  
  729. DynamicIsland.MouseEnter:Connect(function()
  730. DynamicIsland:TweenSize(UDim2.new(0, 550, 0, 150),"InOut","Sine",0.2)
  731. DynamicIsland:TweenPosition(UDim2.new(0.5, 0, 0.6, 0),"InOut","Sine",0.2)
  732. TweenService:Create(DynamicIsland, TweenInfo.new(0.2), {BackgroundTransparency = 0.3}):Play()
  733. end)
  734.  
  735. DynamicIsland.MouseButton1Click:Connect(function()
  736. if DynamicIsland.Size == UDim2.new(0, 100, 0, 30) then
  737. DynamicIsland:TweenSize(UDim2.new(0, 550, 0, 150),"InOut","Sine",0.2)
  738. DynamicIsland:TweenPosition(UDim2.new(0.5, 0, 0.6, 0),"InOut","Sine",0.2)
  739. TweenService:Create(DynamicIsland, TweenInfo.new(0.2), {BackgroundTransparency = 0.3}):Play()
  740. end
  741. end)
  742.  
  743. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  744. if gameProcessed then return end
  745. if input.KeyCode == Enum.KeyCode.RightAlt then
  746. DynamicIsland.Visible = not DynamicIsland.Visible
  747. elseif input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  748. local target = game:GetService("Players").LocalPlayer:GetMouse().Target
  749. if target and target:IsDescendantOf(DynamicIsland) then
  750. return
  751. else
  752. DynamicIsland:TweenSize(UDim2.new(0, 100, 0, 30), "InOut", "Sine", 0.2)
  753. DynamicIsland:TweenPosition(UDim2.new(0.5, 0, 0.9, 0), "InOut", "Sine", 0.2)
  754. TweenService:Create(DynamicIsland, TweenInfo.new(0.2), {BackgroundTransparency = 0}):Play()
  755. end
  756. end
  757. end)
  758.  
  759. page = 1
  760. gquery = ""
  761.  
  762. ExecutorScrollingFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  763. HistoryScrollingFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  764. MainFrame.ScriptListFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  765. MainFrame.ScriptListFrame.ScrollBarImageTransparency = 1
  766. MainFrame.ScriptListFrame.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  767. MainFrame.InfoBox.Comments.AutomaticCanvasSize = Enum.AutomaticSize.Y
  768. MainFrame.InfoBox.Comments.ScrollBarImageColor3 = Color3.new(0, 0, 0)
  769. MainFrame.InfoBox.Comments.ScrollBarImageTransparency = 1
  770.  
  771. VerifiedScript = MainFrame.ScriptListFrame.Scripts.VerifiedScriptFrame:Clone()
  772. Script = MainFrame.ScriptListFrame.Scripts.ScriptFrame:Clone()
  773. MainFrame.ScriptListFrame.Scripts.ScriptFrame:Destroy()
  774. MainFrame.ScriptListFrame.Scripts.VerifiedScriptFrame:Destroy()
  775.  
  776. Comment = MainFrame.InfoBox.Comments.Comment:Clone()
  777. MainFrame.InfoBox.Comments.Comment:Destroy()
  778.  
  779. function _if(a, b, c)
  780. if a then return b else return c end
  781. end
  782.  
  783. function fastmodeExec(func)
  784. if getgenv().fastmode == true then
  785. task.spawn(func)
  786. else
  787. func()
  788. end
  789. end
  790.  
  791. function fetchScripts(query, page)
  792. page = page or 1
  793. query = HttpService:UrlEncode(query)
  794.  
  795. 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))
  796. req = HttpService:JSONDecode(game:HttpGetAsync(url)).result
  797.  
  798. return req.scripts
  799. end
  800.  
  801. function fetchComments(scriptId, page)
  802. page = page or 1
  803.  
  804. url = "https://scriptblox.com/api/comment/" ..scriptId.. "?page=" ..tostring(page).. "&max=100"
  805. req = HttpService:JSONDecode(game:HttpGetAsync(url)).result
  806.  
  807. return req.comments
  808. end
  809.  
  810. function fixScript(scriptObj)
  811. req = HttpService:JSONDecode(game:HttpGetAsync("https://www.scriptblox.com/api/script/"..scriptObj.slug)).script
  812. scriptObj["script"] = _if(scriptObj["script"], scriptObj["script"], req.script)
  813. scriptObj["features"] = _if(scriptObj["features"], scriptObj["features"], req.features)
  814. scriptObj["owner"] = _if(scriptObj["owner"], scriptObj["owner"], req.owner)
  815.  
  816. return scriptObj
  817. end
  818.  
  819. function updateInfoBox(scriptObj)
  820. scriptObj = fixScript(scriptObj)
  821.  
  822. commentsUIListLayout = MainFrame.InfoBox.Comments.UIListLayout:Clone()
  823. MainFrame.InfoBox.Comments:ClearAllChildren()
  824. commentsUIListLayout.Parent = MainFrame.InfoBox.Comments
  825.  
  826. task.spawn(function()
  827. for _, v in pairs(fetchComments(scriptObj["_id"])) do
  828. newComment = Comment:Clone()
  829. newComment.Parent = MainFrame.InfoBox.Comments
  830. newComment.Content.Text = v.text
  831. newComment.Author.Text = v.commentBy.username
  832. end
  833. end)
  834. end
  835.  
  836. function refreshScripts(scriptTbl)
  837. if #scriptTbl <= 0 then
  838.  
  839. end
  840.  
  841. UIGridLayoutCopy = Scripts.UIGridLayout:Clone()
  842. Scripts:ClearAllChildren()
  843. UIGridLayoutCopy.Parent = Scripts
  844. addScripts(scriptTbl)
  845. end
  846.  
  847. function addScripts(scriptTbl)
  848. for i, v in pairs(scriptTbl) do
  849. fastmodeExec(function()
  850. local newScript
  851.  
  852. v = fixScript(v)
  853.  
  854. if v.verified == true then
  855. newScript = VerifiedScript:Clone()
  856. newScript.ScriptTitle.Text = v.title
  857. newScript.ScriptGame.Text = v.game.name
  858. newScript.Parent = Scripts
  859. else
  860. newScript = Script:Clone()
  861. newScript.ScriptTitle.Text = v.title
  862. newScript.ScriptGame.Text = v.game.name
  863. newScript.Parent = Scripts
  864. end
  865. if v.game.name == "Universal Script 📌" then
  866. newScript.PreviewImage.Image = "rbxassetid://74093385918485"
  867. else
  868. newScript.PreviewImage.Image = "https://assetgame.roblox.com/Game/Tools/ThumbnailAsset.ashx?aid="..v.game.gameId.."&fmt=png&wd=420&ht=420"
  869. end
  870. if v.key == true then
  871. newScript.KeySystem.Visible = true
  872. end
  873.  
  874. newScript.ExecuteButton.MouseButton1Click:Connect(function()
  875. loadstring(v.script)()
  876. end)
  877.  
  878. newScript.CopyScriptButton.MouseButton1Click:Connect(function()
  879. setclipboard(v.script)
  880. end)
  881.  
  882. --updateInfoBox(v)
  883.  
  884. end)
  885. end
  886. pagefetchrunning = false
  887. end
  888.  
  889. for s in string.gmatch(File1, '([^,]+)') do
  890. table.insert(History, s:match("^%s*(.-)%s*$"))
  891. end
  892.  
  893. local function findResult(tbl, value)
  894. local index = table.find(tbl, value)
  895. if index then
  896. return true
  897. else
  898. return false
  899. end
  900. end
  901.  
  902. local function updateSuggestions()
  903. local inputText = SearchBox.Text:lower()
  904. HistoryScrollingFrame:ClearAllChildren()
  905. HistoryFrameBackground.Visible = false
  906. if #inputText > 0 then
  907. local yOffset = 0
  908. for _, word in ipairs(History) do
  909. if word:lower():find(inputText) then
  910. HistoryFrameBackground.Visible = true
  911. SuggestionButton = Instance.new("TextButton")
  912. SuggestionButton.Parent = HistoryScrollingFrame
  913. SuggestionButton.Size = UDim2.new(1, 0, 0, 35)
  914. SuggestionButton.Position = UDim2.new(0, 0, 0, yOffset)
  915. SuggestionButton.Text = word
  916. SuggestionButton.TextXAlignment = Enum.TextXAlignment.Left
  917. SuggestionButton.TextYAlignment = Enum.TextYAlignment.Center
  918. SuggestionButton.Font = Enum.Font.ArimoBold
  919. SuggestionButton.TextScaled = true
  920. SuggestionButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  921. SuggestionButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  922. SuggestionButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  923. SuggestionButton.MouseButton1Click:Connect(function()
  924. spawn(function()
  925. for i = 1,10 do
  926. HistoryFrameBackground.Visible = false
  927. end
  928. end)
  929. SearchBox.Text = word
  930. gquery = SearchBox.Text
  931. page = 1
  932. local scriptsTbl = fetchScripts(SearchBox.Text, 1)
  933. refreshScripts(scriptsTbl)
  934. end)
  935. yOffset = yOffset + 35
  936. HistoryFrameBackground.Visible = true
  937. end
  938. end
  939. end
  940. end
  941.  
  942. SearchBox:GetPropertyChangedSignal("Text"):Connect(updateSuggestions)
  943.  
  944. SearchBox.FocusLost:Connect(function(enterPressed)
  945. if enterPressed then
  946. if SearchBox.Text ~= " " then
  947. local newText = SearchBox.Text
  948. local exists = false
  949. for _, word in ipairs(History) do
  950. if word:lower() == newText:lower() then
  951. exists = true
  952. break
  953. end
  954. end
  955. if not exists then
  956. HistoryFrameBackground.Visible = false
  957. table.insert(History, newText)
  958. writefile("Dynamic_Island/History.ECCS", table.concat(History, ", "))
  959.  end
  960. updateSuggestions()
  961. HistoryFrameBackground.Visible = false
  962. gquery = SearchBox.Text
  963. page = 1
  964. local scriptsTbl = fetchScripts(SearchBox.Text, 1)
  965. refreshScripts(scriptsTbl)
  966. end
  967. end
  968. end)
  969.  
  970. refreshScripts(fetchScripts(gquery, 1))
  971.  
  972. ScriptListFrame:GetPropertyChangedSignal("CanvasPosition"):Connect(function()
  973. if (ScriptListFrame.CanvasPosition.Y + ScriptListFrame.AbsoluteSize.Y) >= ScriptListFrame.AbsoluteCanvasSize.Y -200 and not pagefetchrunning then
  974. page = page + 1
  975. pagefetchrunning = true
  976. addScripts(fetchScripts(gquery, page))
  977. end
  978. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement