Advertisement
ERROR_CODE

BloxBook

Apr 11th, 2024 (edited)
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.56 KB | None | 0 0
  1. if game:GetService("CoreGui"):FindFirstChild("BloxBook") then
  2. game:GetService("CoreGui"):FindFirstChild("BloxBook"):Destroy()
  3. end
  4. UserInputService = game:GetService("UserInputService")
  5. BloxBook = Instance.new("ScreenGui")
  6. MainFrame = Instance.new("Frame")
  7. UICorner = Instance.new("UICorner")
  8. TopBarFrame = Instance.new("Frame")
  9. UICorner_2 = Instance.new("UICorner")
  10. SearchBox = Instance.new("TextBox")
  11. UICorner_3 = Instance.new("UICorner")
  12. ScriptListFrame = Instance.new("ScrollingFrame")
  13. UIPadding = Instance.new("UIPadding")
  14. Scripts = Instance.new("Folder")
  15. UIGridLayout = Instance.new("UIGridLayout")
  16. ScriptFrame = Instance.new("Frame")
  17. ScriptTitle = Instance.new("TextLabel")
  18. ScriptAuthor = Instance.new("TextLabel")
  19. ScriptGame = Instance.new("TextLabel")
  20. VerifiedScriptFrame = Instance.new("Frame")
  21. ScriptTitle_2 = Instance.new("TextLabel")
  22. VerifiedIcon = Instance.new("ImageLabel")
  23. ScriptAuthor_2 = Instance.new("TextLabel")
  24. ScriptGame_2 = Instance.new("TextLabel")
  25. Info = Instance.new("Frame")
  26. PreviewImage = Instance.new("ImageLabel")
  27. UICorner_14 = Instance.new("UICorner")
  28. Author = Instance.new("Frame")
  29. InfoBoxAuthor = Instance.new("TextLabel")
  30. ProfilePicture = Instance.new("ImageLabel")
  31. UICorner_15 = Instance.new("UICorner")
  32. Title_2 = Instance.new("Frame")
  33. InfoBoxTitle = Instance.new("TextLabel")
  34. Game = Instance.new("TextLabel")
  35. Description = Instance.new("TextLabel")
  36. Comments = Instance.new("Frame")
  37. Inner = Instance.new("Frame")
  38. UICorner_21 = Instance.new("UICorner")
  39. Line = Instance.new("Frame")
  40. CommentsText = Instance.new("TextLabel")
  41. Comments_2 = Instance.new("ScrollingFrame")
  42. Comment = Instance.new("Frame")
  43. Content = Instance.new("TextLabel")
  44. Author_2 = Instance.new("TextLabel")
  45. ProfilePicture_2 = Instance.new("ImageLabel")
  46. UICorner_22 = Instance.new("UICorner")
  47. UIListLayout_3 = Instance.new("UIListLayout")
  48. CloseFrame = Instance.new("ImageButton")
  49. PreviewImage_2 = Instance.new("ImageLabel")
  50. PreviewImageUICorner_2 = Instance.new("UICorner")
  51. TopBar = Instance.new("Frame")
  52. TopBarUICorner = Instance.new("UICorner")
  53. SecondProfile = Instance.new("ImageLabel")
  54. SecondProfileUICorner_2 = Instance.new("UICorner")
  55. KeySystem = Instance.new("TextLabel")
  56. KeySystemUICorner = Instance.new("UICorner")
  57. KeySystem_2 = Instance.new("TextLabel")
  58. KeySystemUICorner_2 = Instance.new("UICorner")
  59. OpenButton = Instance.new("ImageButton")
  60. OpenButtonUICorner = Instance.new("UICorner")
  61. CloseButton = Instance.new("ImageButton")
  62. ViewsLabel = Instance.new("TextLabel")
  63. ViewsLabelUICorner = Instance.new("UICorner")
  64. ViewsLabel_2 = Instance.new("TextLabel")
  65. ViewsLabelUICorner_2 = Instance.new("UICorner")
  66. ViewEye = Instance.new("ImageLabel")
  67. ViewEye_2 = Instance.new("ImageLabel")
  68. ViewEyeUICorner = Instance.new("UICorner")
  69. ViewEyeUICorner_2 = Instance.new("UICorner")
  70. Share = Instance.new("ImageButton")
  71. ShareUICorner = Instance.new("UICorner")
  72. Share_2 = Instance.new("ImageButton")
  73. ShareUICorner_2 = Instance.new("UICorner")
  74. Description_2 = Instance.new("TextLabel")
  75. InfoBox = Instance.new("ScrollingFrame")
  76. InfoBoxUICorner = Instance.new("UICorner")
  77. OpenInfo = Instance.new("TextButton")
  78. OpenInfo_2 = Instance.new("TextButton")
  79. CloseInfoBox = Instance.new("TextButton")
  80.  
  81. InfoBox.Visible = false
  82.  
  83. BloxBook.Name = "BloxBook"
  84. BloxBook.Parent = game.CoreGui
  85. BloxBook.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  86. game.CoreGui.BloxBook.Enabled = true
  87.  
  88. OpenButton.Name = "OpenButton"
  89. OpenButton.Parent = BloxBook
  90. OpenButton.AnchorPoint = Vector2.new(0.5, 0.5)
  91. OpenButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  92. OpenButton.Position = UDim2.new(0.5, 0, 0, 0)
  93. OpenButton.Size = UDim2.new(0, 45, 0, 45)
  94. OpenButton.Image = "rbxassetid://17117775928"
  95. OpenButton.AutoButtonColor = false
  96.  
  97. OpenButtonUICorner.CornerRadius = UDim.new(0, 15)
  98. OpenButtonUICorner.Parent = OpenButton
  99.  
  100. OpenButton.Visible = false
  101.  
  102. MainFrame.Name = "MainFrame"
  103. MainFrame.Parent = BloxBook
  104. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  105. MainFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  106. MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  107. MainFrame.Size = UDim2.new(0, 400, 0, 450)
  108. MainFrame.ZIndex = 2
  109.  
  110. UICorner.CornerRadius = UDim.new(0, 3)
  111. UICorner.Parent = MainFrame
  112.  
  113. TopBar.Name = "TopBar"
  114. TopBar.Parent = MainFrame
  115. TopBar.AnchorPoint = Vector2.new(0.5, 0.5)
  116. TopBar.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  117. TopBar.Position = UDim2.new(0.5, 0, 0.04, 0)
  118. TopBar.Size = UDim2.new(0, 400, 0, 40)
  119.  
  120. TopBarUICorner.CornerRadius = UDim.new(0, 3)
  121. TopBarUICorner.Parent = TopBar
  122.  
  123. CloseInfoBox.Name = "CloseInfoBox"
  124. CloseInfoBox.Parent = MainFrame
  125. CloseInfoBox.BackgroundTransparency = 1
  126. CloseInfoBox.Position = UDim2.new(0, 2, 0,1)
  127. CloseInfoBox.Size = UDim2.new(0, 40, 0, 40)
  128. CloseInfoBox.Font = Enum.Font.Gotham
  129. CloseInfoBox.Text = "<--"
  130. CloseInfoBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  131. CloseInfoBox.TextSize = 30
  132.  
  133. CloseInfoBox.Visible = false
  134.  
  135. InfoBox.Name = "InfoBox"
  136. InfoBox.Parent = MainFrame
  137. InfoBox.Active = true
  138. InfoBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  139. InfoBox.BorderSizePixel = 0
  140. InfoBox.BackgroundTransparency = 1
  141. InfoBox.Position = UDim2.new(0, 0, 0.08, 0)
  142. InfoBox.Size = UDim2.new(0, 400, 0, 400)
  143. InfoBox.ZIndex = 3
  144. InfoBox.CanvasSize = UDim2.new(0, 0, 0, 0)
  145. InfoBox.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
  146.  
  147. InfoBoxUICorner.CornerRadius = UDim.new(0, 3)
  148. InfoBoxUICorner.Parent = InfoBox
  149.  
  150. SearchBox.Name = "SearchBox"
  151. SearchBox.Parent = MainFrame
  152. SearchBox.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  153. SearchBox.Position = UDim2.new(0, 5, 0, 5)
  154. SearchBox.Size = UDim2.new(0, 250, 0, 20)
  155. SearchBox.ClearTextOnFocus = false
  156. SearchBox.Font = Enum.Font.Gotham
  157. SearchBox.PlaceholderText = "Tags"
  158. SearchBox.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  159. SearchBox.Text = ""
  160. SearchBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  161. SearchBox.TextScaled = true
  162. SearchBox.TextSize = 14.000
  163. SearchBox.TextWrapped = true
  164.  
  165. spawn(function()
  166. while wait() do
  167. SearchBox.PlaceholderText = "Script name"
  168. wait(2)
  169. SearchBox.PlaceholderText = "Author name"
  170. wait(2)
  171. SearchBox.PlaceholderText = "Tags"
  172. wait(2)
  173. SearchBox.PlaceholderText = "Press 'F' to search"
  174. wait(2)
  175. SearchBox.PlaceholderText = "Press 'C' to clear TextBox"
  176. wait(2)
  177. SearchBox.PlaceholderText = "You can enter here links"
  178. wait(2)
  179. end
  180. end)
  181.  
  182. UICorner_3.CornerRadius = UDim.new(0, 10)
  183. UICorner_3.Parent = SearchBox
  184.  
  185. CloseButton.Name = "CloseButton"
  186. CloseButton.Parent = MainFrame
  187. CloseButton.AnchorPoint = Vector2.new(0.5, 0.5)
  188. CloseButton.BackgroundTransparency = 1
  189. CloseButton.Position = UDim2.new(0, 380, 0, 15)
  190. CloseButton.Size = UDim2.new(0, 40, 0, 40)
  191. CloseButton.Image = "rbxassetid://17094492732"
  192.  
  193. ScriptListFrame.Name = "ScriptListFrame"
  194. ScriptListFrame.Parent = MainFrame
  195. ScriptListFrame.Active = true
  196. ScriptListFrame.BackgroundTransparency = 1
  197. ScriptListFrame.BorderSizePixel = 0
  198. ScriptListFrame.Position = UDim2.new(0, 0, 0.08, 0)
  199. ScriptListFrame.Size = UDim2.new(0, 415, 0, 414)
  200. ScriptListFrame.ZIndex = 2
  201. ScriptListFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  202.  
  203. UIPadding.Parent = ScriptListFrame
  204. UIPadding.PaddingBottom = UDim.new(0, 0)
  205. UIPadding.PaddingLeft = UDim.new(0, 0)
  206. UIPadding.PaddingRight = UDim.new(0, 0)
  207. UIPadding.PaddingTop = UDim.new(0, 0)
  208.  
  209. Scripts.Name = "Scripts"
  210. Scripts.Parent = ScriptListFrame
  211.  
  212. UIGridLayout.Parent = Scripts
  213. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  214. UIGridLayout.CellPadding = UDim2.new(0, 1, 0, 1)
  215. UIGridLayout.CellSize = UDim2.new(0, 400, 0, 700)
  216.  
  217. ScriptFrame.Name = "ScriptFrame"
  218. ScriptFrame.Parent = Scripts
  219. ScriptFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  220. ScriptFrame.Size = UDim2.new(0, 370, 0, 700)
  221. ScriptFrame.BorderSizePixel = 0
  222.  
  223. ScriptTitle.Name = "ScriptTitle"
  224. ScriptTitle.Parent = ScriptFrame
  225. ScriptTitle.BackgroundTransparency = 1
  226. ScriptTitle.Position = UDim2.new(0, 0, 0, 305)
  227. ScriptTitle.Size = UDim2.new(0, 200, 0, 25)
  228. ScriptTitle.Font = Enum.Font.Gotham
  229. ScriptTitle.Text = "Script Title"
  230. ScriptTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  231. ScriptTitle.TextScaled = true
  232. ScriptTitle.TextSize = 14.000
  233. ScriptTitle.TextWrapped = true
  234. ScriptTitle.TextXAlignment = Enum.TextXAlignment.Left
  235.  
  236. ScriptAuthor.Name = "ScriptAuthor"
  237. ScriptAuthor.Parent = ScriptFrame
  238. ScriptAuthor.BackgroundTransparency = 1
  239. ScriptAuthor.Position = UDim2.new(0, 42, 0, 340)
  240. ScriptAuthor.Size = UDim2.new(0, 200, 0, 25)
  241. ScriptAuthor.Font = Enum.Font.Gotham
  242. ScriptAuthor.Text = "ScriptAuthor"
  243. ScriptAuthor.TextColor3 = Color3.fromRGB(255, 255, 255)
  244. ScriptAuthor.TextSize = 14.000
  245. ScriptAuthor.TextWrapped = true
  246. ScriptAuthor.TextXAlignment = Enum.TextXAlignment.Left
  247.  
  248. ScriptGame.Name = "ScriptGame"
  249. ScriptGame.Parent = ScriptFrame
  250. ScriptGame.BackgroundTransparency = 1
  251. ScriptGame.Position = UDim2.new(0, 0, 0, 375)
  252. ScriptGame.Size = UDim2.new(0, 280, 0, 25)
  253. ScriptGame.Font = Enum.Font.Gotham
  254. ScriptGame.Text = "Game"
  255. ScriptGame.TextColor3 = Color3.fromRGB(255, 255, 255)
  256. ScriptGame.TextSize = 14.000
  257. ScriptGame.TextWrapped = true
  258. ScriptGame.TextXAlignment = Enum.TextXAlignment.Left
  259.  
  260. VerifiedScriptFrame.Name = "VerifiedScriptFrame"
  261. VerifiedScriptFrame.Parent = Scripts
  262. VerifiedScriptFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  263. VerifiedScriptFrame.Size = UDim2.new(0, 300, 0, 150)
  264. VerifiedScriptFrame.BorderSizePixel = 0
  265.  
  266. ScriptTitle_2.Name = "ScriptTitle"
  267. ScriptTitle_2.Parent = VerifiedScriptFrame
  268. ScriptTitle_2.BackgroundTransparency = 1
  269. ScriptTitle_2.Position = ScriptTitle.Position
  270. ScriptTitle_2.Size = ScriptTitle.Size
  271. ScriptTitle_2.Font = Enum.Font.Gotham
  272. ScriptTitle_2.Text = "Script Title"
  273. ScriptTitle_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  274. ScriptTitle_2.TextScaled = true
  275. ScriptTitle_2.TextSize = 14.000
  276. ScriptTitle_2.TextWrapped = true
  277. ScriptTitle_2.TextXAlignment = Enum.TextXAlignment.Left
  278.  
  279. ScriptAuthor_2.Name = "ScriptAuthor"
  280. ScriptAuthor_2.Parent = VerifiedScriptFrame
  281. ScriptAuthor_2.BackgroundTransparency = 1
  282. ScriptAuthor_2.Position = ScriptAuthor.Position
  283. ScriptAuthor_2.Size = ScriptAuthor.Size
  284. ScriptAuthor_2.Font = Enum.Font.Gotham
  285. ScriptAuthor_2.Text = "ScriptAuthor"
  286. ScriptAuthor_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  287. ScriptAuthor_2.TextSize = 14.000
  288. ScriptAuthor_2.TextWrapped = true
  289. ScriptAuthor_2.TextXAlignment = Enum.TextXAlignment.Left
  290.  
  291. ScriptGame_2.Name = "ScriptGame"
  292. ScriptGame_2.Parent = VerifiedScriptFrame
  293. ScriptGame_2.BackgroundTransparency = 1
  294. ScriptGame_2.Position = ScriptGame.Position
  295. ScriptGame_2.Size = ScriptGame.Size
  296. ScriptGame_2.Font = Enum.Font.Gotham
  297. ScriptGame_2.Text = "Game"
  298. ScriptGame_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  299. ScriptGame_2.TextSize = 14.000
  300. ScriptGame_2.TextWrapped = true
  301. ScriptGame_2.TextXAlignment = Enum.TextXAlignment.Left
  302.  
  303. Info.Name = "Info"
  304. Info.Parent = InfoBox
  305. Info.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  306. Info.BackgroundTransparency = 1
  307. Info.Size = UDim2.new(0, 995, 0, 207)
  308.  
  309. PreviewImage.Name = "PreviewImage"
  310. PreviewImage.Parent = ScriptFrame
  311. PreviewImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  312. PreviewImage.BackgroundTransparency = 1
  313. PreviewImage.Position = UDim2.new(0, 50, 0, 5)
  314. PreviewImage.Size = UDim2.new(0, 300, 0, 300)
  315. PreviewImage.Image = "rbxassetid://17093295752"
  316.  
  317. UICorner_14.CornerRadius = UDim.new(0, 24)
  318. UICorner_14.Parent = PreviewImage
  319.  
  320. PreviewImage_2.Name = "PreviewImage"
  321. PreviewImage_2.Parent = VerifiedScriptFrame
  322. PreviewImage_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  323. PreviewImage_2.BackgroundTransparency = 1
  324. PreviewImage_2.Position = UDim2.new(0, 50, 0, 5)
  325. PreviewImage_2.Size = UDim2.new(0, 300, 0, 300)
  326. PreviewImage_2.Image = "rbxassetid://17093295752"
  327.  
  328. PreviewImageUICorner_2.CornerRadius = UDim.new(0, 24)
  329. PreviewImageUICorner_2.Parent = PreviewImage_2
  330.  
  331. ProfilePicture.Name = "ProfilePicture"
  332. ProfilePicture.Parent = ScriptFrame
  333. ProfilePicture.BackgroundTransparency = 1
  334. ProfilePicture.Position = UDim2.new(0, 1, 0, 330)
  335. ProfilePicture.Size = UDim2.new(0, 40, 0, 40)
  336. ProfilePicture.Image = "rbxassetid://17093333262"
  337.  
  338. UICorner_15.CornerRadius = UDim.new(1, 0)
  339. UICorner_15.Parent = ProfilePicture
  340.  
  341. SecondProfile.Name = "SecondProfile"
  342. SecondProfile.Parent = VerifiedScriptFrame
  343. SecondProfile.BackgroundTransparency = 1
  344. SecondProfile.Position = UDim2.new(0, 1, 0, 330)
  345. SecondProfile.Size = UDim2.new(0, 40, 0, 40)
  346. SecondProfile.Image = "rbxassetid://17093333262"
  347.  
  348. SecondProfileUICorner_2.CornerRadius = UDim.new(1, 0)
  349. SecondProfileUICorner_2.Parent = SecondProfile
  350.  
  351. KeySystem.Name = "KeySystem"
  352. KeySystem.Parent = ScriptFrame
  353. KeySystem.BackgroundColor3 = Color3.fromRGB(242, 191, 33)
  354. KeySystem.Position = UDim2.new(0, 250, 0, 270)
  355. KeySystem.Size = UDim2.new(0, 55, 0, 25)
  356. KeySystem.Font = Enum.Font.Gotham
  357. KeySystem.Text = "Key System"
  358. KeySystem.TextColor3 = Color3.fromRGB(0, 0, 0)
  359.  
  360. KeySystemUICorner.CornerRadius = UDim.new(0, 10)
  361. KeySystemUICorner.Parent = KeySystem
  362.  
  363. ViewsLabel.Name = "ViewsLabel"
  364. ViewsLabel.Parent = ScriptFrame
  365. ViewsLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  366. ViewsLabel.Position = UDim2.new(0, 55, 0, 270)
  367. ViewsLabel.Size = UDim2.new(0, 60, 0, 25)
  368. ViewsLabel.Font = Enum.Font.Gotham
  369. ViewsLabel.Text = "V"
  370. ViewsLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  371. ViewsLabel.TextScaled = true
  372.  
  373. ViewsLabelUICorner.CornerRadius = UDim.new(0, 10)
  374. ViewsLabelUICorner.Parent = ViewsLabel
  375.  
  376. ViewsLabel_2.Name = "ViewsLabel"
  377. ViewsLabel_2.Parent = VerifiedScriptFrame
  378. ViewsLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  379. ViewsLabel_2.Position = UDim2.new(0, 55, 0, 270)
  380. ViewsLabel_2.Size = UDim2.new(0, 60, 0, 25)
  381. ViewsLabel_2.Font = Enum.Font.Gotham
  382. ViewsLabel_2.Text = "V"
  383. ViewsLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  384. ViewsLabel_2.TextScaled = true
  385.  
  386. ViewsLabelUICorner_2.CornerRadius = UDim.new(0, 10)
  387. ViewsLabelUICorner_2.Parent = ViewsLabel_2
  388.  
  389. ViewEye.Name = "ViewEye"
  390. ViewEye.Parent = ScriptFrame
  391. ViewEye.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  392. ViewEye.Position = UDim2.new(0, 120, 0, 272)
  393. ViewEye.Size = UDim2.new(0, 25, 0, 20)
  394. ViewEye.Image = "rbxassetid://17094518883"
  395.  
  396. ViewEyeUICorner.CornerRadius = UDim.new(0, 10)
  397. ViewEyeUICorner.Parent = ViewEye
  398.  
  399. ViewEye_2.Name = "ViewEye"
  400. ViewEye_2.Parent = VerifiedScriptFrame
  401. ViewEye_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  402. ViewEye_2.Position = UDim2.new(0, 120, 0, 272)
  403. ViewEye_2.Size = UDim2.new(0, 25, 0, 20)
  404. ViewEye_2.Image = "rbxassetid://17094518883"
  405.  
  406. ViewEyeUICorner_2.CornerRadius = UDim.new(0, 10)
  407. ViewEyeUICorner_2.Parent = ViewEye_2
  408.  
  409. KeySystem_2.Name = "KeySystem"
  410. KeySystem_2.Parent = VerifiedScriptFrame
  411. KeySystem_2.BackgroundColor3 = Color3.fromRGB(242, 191, 33)
  412. KeySystem_2.Position = UDim2.new(0, 250, 0, 270)
  413. KeySystem_2.Size = UDim2.new(0, 55, 0, 25)
  414. KeySystem_2.Font = Enum.Font.Gotham
  415. KeySystem_2.Text = "Key System"
  416. KeySystem_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  417.  
  418. KeySystemUICorner_2.CornerRadius = UDim.new(0, 10)
  419. KeySystemUICorner_2.Parent = KeySystem_2
  420.  
  421. VerifiedIcon.Name = "VerifiedIcon"
  422. VerifiedIcon.Parent = PreviewImage_2
  423. VerifiedIcon.BackgroundTransparency = 1
  424. VerifiedIcon.Position = UDim2.new(0, 250, 0, 250)
  425. VerifiedIcon.Size = UDim2.new(0, 55, 0, 40)
  426. VerifiedIcon.Image = "rbxassetid://15621211889"
  427.  
  428. Share.Name = "Share"
  429. Share.Parent = ScriptFrame
  430. Share.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  431. Share.Position = UDim2.new(0, 310, 0, 8)
  432. Share.Size = UDim2.new(0, 30, 0, 30)
  433. Share.Image = "rbxassetid://17094508690"
  434. Share.AutoButtonColor = false
  435.  
  436. ShareUICorner.CornerRadius = UDim.new(0, 10)
  437. ShareUICorner.Parent = Share
  438.  
  439. Description.Name = "Description"
  440. Description.Parent = ScriptFrame
  441. Description.BackgroundTransparency = 1
  442. Description.Position = UDim2.new(0, 0, 0, 400)
  443. Description.Size = UDim2.new(0, 400, 0, 280)
  444. Description.Font = Enum.Font.Gotham
  445. Description.Text = "Desc"
  446. Description.TextColor3 = Color3.fromRGB(255, 255, 255)
  447. Description.TextSize = 20.000
  448. Description.TextWrapped = true
  449. Description.TextScaled = true
  450. Description.TextXAlignment = Enum.TextXAlignment.Left
  451. Description.TextYAlignment = Enum.TextYAlignment.Top
  452. Description.MaxVisibleGraphemes = 1500
  453.  
  454. Description_2.Name = "Description"
  455. Description_2.Parent = VerifiedScriptFrame
  456. Description_2.BackgroundTransparency = 1
  457. Description_2.Position = UDim2.new(0, 0, 0, 400)
  458. Description_2.Size = UDim2.new(0, 400, 0, 280)
  459. Description_2.Font = Enum.Font.Gotham
  460. Description_2.Text = "Desc"
  461. Description_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  462. Description_2.TextSize = 20.000
  463. Description_2.TextWrapped = true
  464. Description_2.TextScaled = true
  465. Description_2.TextXAlignment = Enum.TextXAlignment.Left
  466. Description_2.TextYAlignment = Enum.TextYAlignment.Top
  467. Description_2.MaxVisibleGraphemes = 1500
  468.  
  469. OpenInfo.Name = "OpenInfo"
  470. OpenInfo.Parent = ScriptFrame
  471. OpenInfo.BackgroundTransparency = 1
  472. OpenInfo.Position = UDim2.new(0, 280, 0, 670)
  473. OpenInfo.Size = UDim2.new(0, 100, 0, 25)
  474. OpenInfo.Font = Enum.Font.Gotham
  475. OpenInfo.Text = "Comments -->"
  476. OpenInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  477. OpenInfo.AutoButtonColor = false
  478. OpenInfo.TextSize = 20
  479.  
  480. OpenInfo_2.Name = "OpenInfo"
  481. OpenInfo_2.Parent = VerifiedScriptFrame
  482. OpenInfo_2.BackgroundTransparency = 1
  483. OpenInfo_2.Position = UDim2.new(0, 280, 0, 670)
  484. OpenInfo_2.Size = UDim2.new(0, 100, 0, 25)
  485. OpenInfo_2.Font = Enum.Font.Gotham
  486. OpenInfo_2.Text = "Comments -->"
  487. OpenInfo_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  488. OpenInfo_2.AutoButtonColor = false
  489. OpenInfo_2.TextSize = 20
  490.  
  491. Share_2.Name = "Share"
  492. Share_2.Parent = VerifiedScriptFrame
  493. Share_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  494. Share_2.Position = UDim2.new(0, 310, 0, 8)
  495. Share_2.Size = UDim2.new(0, 30, 0, 30)
  496. Share_2.Image = "rbxassetid://17094508690"
  497. Share_2.AutoButtonColor = false
  498.  
  499. ShareUICorner_2.CornerRadius = UDim.new(0, 10)
  500. ShareUICorner_2.Parent = Share_2
  501.  
  502. Comments.Name = "Comments"
  503. Comments.Parent = InfoBox
  504. Comments.BackgroundTransparency = 1
  505. Comments.Size = UDim2.new(0, 400, 0, 414)
  506.  
  507. Inner.Name = "Inner"
  508. Inner.Parent = Comments
  509. Inner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  510. Inner.Position = UDim2.new(0, 0, 0, 10)
  511. Inner.BackgroundTransparency = 1
  512. Inner.Size = UDim2.new(0, 400, 0, 414)
  513.  
  514. UICorner_21.CornerRadius = UDim.new(0, 12)
  515. UICorner_21.Parent = Inner
  516.  
  517. CommentsText.Name = "CommentsText"
  518. CommentsText.Parent = Inner
  519. CommentsText.BackgroundTransparency = 1
  520. CommentsText.Size = UDim2.new(0, 400, 0, 25)
  521. CommentsText.Font = Enum.Font.GothamBold
  522. CommentsText.Text = "Comments"
  523. CommentsText.TextColor3 = Color3.fromRGB(255, 255, 255)
  524. CommentsText.TextSize = 14.000
  525.  
  526. Comments_2.Name = "Comments"
  527. Comments_2.Parent = Inner
  528. Comments_2.Active = true
  529. Comments_2.BackgroundTransparency = 1
  530. Comments_2.BorderSizePixel = 0
  531. Comments_2.Position = UDim2.new(0, 0, 0, 10)
  532. Comments_2.Size = UDim2.new(0, 415, 0, 390)
  533. Comments_2.CanvasSize = UDim2.new(0, 0, 0, 0)
  534.  
  535. Comment.Name = "Comment"
  536. Comment.Parent = Comments_2
  537. Comment.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  538. Comment.BackgroundTransparency = 1
  539. Comment.Size = UDim2.new(0, 400, 0, 50)
  540.  
  541. Content.Name = "Content"
  542. Content.Parent = Comment
  543. Content.BackgroundTransparency = 1
  544. Content.Position = UDim2.new(0, 50, 0, 30)
  545. Content.Size = UDim2.new(0, 300, 0, 20)
  546. Content.Font = Enum.Font.Gotham
  547. Content.Text = "Comment"
  548. Content.TextColor3 = Color3.fromRGB(255, 255, 255)
  549. Content.TextSize = 14
  550. Content.TextWrapped = true
  551. Content.TextXAlignment = Enum.TextXAlignment.Left
  552. Content.TextYAlignment = Enum.TextYAlignment.Top
  553. Content.TextScaled = true
  554.  
  555. Author_2.Name = "Author"
  556. Author_2.Parent = Comment
  557. Author_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  558. Author_2.BackgroundTransparency = 1.000
  559. Author_2.BorderSizePixel = 0
  560. Author_2.Position = UDim2.new(0, 50, 0, 5)
  561. Author_2.Size = UDim2.new(0, 200, 0, 25)
  562. Author_2.Font = Enum.Font.GothamBold
  563. Author_2.Text = "Author"
  564. Author_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  565. Author_2.TextSize = 20.000
  566. Author_2.TextWrapped = true
  567. Author_2.TextXAlignment = Enum.TextXAlignment.Left
  568.  
  569. ProfilePicture_2.Name = "ProfilePicture"
  570. ProfilePicture_2.Parent = Comment
  571. ProfilePicture_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  572. ProfilePicture_2.BackgroundTransparency = 1.000
  573. ProfilePicture_2.Position = UDim2.new(0, 5, 0, 5)
  574. ProfilePicture_2.Size = UDim2.new(0, 40, 0, 40)
  575. ProfilePicture_2.Image = "rbxassetid://17093333262"
  576.  
  577. UICorner_22.CornerRadius = UDim.new(1, 0)
  578. UICorner_22.Parent = ProfilePicture_2
  579.  
  580. UIListLayout_3.Parent = Comments_2
  581. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  582. UIListLayout_3.Padding = UDim.new(0, 5)
  583.  KeySystem_2.Visible = false
  584. KeySystem.Visible = false
  585. getfakeasset = getcustomasset or getsynasset
  586.  
  587. HttpService = game:GetService("HttpService")
  588.  
  589.  
  590. page = 1
  591. gquery = ""
  592.  
  593. function tableConcat(t1,t2)
  594.  for i, v in pairs(t2) do
  595.   table.insert(t1, v)
  596.  end
  597.  return t1
  598. end
  599.  
  600.  
  601. BloxBook.MainFrame.ScriptListFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  602. BloxBook.MainFrame.InfoBox.AutomaticSize = Enum.AutomaticSize.Y
  603. BloxBook.MainFrame.ScriptListFrame.ScrollBarImageTransparency = 1
  604. BloxBook.MainFrame.ScriptListFrame.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  605. BloxBook.MainFrame.InfoBox.AutomaticCanvasSize = Enum.AutomaticSize.Y
  606. BloxBook.MainFrame.InfoBox.Comments.Inner.Comments.AutomaticCanvasSize = Enum.AutomaticSize.Y
  607. BloxBook.MainFrame.InfoBox.Comments.Inner.Comments.ScrollBarImageColor3 = Color3.new(0, 0, 0)
  608. BloxBook.MainFrame.InfoBox.Comments.Inner.Comments.ScrollBarImageTransparency = 1
  609. BloxBook.MainFrame.InfoBox.ScrollBarImageColor3 = Color3.new(0, 0, 0)
  610.  
  611. VerifiedScript = BloxBook.MainFrame.ScriptListFrame.Scripts.VerifiedScriptFrame:Clone()
  612. Script = BloxBook.MainFrame.ScriptListFrame.Scripts.ScriptFrame:Clone()
  613. BloxBook.MainFrame.ScriptListFrame.Scripts.ScriptFrame:Destroy()
  614. BloxBook.MainFrame.ScriptListFrame.Scripts.VerifiedScriptFrame:Destroy()
  615.  
  616. Comment = BloxBook.MainFrame.InfoBox.Comments.Inner.Comments.Comment:Clone()
  617. BloxBook.MainFrame.InfoBox.Comments.Inner.Comments.Comment:Destroy()
  618.  
  619.  
  620.  
  621.  
  622. function _if(a, b, c)
  623.  if a then return b else return c end
  624. end
  625.  
  626. function fastmodeExec(func)
  627.  if getgenv().fastmode == true then
  628.   task.spawn(func)
  629.  else
  630.   func()
  631.  end
  632. end
  633.  
  634.  
  635. function fetchScripts(query, page)
  636.  page = page or 1
  637.  query = HttpService:UrlEncode(query)
  638.  
  639.  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))
  640.  req = HttpService:JSONDecode(game:HttpGetAsync(url)).result
  641.  
  642.  return req.scripts
  643. end
  644.  
  645. function fetchComments(scriptId, page)
  646.  page = page or 1
  647.  
  648.  url = "https://scriptblox.com/api/comment/" ..scriptId.. "?page=" ..tostring(page).. "&max=100"
  649.  req = HttpService:JSONDecode(game:HttpGetAsync(url)).result
  650.  
  651.  return req.comments
  652. end
  653.  
  654. function fixScript(scriptObj)
  655.    req = HttpService:JSONDecode(game:HttpGetAsync("https://www.scriptblox.com/api/script/"..scriptObj.slug)).script
  656.    scriptObj["script"] = _if(scriptObj["script"], scriptObj["script"], req.script)
  657.    scriptObj["features"] = _if(scriptObj["features"], scriptObj["features"], req.features)
  658.    scriptObj["owner"] = _if(scriptObj["owner"], scriptObj["owner"], req.owner)
  659.    
  660.  return scriptObj
  661. end
  662.  
  663. function updateInfoBox(scriptObj)
  664.  scriptObj = fixScript(scriptObj)
  665.  
  666.  
  667.  commentsUIListLayout = BloxBook.MainFrame.InfoBox.Comments.Inner.Comments.UIListLayout:Clone()
  668.  BloxBook.MainFrame.InfoBox.Comments.Inner.Comments:ClearAllChildren()
  669.  commentsUIListLayout.Parent = BloxBook.MainFrame.InfoBox.Comments.Inner.Comments
  670.  
  671.  task.spawn(function()
  672.   for _, v in pairs(fetchComments(scriptObj["_id"])) do
  673.  
  674.    newComment = Comment:Clone()
  675.    newComment.Parent = BloxBook.MainFrame.InfoBox.Comments.Inner.Comments
  676.    newComment.Content.Text = v.text
  677.    newComment.Author.Text = v.commentBy.username
  678.   end
  679.  end)
  680. end
  681.  
  682.  
  683. function refreshScripts(scriptTbl)
  684.  if #scriptTbl <= 0 then
  685. MainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  686. else
  687. MainFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  688.  end
  689.  
  690.  UIGridLayoutCopy = Scripts.UIGridLayout:Clone()
  691.  Scripts:ClearAllChildren()
  692.  UIGridLayoutCopy.Parent = Scripts
  693.  
  694.  addScripts(scriptTbl)
  695. end
  696.  
  697. function addScripts(scriptTbl)
  698.  for i, v in pairs(scriptTbl) do
  699.   fastmodeExec(function()
  700.    local newScript
  701.  
  702.    v = fixScript(v)
  703.  
  704.    if v.verified == true then
  705.     newScript = VerifiedScript:Clone()
  706.     newScript.ScriptTitle.Text = v.title
  707.     newScript.ScriptAuthor.Text = "@"..v.owner.username
  708.     newScript.ScriptGame.Text = v.game.name
  709.     newScript.ViewsLabel.Text = v.views
  710.     newScript.Description.Text = v.features
  711.     newScript.Parent = Scripts
  712.    else
  713.     newScript = Script:Clone()
  714.     newScript.ScriptTitle.Text = v.title
  715.     newScript.ScriptAuthor.Text = "@"..v.owner.username
  716.     newScript.ScriptGame.Text = v.game.name
  717.     newScript.ViewsLabel.Text = v.views
  718.     newScript.Description.Text = v.features
  719.     newScript.Parent = Scripts
  720.    end
  721.    if v.game.name == "Universal Script 📌" then
  722.     newScript.PreviewImage.Image = "rbxassetid://17117106457"
  723.     else
  724.     newScript.PreviewImage.Image = "https://assetgame.roblox.com/Game/Tools/ThumbnailAsset.ashx?aid="..v.game.gameId.."&fmt=png&wd=420&ht=420"
  725.     end
  726.  
  727. if v.key == true then
  728. newScript.KeySystem.Visible = true
  729. end
  730.  
  731. CloseInfoBox.MouseButton1Click:Connect(function()
  732. ScriptListFrame.Visible = true
  733. InfoBox.Visible = false
  734. SearchBox.Visible = true
  735. CloseInfoBox.Visible = false
  736. MainFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  737. end)
  738.  
  739. newScript.OpenInfo.MouseButton1Click:Connect(function()
  740. updateInfoBox(v)
  741. ScriptListFrame.Visible = false
  742. InfoBox.Visible = true
  743. SearchBox.Visible = false
  744. CloseInfoBox.Visible = true
  745. MainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  746. end)
  747.  
  748. newScript.Share.MouseButton1Click:Connect(function()
  749. setclipboard(v.slug)
  750. end)
  751.   end)
  752.  end
  753.  pagefetchrunning = false
  754. end
  755. CloseButton.MouseButton1Click:Connect(function()
  756. MainFrame.Visible = false
  757. OpenButton.Visible = true
  758. end)
  759.  OpenButton.MouseButton1Click:Connect(function()
  760. MainFrame.Visible = true
  761. OpenButton.Visible = false
  762. end)
  763.  
  764. SearchBox.FocusLost:Connect(function(enterPressed)
  765.  if enterPressed then
  766.   gquery = SearchBox.Text
  767.   page = 1
  768.   local scriptsTbl = fetchScripts(SearchBox.Text, 1)
  769.   refreshScripts(scriptsTbl)
  770.  end
  771. end)
  772.  
  773.  UserInputService.InputBegan:Connect(function(input)
  774. if input.KeyCode == Enum.KeyCode.F then
  775. SearchBox:CaptureFocus()
  776. end
  777. end)
  778. UserInputService.InputBegan:Connect(function(input)
  779. if input.KeyCode == Enum.KeyCode.C then
  780. SearchBox.Text = ""
  781. end
  782. end)
  783.  
  784.  
  785. gui = MainFrame
  786.  
  787. local dragging
  788. local dragInput
  789. local dragStart
  790. local startPos
  791.  
  792. local function update(input)
  793.  local delta = input.Position - dragStart
  794.  gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  795. end
  796.  
  797. gui.InputBegan:Connect(function(input)
  798.  if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  799.   dragging = true
  800.   dragStart = input.Position
  801.   startPos = gui.Position
  802.  
  803.   input.Changed:Connect(function()
  804.    if input.UserInputState == Enum.UserInputState.End then
  805.     dragging = false
  806.    end
  807.   end)
  808.  end
  809. end)
  810.  
  811. gui.InputChanged:Connect(function(input)
  812.  if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  813.   dragInput = input
  814.  end
  815. end)
  816.  
  817. UserInputService.InputChanged:Connect(function(input)
  818.  if input == dragInput and dragging then
  819.   update(input)
  820.  end
  821. end)
  822.  
  823. refreshScripts(fetchScripts(gquery, 1))
  824.  
  825. ScriptListFrame:GetPropertyChangedSignal("CanvasPosition"):Connect(function()
  826.  if (ScriptListFrame.CanvasPosition.Y + ScriptListFrame.AbsoluteSize.Y) >= ScriptListFrame.AbsoluteCanvasSize.Y -200 and not pagefetchrunning then
  827.   page = page + 1
  828.   pagefetchrunning = true
  829.   addScripts(fetchScripts(gquery, page))
  830.  end
  831. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement