joefromsansnite

Untitled

Oct 16th, 2021
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.56 KB | None | 0 0
  1. local library = {}
  2.  
  3. function library:CREDITS()
  4. return "UI design by: ImposterSussy111\nScripting by: ImposterSussy111"
  5. end
  6. function library:VERSION()
  7. return "Version 1.0.0"
  8. end
  9. function library:AddWindow(title)
  10. title = (type(title) ~= "string") and "Title" or title
  11.  
  12. local runService = game:GetService("RunService")
  13. local tweenService = game:GetService("TweenService")
  14. local userInputService = game:GetService("UserInputService")
  15. local marketPlaceService = game:GetService("MarketplaceService")
  16. local players = game:GetService("Players")
  17.  
  18. local gameId = game.PlaceId
  19.  
  20. local player = players.LocalPlayer
  21.  
  22. local name, profilePicture = player.Name, players:GetUserThumbnailAsync(player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
  23. local gameName = (not runService:IsStudio()) and marketPlaceService:GetProductInfo(gameId) or "Game: Studio"
  24. local pages = 0
  25.  
  26.  
  27. -- Gui
  28. local NewLibrary = Instance.new("ScreenGui")
  29. local Menu = Instance.new("Frame")
  30. local Background = Instance.new("Frame")
  31. local Tabs = Instance.new("ScrollingFrame")
  32. local UIListLayout = Instance.new("UIListLayout")
  33. local Frames = Instance.new("Frame")
  34. local PlayerInfo = Instance.new("Frame")
  35. local Profile = Instance.new("ImageLabel")
  36. local UICorner_5 = Instance.new("UICorner")
  37. local Name = Instance.new("TextLabel")
  38. local GameName = Instance.new("TextLabel")
  39. local Seperator_2 = Instance.new("Frame")
  40. local Dropshadow = Instance.new("Frame")
  41. local UIGradient = Instance.new("UIGradient")
  42. local Pattern = Instance.new("ImageLabel")
  43. local Exit = Instance.new("ImageLabel")
  44. local ExitMain = Instance.new("TextButton")
  45. local Maximize = Instance.new("ImageLabel")
  46. local MaximizeMain = Instance.new("TextButton")
  47. local Minimize = Instance.new("ImageLabel")
  48. local MinimizeMain = Instance.new("TextButton")
  49. local Title = Instance.new("TextLabel")
  50. local UIPageLayout = Instance.new("UIPageLayout")
  51. local UIScale = Instance.new("UIScale")
  52.  
  53. NewLibrary.Name = "NewLibrary"
  54. NewLibrary.Parent = player.PlayerGui
  55. NewLibrary.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  56.  
  57. Menu.Name = "Menu"
  58. Menu.Parent = NewLibrary
  59. Menu.AnchorPoint = Vector2.new(0.5, 0.5)
  60. Menu.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  61. Menu.BorderSizePixel = 0
  62. Menu.Position = UDim2.new(0.521222174, 0, 0.295204312, 0)
  63. Menu.Size = UDim2.new(0, 488, 0, 15)
  64.  
  65. UIScale.Parent = Menu
  66. UIScale.Scale = 1.05
  67.  
  68. Background.Name = "Background"
  69. Background.Parent = Menu
  70. Background.AnchorPoint = Vector2.new(0.5, 0.5)
  71. Background.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  72. Background.BorderSizePixel = 0
  73. Background.Position = UDim2.new(0.5, 0, 10, 0)
  74. Background.Size = UDim2.new(0, 488, 0, 270)
  75. Background.ClipsDescendants = true
  76.  
  77. Tabs.Name = "Tabs"
  78. Tabs.AnchorPoint = Vector2.new(0.5, 0.5)
  79. Tabs.Parent = Background
  80. Tabs.Active = true
  81. Tabs.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  82. Tabs.BorderSizePixel = 0
  83. Tabs.Position = UDim2.new(0.154, 0, 0.57, 0)
  84. Tabs.Size = UDim2.new(0, 150, 0, 230)
  85. Tabs.ScrollBarThickness = 8
  86. Tabs.AutomaticCanvasSize = Enum.AutomaticSize.Y
  87. Tabs.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  88.  
  89. UIListLayout.Parent = Tabs
  90. UIListLayout.Padding = UDim.new(0, 0)
  91.  
  92. Frames.Name = "Frames"
  93. Frames.Parent = Background
  94. Frames.AnchorPoint = Vector2.new(0.5, 0.5)
  95. Frames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  96. Frames.BackgroundTransparency = 1.000
  97. Frames.Position = UDim2.new(0.65368849, 0, 0.5, 0)
  98. Frames.Size = UDim2.new(0, 337, 0, 270)
  99. Frames.ClipsDescendants = true
  100.  
  101. UIPageLayout.Parent = Frames
  102. UIPageLayout.EasingStyle = Enum.EasingStyle.Back
  103.  
  104. PlayerInfo.Name = "PlayerInfo"
  105. PlayerInfo.Parent = Background
  106. PlayerInfo.AnchorPoint = Vector2.new(0.5, 0.5)
  107. PlayerInfo.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  108. PlayerInfo.BorderSizePixel = 0
  109. PlayerInfo.Position = UDim2.new(0.154, 0, 0.07, 0)
  110. PlayerInfo.Size = UDim2.new(0, 150, 0, 40)
  111.  
  112. Profile.Name = "Profile"
  113. Profile.Parent = PlayerInfo
  114. Profile.AnchorPoint = Vector2.new(0.5, 0.5)
  115. Profile.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. Profile.BackgroundTransparency = 0
  117. Profile.Position = UDim2.new(0.142, 0, 0.5, 0)
  118. Profile.Size = UDim2.new(0, 28, 0, 28)
  119. Profile.Image = profilePicture
  120. Profile.BorderSizePixel = 0
  121.  
  122. UICorner_5.CornerRadius = UDim.new(1, 0)
  123. UICorner_5.Parent = Profile
  124.  
  125. Name.Name = "Name"
  126. Name.AnchorPoint = Vector2.new(0.5, 0.5)
  127. Name.Parent = PlayerInfo
  128. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  129. Name.BackgroundTransparency = 1.000
  130. Name.Position = UDim2.new(0.624, 0, 0.232, 0)
  131. Name.Size = UDim2.new(0, 95, 0, 25)
  132. Name.Font = Enum.Font.SourceSansBold
  133. Name.Text = name
  134. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  135. Name.TextScaled = true
  136. Name.TextSize = 14.000
  137. Name.TextWrapped = true
  138. Name.TextXAlignment = Enum.TextXAlignment.Left
  139.  
  140. GameName.Name = "GameName"
  141. GameName.Parent = PlayerInfo
  142. GameName.AnchorPoint = Vector2.new(0.5, 0.5)
  143. GameName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  144. GameName.BackgroundTransparency = 1.000
  145. GameName.Position = UDim2.new(0.624, 0, 0.727, 0)
  146. GameName.Size = UDim2.new(0, 95, 0, 25)
  147. GameName.Font = Enum.Font.SourceSansLight
  148. GameName.Text = gameName
  149. GameName.TextColor3 = Color3.fromRGB(255, 255, 255)
  150. GameName.TextScaled = true
  151. GameName.TextSize = 14.000
  152. GameName.TextWrapped = true
  153. GameName.TextXAlignment = Enum.TextXAlignment.Left
  154.  
  155. Seperator_2.Name = "Seperator"
  156. Seperator_2.Parent = PlayerInfo
  157. Seperator_2.AnchorPoint = Vector2.new(0.5, 0.5)
  158. Seperator_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  159. Seperator_2.BackgroundTransparency = 0.750
  160. Seperator_2.BorderSizePixel = 0
  161. Seperator_2.Position = UDim2.new(0.556, 0, 0.5, 0)
  162. Seperator_2.Size = UDim2.new(0, 75, 0, 1)
  163.  
  164. Dropshadow.Name = "Dropshadow"
  165. Dropshadow.Parent = Background
  166. Dropshadow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  167. Dropshadow.BackgroundTransparency = 0.500
  168. Dropshadow.BorderSizePixel = 0
  169. Dropshadow.Position = UDim2.new(0.30737704, 0, 0, 0)
  170. Dropshadow.Size = UDim2.new(0, 14, 0, 269)
  171. Dropshadow.ZIndex = 0
  172.  
  173. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(13, 13, 13)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(13, 13, 13))}
  174. UIGradient.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(1.00, 1.00)}
  175. UIGradient.Parent = Dropshadow
  176.  
  177. Pattern.Name = "Pattern"
  178. Pattern.Parent = Background
  179. Pattern.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  180. Pattern.BackgroundTransparency = 1.000
  181. Pattern.Position = UDim2.new(-0.00199896097, 0, -0.057706058, 0)
  182. Pattern.Size = UDim2.new(0, 488, 0, 286)
  183. Pattern.Visible = false
  184. Pattern.ZIndex = -1
  185. Pattern.Image = "rbxassetid://2151741365"
  186. Pattern.ScaleType = Enum.ScaleType.Tile
  187. Pattern.SliceCenter = Rect.new(0, 256, 0, 256)
  188. Pattern.TileSize = UDim2.new(0, 30, 0, 60)
  189.  
  190. Exit.Name = "Exit"
  191. Exit.Parent = Menu
  192. Exit.AnchorPoint = Vector2.new(0.5, 0.5)
  193. Exit.BackgroundTransparency = 1.000
  194. Exit.Position = UDim2.new(0.982222199, 0, 0.5, 0)
  195. Exit.Size = UDim2.new(0, 13, 0, 13)
  196. Exit.ImageColor3 = Color3.fromRGB(200, 200, 200)
  197. Exit.Image = "rbxassetid://7072725342"
  198.  
  199. ExitMain.Name = "ExitMain"
  200. ExitMain.Parent = Exit
  201. ExitMain.AnchorPoint = Vector2.new(0.5, 0.5)
  202. ExitMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  203. ExitMain.BackgroundTransparency = 1.000
  204. ExitMain.Position = UDim2.new(0.5, 0, 0.5, 0)
  205. ExitMain.Size = UDim2.new(0, 15, 0, 15)
  206. ExitMain.AutoButtonColor = false
  207. ExitMain.Font = Enum.Font.SourceSans
  208. ExitMain.Text = ""
  209. ExitMain.TextColor3 = Color3.fromRGB(0, 0, 0)
  210. ExitMain.TextSize = 14.000
  211.  
  212. Maximize.Name = "Maximize"
  213. Maximize.Parent = Menu
  214. Maximize.AnchorPoint = Vector2.new(0.5, 0.5)
  215. Maximize.BackgroundTransparency = 1.000
  216. Maximize.Position = UDim2.new(0.931111097, 0, 0.5, 0)
  217. Maximize.Size = UDim2.new(0, 13, 0, 13)
  218. Maximize.Image = "rbxassetid://7072718726"
  219. Maximize.ImageColor3 = Color3.fromRGB(200, 200, 200)
  220.  
  221. MaximizeMain.Name = "MaximizeMain"
  222. MaximizeMain.Parent = Maximize
  223. MaximizeMain.AnchorPoint = Vector2.new(0.5, 0.5)
  224. MaximizeMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  225. MaximizeMain.BackgroundTransparency = 1.000
  226. MaximizeMain.Position = UDim2.new(0.5, 0, 0.5, 0)
  227. MaximizeMain.Size = UDim2.new(0, 15, 0, 15)
  228. MaximizeMain.AutoButtonColor = false
  229. MaximizeMain.Font = Enum.Font.SourceSans
  230. MaximizeMain.Text = ""
  231. MaximizeMain.TextColor3 = Color3.fromRGB(0, 0, 0)
  232. MaximizeMain.TextSize = 14.000
  233.  
  234. Minimize.Name = "Minimize"
  235. Minimize.Parent = Menu
  236. Minimize.AnchorPoint = Vector2.new(0.5, 0.5)
  237. Minimize.BackgroundTransparency = 1.000
  238. Minimize.Position = UDim2.new(0.879888833, 0, 0.5, 0)
  239. Minimize.Size = UDim2.new(0, 13, 0, 13)
  240. Minimize.Image = "rbxassetid://7072719185"
  241. Minimize.ImageColor3 = Color3.fromRGB(200, 200, 200)
  242.  
  243. MinimizeMain.Name = "MinimizeMain"
  244. MinimizeMain.Parent = Minimize
  245. MinimizeMain.AnchorPoint = Vector2.new(0.5, 0.5)
  246. MinimizeMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  247. MinimizeMain.BackgroundTransparency = 1.000
  248. MinimizeMain.Position = UDim2.new(0.5, 0, 0.5, 0)
  249. MinimizeMain.Size = UDim2.new(0, 15, 0, 15)
  250. MinimizeMain.AutoButtonColor = false
  251. MinimizeMain.Font = Enum.Font.SourceSans
  252. MinimizeMain.Text = ""
  253. MinimizeMain.TextColor3 = Color3.fromRGB(0, 0, 0)
  254. MinimizeMain.TextSize = 14.000
  255.  
  256. Title.Name = "Title"
  257. Title.Parent = Menu
  258. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  259. Title.BackgroundTransparency = 1.000
  260. Title.Size = UDim2.new(0, 420, 0, 15)
  261. Title.Font = Enum.Font.SourceSansBold
  262. Title.Text = title
  263. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  264. Title.TextScaled = true
  265. Title.TextSize = 14.000
  266. Title.TextWrapped = true
  267. Title.Selectable = true
  268. Title.ZIndex = 0
  269.  
  270. local function setDraggable()
  271. Menu.Active = true
  272. Menu.Draggable = true
  273. end
  274.  
  275. local function onExit()
  276. local properties = {
  277. Scale = 0
  278. }
  279. local info = TweenInfo.new(.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, 0, false)
  280.  
  281. local tween = tweenService:Create(UIScale, info, properties)
  282.  
  283. tween:Play()
  284.  
  285. tween.Completed:Wait()
  286. NewLibrary:Destroy()
  287. end
  288. local function onMaximize()
  289. Background:TweenSizeAndPosition(UDim2.new(0, 488, 0, 270), UDim2.new(0.5, 0, 9.99, 0))
  290. end
  291. local function onMinimize()
  292. Background:TweenSizeAndPosition(UDim2.new(0, 488, 0, 0), UDim2.new(0.5, 0, 1, 0))
  293. end
  294.  
  295. local function onEnterHighlight(ui)
  296. ui.ImageColor3 = Color3.fromRGB(255, 255, 255)
  297. end
  298. local function onLeaveHighlight(ui)
  299. ui.ImageColor3 = Color3.fromRGB(200, 200, 200)
  300. end
  301. local function buttonClickEffect(parent)
  302. parent.ClipsDescendants = true
  303.  
  304. local mouseLocation = userInputService:GetMouseLocation()
  305. local absolutePosition = parent.AbsolutePosition
  306.  
  307. local effectXPosition = UDim2.new(0, mouseLocation.X-absolutePosition.X, 0, (mouseLocation.Y-absolutePosition.Y)-36)
  308.  
  309. local ButtonEffect = Instance.new("ImageLabel")
  310.  
  311. ButtonEffect.Name = "ButtonEffect"
  312. ButtonEffect.Parent = parent
  313. ButtonEffect.AnchorPoint = Vector2.new(0.5, 0.5)
  314. ButtonEffect.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  315. ButtonEffect.BackgroundTransparency = 1.000
  316. ButtonEffect.BorderSizePixel = 0
  317. ButtonEffect.Position = UDim2.new(0, 0, 0, 0)
  318. ButtonEffect.Size = UDim2.new(0, 25, 0, 25)
  319. ButtonEffect.Image = "rbxassetid://7658630902"
  320. ButtonEffect.ImageTransparency = 0.500
  321. ButtonEffect.Position = effectXPosition
  322.  
  323. ButtonEffect:TweenSize(UDim2.new(0, 200, 0, 200))
  324.  
  325. spawn(function()
  326. for i = 0.5, 1.05, 0.05 do
  327. ButtonEffect.ImageTransparency = i
  328. if i >= 1 then
  329. ButtonEffect:Destroy()
  330. end
  331. wait()
  332. end
  333. end)
  334. end
  335.  
  336.  
  337. local library2 = {}
  338.  
  339. function library2:Prompt(args)
  340. if player.PlayerGui:FindFirstChild("__Prompt") then
  341. return
  342. end
  343. local title, text, duration = "Title", "Text.", 3
  344.  
  345. title = (args.Title == nil) and title or args.Title
  346. text = (args.Text == nil) and text or args.Text
  347. duration = (args.Duration == nil) and duration or args.Duration
  348.  
  349. local Prompt = Instance.new("ScreenGui")
  350. local BlackBackground = Instance.new("Frame")
  351. local Menu = Instance.new("Frame")
  352. local Title = Instance.new("TextLabel")
  353. local Background = Instance.new("Frame")
  354. local Description = Instance.new("TextLabel")
  355. local OkayButton = Instance.new("TextButton")
  356. local UICorner = Instance.new("UICorner")
  357. local Frame = Instance.new("Frame")
  358. local UICorner_2 = Instance.new("UICorner")
  359. local UIStroke = Instance.new("UIStroke")
  360.  
  361. Prompt.Name = "__Prompt"
  362. Prompt.Parent = player.PlayerGui
  363. Prompt.Enabled = true
  364. Prompt.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  365.  
  366. BlackBackground.Name = "BlackBackground"
  367. BlackBackground.Parent = Prompt
  368. BlackBackground.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  369. BlackBackground.BackgroundTransparency = 0.500
  370. BlackBackground.BorderSizePixel = 0
  371. BlackBackground.Size = UDim2.new(10, 0, 10, 0)
  372. BlackBackground.ZIndex = -999999999
  373.  
  374. Menu.Name = "Menu"
  375. Menu.Parent = Prompt
  376. Menu.AnchorPoint = Vector2.new(0.5, 0.5)
  377. Menu.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  378. Menu.BorderSizePixel = 0
  379. Menu.Position = UDim2.new(0.5, 0, 2, 0)
  380. Menu.Size = UDim2.new(0, 350, 0, 15)
  381.  
  382. Title.Name = "Title"
  383. Title.Parent = Menu
  384. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  385. Title.BackgroundTransparency = 1.000
  386. Title.Position = UDim2.new(0.00303951371, 0, 0, 0)
  387. Title.Size = UDim2.new(0, 350, 0, 15)
  388. Title.Font = Enum.Font.SourceSansBold
  389. Title.Text = title
  390. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  391. Title.TextScaled = true
  392. Title.TextSize = 14.000
  393. Title.TextWrapped = true
  394.  
  395. Background.Name = "Background"
  396. Background.Parent = Menu
  397. Background.AnchorPoint = Vector2.new(0.5, 0.5)
  398. Background.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  399. Background.BorderSizePixel = 0
  400. Background.ClipsDescendants = true
  401. Background.Position = UDim2.new(0.500805378, 0, 8.26666641, 0)
  402. Background.Size = UDim2.new(0, 350, 0, 218)
  403.  
  404. Description.Name = "Description"
  405. Description.Parent = Background
  406. Description.AnchorPoint = Vector2.new(0.5, 0.5)
  407. Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  408. Description.BackgroundTransparency = 1.000
  409. Description.ClipsDescendants = true
  410. Description.Position = UDim2.new(0.5, 0, 0.389999986, 0)
  411. Description.Size = UDim2.new(0, 324, 0, 151)
  412. Description.Font = Enum.Font.SourceSansLight
  413. Description.Text = text
  414. Description.TextColor3 = Color3.fromRGB(255, 255, 255)
  415. Description.TextSize = 14.000
  416. Description.TextWrapped = true
  417. Description.TextYAlignment = Enum.TextYAlignment.Top
  418.  
  419. OkayButton.Name = "OkayButton"
  420. OkayButton.Parent = Background
  421. OkayButton.AnchorPoint = Vector2.new(0.5, 0.5)
  422. OkayButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  423. OkayButton.Position = UDim2.new(0.5, 0, 0.819000006, 0)
  424. OkayButton.Size = UDim2.new(0, 200, 0, 35)
  425. OkayButton.Font = Enum.Font.SourceSansLight
  426. OkayButton.Text = "Okay"
  427. OkayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  428. OkayButton.TextSize = 20.000
  429. OkayButton.TextWrapped = true
  430. OkayButton.AutoButtonColor = false
  431.  
  432. UICorner.Parent = OkayButton
  433.  
  434. Frame.Parent = OkayButton
  435. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  436. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  437. Frame.BackgroundTransparency = 1.000
  438. Frame.Position = UDim2.new(0.509506047, 0, 0.461233079, 0)
  439. Frame.Size = UDim2.new(0, 200, 0, 35)
  440.  
  441. UICorner_2.Parent = Frame
  442.  
  443. UIStroke.Parent = Frame
  444. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  445.  
  446. task.spawn(function()
  447. task.wait(duration)
  448. Menu:TweenPosition(UDim2.new(0.5, 0, 2, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false, function()
  449. Prompt:Destroy()
  450. end)
  451. end)
  452.  
  453. Menu:TweenPosition(UDim2.new(0.5, 0, 0.35, 0))
  454.  
  455. OkayButton.MouseButton1Up:Connect(function()
  456. buttonClickEffect(Frame)
  457. Menu:TweenPosition(UDim2.new(0.5, 0, 2, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false, function()
  458. Prompt:Destroy()
  459. end)
  460. end)
  461. end
  462.  
  463. local function createContainer(parent, text, description)
  464. local Container = Instance.new("Frame")
  465. local Label = Instance.new("TextLabel")
  466. local Info = Instance.new("ImageLabel")
  467. local InfoMain = Instance.new("TextButton")
  468.  
  469. Container.Name = "Container"
  470. Container.Parent = parent
  471. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  472. Container.BackgroundTransparency = 1.000
  473. Container.Size = UDim2.new(0, 296, 0, 50)
  474. Container.AutomaticSize = Enum.AutomaticSize.Y
  475.  
  476. Label.Name = "Label"
  477. Label.Parent = Container
  478. Label.AnchorPoint = Vector2.new(0.5, 0.5)
  479. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  480. Label.BackgroundTransparency = 1.000
  481. Label.Position = UDim2.new(0.305000007, 0, 0.5, 0)
  482. Label.Size = UDim2.new(0, 110, 0, 25)
  483. Label.Font = Enum.Font.SourceSansBold
  484. Label.Text = text
  485. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  486. Label.TextScaled = true
  487. Label.TextSize = 25.000
  488. Label.TextWrapped = true
  489. Label.TextXAlignment = Enum.TextXAlignment.Left
  490.  
  491. Info.Name = "Info"
  492. Info.Parent = Container
  493. Info.AnchorPoint = Vector2.new(0.5, 0.5)
  494. Info.BackgroundTransparency = 1.000
  495. Info.Position = UDim2.new(0.0599999987, 0, 0.5, 0)
  496. Info.Size = UDim2.new(0, 20, 0, 20)
  497. Info.Image = "rbxassetid://7072717857"
  498. Info.ImageColor3 = Color3.fromRGB(200, 200, 200)
  499.  
  500. InfoMain.Name = "InfoMain"
  501. InfoMain.Parent = Info
  502. InfoMain.AnchorPoint = Vector2.new(0.5, 0.5)
  503. InfoMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  504. InfoMain.BackgroundTransparency = 1.000
  505. InfoMain.Position = UDim2.new(0.5, 0, 0.5, 0)
  506. InfoMain.Size = UDim2.new(0, 15, 0, 15)
  507. InfoMain.AutoButtonColor = false
  508. InfoMain.Font = Enum.Font.SourceSans
  509. InfoMain.Text = ""
  510. InfoMain.TextColor3 = Color3.fromRGB(0, 0, 0)
  511. InfoMain.TextSize = 14.000
  512.  
  513. Info.MouseEnter:Connect(function()
  514. onEnterHighlight(Info)
  515. end)
  516. Info.MouseLeave:Connect(function()
  517. onLeaveHighlight(Info)
  518. end)
  519. InfoMain.MouseButton1Up:Connect(function()
  520. library2:Prompt({
  521. Title = text,
  522. Text = description
  523. })
  524. end)
  525. return Container
  526. end
  527.  
  528. function library2:AddTab(text, tabImage)
  529. tabImage = (tabImage == nil) and "rbxassetid://3926305904" or tabImage
  530. text = (type(text) ~= "string") and "Tab" or text
  531.  
  532. local Tab = Instance.new("TextButton")
  533. local TabLabel = Instance.new("TextLabel")
  534. local tab = Instance.new("ImageLabel")
  535. local Seperator = Instance.new("Frame")
  536. local Page = Instance.new("ScrollingFrame")
  537. local UIListLayout_2 = Instance.new("UIListLayout")
  538. local SectionOffset = Instance.new("Frame")
  539.  
  540. pages += 1
  541.  
  542. Tab.Name = "Tab"
  543. Tab.Parent = Tabs
  544. Tab.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  545. Tab.BorderSizePixel = 0
  546. Tab.Size = UDim2.new(0, 150, 0, 40)
  547. Tab.Font = Enum.Font.SourceSansLight
  548. Tab.Text = ""
  549. Tab.TextColor3 = Color3.fromRGB(255, 255, 255)
  550. Tab.TextSize = 14.000
  551. Tab.TextWrapped = true
  552. Tab.AutoButtonColor = false
  553.  
  554. TabLabel.Name = "TabLabel"
  555. TabLabel.Parent = Tab
  556. TabLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  557. TabLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  558. TabLabel.BackgroundTransparency = 1.000
  559. TabLabel.Position = UDim2.new(0.6, 0, 0.5, 0)
  560. TabLabel.Size = UDim2.new(0, 100, 0, 18)
  561. TabLabel.Font = Enum.Font.SourceSansLight
  562. TabLabel.Text = text
  563. TabLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  564. TabLabel.TextSize = 14.000
  565. TabLabel.TextWrapped = true
  566. TabLabel.TextXAlignment = Enum.TextXAlignment.Left
  567. TabLabel.Font = Enum.Font.SourceSansSemibold
  568.  
  569. tab.Name = "tab"
  570. tab.Parent = Tab
  571. tab.AnchorPoint = Vector2.new(0.5, 0.5)
  572. tab.BackgroundTransparency = 1.000
  573. tab.Position = UDim2.new(0.15, 0, 0.5, 0)
  574. tab.Size = UDim2.new(0, 18, 0, 18)
  575. tab.ZIndex = 2
  576. tab.Image = tabImage
  577. tab.ImageRectOffset = Vector2.new(484, 484)
  578. tab.ImageRectSize = Vector2.new(36, 36)
  579. tab.ImageColor3 = Color3.fromRGB(200, 200, 200)
  580.  
  581. Seperator.Name = "Seperator"
  582. Seperator.Parent = Tab
  583. Seperator.AnchorPoint = Vector2.new(0.5, 0.5)
  584. Seperator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  585. Seperator.BackgroundTransparency = 0.750
  586. Seperator.BorderSizePixel = 0
  587. Seperator.Position = UDim2.new(0.5, 0, .99, 0)
  588. Seperator.Size = UDim2.new(0, 150, 0, 1)
  589.  
  590. Page.Parent = Frames
  591. Page.Name = "Page"..(pages)
  592. Page.Active = true
  593. Page.AnchorPoint = Vector2.new(0.5, 0.5)
  594. Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  595. Page.BackgroundTransparency = 1.000
  596. Page.BorderSizePixel = 0
  597. Page.Position = UDim2.new(-10.500741839, 0, 0.5, 0)
  598. Page.Size = UDim2.new(0, 337, 0, 270)
  599. Page.ScrollBarThickness = 8
  600. Page.AutomaticCanvasSize = Enum.AutomaticSize.Y
  601. Page.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
  602.  
  603. UIListLayout_2.Parent = Page
  604. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  605. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  606. UIListLayout_2.Padding = UDim.new(0, 25)
  607.  
  608. SectionOffset.Name = "SectionOffset"
  609. SectionOffset.Parent = Page
  610. SectionOffset.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  611. SectionOffset.BackgroundTransparency = 1.000
  612. SectionOffset.Position = UDim2.new(0.0608308613, 0, 0, 0)
  613.  
  614. Tab.MouseButton1Up:Connect(function()
  615. buttonClickEffect(Tab)
  616.  
  617. local pageName = Page.Name
  618. local pageIndex = string.gsub(pageName, "%D", "")
  619.  
  620. UIPageLayout:JumpToIndex(pageIndex-1)
  621. end)
  622. Tab.MouseEnter:Connect(function()
  623. onEnterHighlight(tab)
  624. end)
  625. Tab.MouseLeave:Connect(function()
  626. onLeaveHighlight(tab)
  627. end)
  628.  
  629. local library3 = {}
  630.  
  631. function library3:AddSection(text)
  632. text = (type(text) ~= "string") and "Section" or text
  633.  
  634. local Section = Instance.new("Frame")
  635. local Section_2 = Instance.new("TextLabel")
  636. local UIListLayout_3 = Instance.new("UIListLayout")
  637. local UIStroke = Instance.new("UIStroke")
  638.  
  639. Section.Name = "Section"
  640. Section.Parent = Page
  641. Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  642. Section.BackgroundTransparency = 1.000
  643. Section.Position = UDim2.new(0.0608308613, 0, 0.0944444463, 0)
  644. Section.Size = UDim2.new(0, 296, 0, 50)
  645. Section.AutomaticSize = Enum.AutomaticSize.Y
  646.  
  647. UIStroke.Parent = Section
  648. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  649.  
  650. Section_2.Name = "Section"
  651. Section_2.Parent = Section
  652. Section_2.AnchorPoint = Vector2.new(0.5, 0.5)
  653. Section_2.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  654. Section_2.BorderColor3 = Color3.fromRGB(25, 25, 25)
  655. Section_2.BorderSizePixel = 15
  656. Section_2.Position = UDim2.new(0, 0, 0, 0)
  657. Section_2.Size = UDim2.new(0, 0, 0, 0)
  658. Section_2.Font = Enum.Font.SourceSansBold
  659. Section_2.Text = text
  660. Section_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  661. Section_2.TextSize = 20
  662. Section_2.AutomaticSize = Enum.AutomaticSize.X
  663.  
  664. UIListLayout_3.Parent = Section
  665. UIListLayout_3.HorizontalAlignment = Enum.HorizontalAlignment.Center
  666. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  667.  
  668. local library4 = {}
  669.  
  670. function library4:AddButton(text, description, callback)
  671. -- Set Variables
  672. text = (type(text) ~= "string") and "Button" or text
  673. description = (type(description) ~= "string") and "Description." or description
  674. callback = (type(callback) ~= "function") and function()
  675. print("Clicked!")
  676. end or callback
  677.  
  678.  
  679. -- Gui
  680. local TextButton = Instance.new("TextButton")
  681. local UICorner = Instance.new("UICorner")
  682. local UIStroke = Instance.new("UIStroke")
  683. local Frame = Instance.new("Frame")
  684. local UICorner_2 = Instance.new("UICorner")
  685. local Icon = Instance.new("ImageLabel")
  686. local Container = createContainer(Section, text, description)
  687.  
  688. TextButton.Parent = Container
  689. TextButton.AnchorPoint = Vector2.new(0.5, 0.5)
  690. TextButton.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  691. TextButton.BackgroundTransparency = 1
  692. TextButton.Position = UDim2.new(0.731304467, 0, 0.5, 0)
  693. TextButton.Size = UDim2.new(0, 144, 0, 32)
  694. TextButton.Font = Enum.Font.SourceSansLight
  695. TextButton.Text = ""
  696. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  697. TextButton.TextSize = 20.000
  698. TextButton.TextWrapped = true
  699. TextButton.AutoButtonColor = false
  700.  
  701. UICorner.Parent = TextButton
  702.  
  703. Frame.Parent = TextButton
  704. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  705. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  706. Frame.BackgroundTransparency = 1.000
  707. Frame.Position = UDim2.new(0.506931901, 0, 0.5, 0)
  708. Frame.Size = UDim2.new(0, 144, 0, 32)
  709.  
  710. UICorner_2.Parent = Frame
  711.  
  712. UIStroke.Parent = Frame
  713. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  714.  
  715. Icon.Name = "Icon"
  716. Icon.Parent = TextButton
  717. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  718. Icon.BackgroundTransparency = 1.000
  719. Icon.Position = UDim2.new(0.5, 0, 0.5, 0)
  720. Icon.Size = UDim2.new(0, 20, 0, 20)
  721. Icon.Image = "rbxassetid://7072719587"
  722.  
  723.  
  724. -- Functions
  725. TextButton.MouseButton1Up:Connect(function()
  726. buttonClickEffect(Frame)
  727. callback()
  728. end)
  729. end
  730. function library4:AddInput(text, description, callback)
  731. -- Set Variables
  732. text = (type(text) ~= "string") and "Input" or text
  733. description = (type(description) ~= "string") and "Description." or description
  734. callback = (type(callback) ~= "function") and function()
  735. print("Lost Focus!")
  736. end or callback
  737.  
  738.  
  739. -- Gui
  740. local TextBox = Instance.new("TextBox")
  741. local UICorner_3 = Instance.new("UICorner")
  742. local UIStroke = Instance.new("UIStroke")
  743. local Frame = Instance.new("Frame")
  744. local UICorner_4 = Instance.new("UICorner")
  745. local Container = createContainer(Section, text, description)
  746.  
  747. TextBox.Parent = Container
  748. TextBox.AnchorPoint = Vector2.new(0.5, 0.5)
  749. TextBox.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  750. TextBox.Position = UDim2.new(0.731000006, 0, 0.5, 0)
  751. TextBox.Size = UDim2.new(0, 144, 0, 32)
  752. TextBox.ClearTextOnFocus = false
  753. TextBox.Font = Enum.Font.SourceSansLight
  754. TextBox.PlaceholderColor3 = Color3.fromRGB(200, 200, 200)
  755. TextBox.PlaceholderText = "Input"
  756. TextBox.Text = ""
  757. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  758. TextBox.TextSize = 14.000
  759. TextBox.TextWrapped = true
  760.  
  761. UICorner_3.Parent = TextBox
  762.  
  763. Frame.Parent = TextBox
  764. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  765. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  766. Frame.BackgroundTransparency = 1.000
  767. Frame.Position = UDim2.new(0.506931901, 0, 0.5, 0)
  768. Frame.Size = UDim2.new(0, 144, 0, 32)
  769.  
  770. UICorner_4.Parent = Frame
  771.  
  772. UIStroke.Parent = Frame
  773. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  774.  
  775.  
  776. -- Functions
  777. TextBox.FocusLost:Connect(function()
  778. callback(TextBox.Text)
  779. end)
  780. end
  781. function library4:AddSlider(text, description, min, max, callback)
  782. -- Set Variables
  783. text = (type(text) ~= "string") and "Slider" or text
  784. description = (type(description) ~= "string") and "Description." or description
  785. min = (type(min) ~= "number") and 0 or min
  786. max = (type(max) ~= "number") and 10 or max
  787. callback = (type(callback) ~= "function") and function()
  788. print("Moved Slider!")
  789. end or callback
  790.  
  791. -- Variables
  792. local holding = false
  793.  
  794.  
  795. -- Gui
  796. local Slider = Instance.new("Frame")
  797. local UICorner = Instance.new("UICorner")
  798. local UIStroke = Instance.new("UIStroke")
  799. local Fill = Instance.new("Frame")
  800. local UICorner_2 = Instance.new("UICorner")
  801. local ValueLabel = Instance.new("TextLabel")
  802. local FillButton = Instance.new("TextButton")
  803. local UICorner_3 = Instance.new("UICorner")
  804. local Container = createContainer(Section, text, description)
  805.  
  806. Slider.Name = "Slider"
  807. Slider.Parent = Container
  808. Slider.AnchorPoint = Vector2.new(0.5, 0.5)
  809. Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  810. Slider.BackgroundTransparency = 1.000
  811. Slider.Position = UDim2.new(0.708270311, 0, 0.5, 0)
  812. Slider.Size = UDim2.new(0, 157, 0, 6)
  813.  
  814. UICorner.Parent = Slider
  815.  
  816. UIStroke.Parent = Slider
  817. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  818.  
  819. Fill.Name = "Fill"
  820. Fill.Parent = Slider
  821. Fill.AnchorPoint = Vector2.new(0.5, 0.5)
  822. Fill.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  823. Fill.Position = UDim2.new(0, 0, 0.5, 0)
  824. Fill.Size = UDim2.new(0, 1, 0, 6)
  825.  
  826. UICorner_2.Parent = Fill
  827.  
  828. ValueLabel.Name = "ValueLabel"
  829. ValueLabel.Parent = Slider
  830. ValueLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  831. ValueLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  832. ValueLabel.BackgroundTransparency = 1.000
  833. ValueLabel.Position = UDim2.new(0.497828394, 0, 2.25, 0)
  834. ValueLabel.Size = UDim2.new(0, 158, 0, 17)
  835. ValueLabel.Font = Enum.Font.SourceSansLight
  836. ValueLabel.Text = min
  837. ValueLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  838. ValueLabel.TextSize = 14.000
  839.  
  840. FillButton.Name = "FillButton"
  841. FillButton.Parent = Slider
  842. FillButton.AnchorPoint = Vector2.new(0.5, 0.5)
  843. FillButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  844. FillButton.Position = UDim2.new(0, 0, 0.5, 0)
  845. FillButton.Size = UDim2.new(0, 12, 0, 12)
  846. FillButton.AutoButtonColor = false
  847. FillButton.Font = Enum.Font.SourceSans
  848. FillButton.Text = ""
  849. FillButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  850. FillButton.TextSize = 14.000
  851.  
  852. UICorner_3.Parent = FillButton
  853.  
  854. FillButton.MouseButton1Down:Connect(function()
  855. holding = true
  856. end)
  857. FillButton.MouseButton1Up:Connect(function()
  858. holding = false
  859. end)
  860.  
  861. runService.RenderStepped:Connect(function()
  862. FillButton.Size = (holding == true) and UDim2.new(0, 13, 0, 13) or UDim2.new(0, 12, 0, 12)
  863.  
  864. if holding then
  865. local mouseLocation = userInputService:GetMouseLocation()
  866. local xPos = (mouseLocation.X-Slider.AbsolutePosition.X)/Slider.AbsoluteSize.X
  867.  
  868. xPos = math.clamp(xPos, 0, 1)
  869.  
  870. local value = min + (xPos * (max-min))
  871.  
  872. ValueLabel.Text = tostring(math.round(value))
  873.  
  874. Fill.Size = UDim2.new(xPos, 0, 0, 6)
  875. Fill.Position = UDim2.new(xPos/2, 0, 0.5, 0)
  876. FillButton.Position = UDim2.new(xPos, 0, 0.5, 0)
  877.  
  878. callback(value)
  879. end
  880. end)
  881. end
  882. function library4:AddToggle(text, description, callback)
  883. -- Set Variables
  884. text = (type(text) ~= "string") and "Toggle" or text
  885. description = (type(description) ~= "string") and "Description." or description
  886. callback = (type(callback) ~= "function") and function()
  887. print("Toggled!")
  888. end or callback
  889.  
  890.  
  891. -- Variables
  892. local toggled = false
  893. local debounce = false
  894.  
  895.  
  896. -- Gui
  897. local Toggle = Instance.new("Frame")
  898. local UICorner = Instance.new("UICorner")
  899. local UIStroke = Instance.new("UIStroke")
  900. local ToggleButton = Instance.new("TextButton")
  901. local UICorner_2 = Instance.new("UICorner")
  902. local Container = createContainer(Section, text, description)
  903.  
  904. Toggle.Name = "Toggle"
  905. Toggle.Parent = Container
  906. Toggle.AnchorPoint = Vector2.new(0.5, 0.5)
  907. Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  908. Toggle.BackgroundTransparency = 1.000
  909. Toggle.Position = UDim2.new(0.879, 0, 0.5, 0)
  910. Toggle.Size = UDim2.new(0, 42, 0, 21)
  911.  
  912. UICorner.CornerRadius = UDim.new(1, 0)
  913. UICorner.Parent = Toggle
  914.  
  915. UIStroke.Parent = Toggle
  916. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  917.  
  918. ToggleButton.Name = "ToggleButton"
  919. ToggleButton.Parent = Toggle
  920. ToggleButton.AnchorPoint = Vector2.new(0.5, 0.5)
  921. ToggleButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  922. ToggleButton.Position = UDim2.new(0.27, 0, 0.5, 0)
  923. ToggleButton.Size = UDim2.new(0, 18, 0, 18)
  924. ToggleButton.ZIndex = 1
  925. ToggleButton.AutoButtonColor = false
  926. ToggleButton.Font = Enum.Font.SourceSans
  927. ToggleButton.Text = ""
  928. ToggleButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  929. ToggleButton.TextSize = 14.000
  930.  
  931. UICorner_2.CornerRadius = UDim.new(1, 0)
  932. UICorner_2.Parent = ToggleButton
  933.  
  934.  
  935. -- Functions
  936. ToggleButton.MouseButton1Up:Connect(function()
  937. if debounce == false then
  938. debounce = true
  939.  
  940. toggled = not toggled
  941.  
  942. local pos = (toggled == true) and UDim2.new(0.74, 0, 0.5, 0) or UDim2.new(0.27, 0, 0.5, 0)
  943. local properties = (toggled == true) and {
  944. BackgroundColor3 = Color3.fromRGB(255, 255, 0)
  945. } or {
  946. BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  947. }
  948.  
  949. local info = TweenInfo.new(0.75, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  950. local tween = tweenService:Create(ToggleButton, info, properties)
  951.  
  952. ToggleButton:TweenPosition(pos, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.75, false)
  953. tween:Play()
  954.  
  955. callback(toggled)
  956.  
  957. task.wait(1)
  958. debounce = false
  959. end
  960. end)
  961. end
  962. function library4:AddColorPicker(text, description, callback)
  963. -- Set Variables
  964. text = (type(text) ~= "string") and "Color Picker" or text
  965. description = (type(description) ~= "string") and "Description." or description
  966. callback = (type(callback) ~= "function") and function()
  967. print("Picked Color!")
  968. end or callback
  969.  
  970.  
  971. -- Variables
  972. local colorVal = Color3.fromHSV(1,1,1)
  973.  
  974. local holdingC = false
  975. local holdingV = false
  976.  
  977.  
  978. -- Gui
  979. local ColorPicker = Instance.new("Frame")
  980. local ColorPickerMain = Instance.new("ImageLabel")
  981. local ColorPickerSelection = Instance.new("TextButton")
  982. local ValueSelection = Instance.new("TextButton")
  983. local Cursor = Instance.new("ImageLabel")
  984. local Cursor2 = Instance.new("ImageLabel")
  985. local UIStroke = Instance.new("UIStroke")
  986. local UIStroke_2 = Instance.new("UIStroke")
  987. local UICorner = Instance.new("UICorner")
  988. local ValuePickerMain = Instance.new("ImageLabel")
  989. local UICorner_2 = Instance.new("UICorner")
  990. local UIGradient = Instance.new("UIGradient")
  991. local Container = createContainer(Section, text, description)
  992.  
  993. ColorPicker.Name = "ColorPicker"
  994. ColorPicker.Parent = Container
  995. ColorPicker.AnchorPoint = Vector2.new(0.5, 0.5)
  996. ColorPicker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  997. ColorPicker.BackgroundTransparency = 1.000
  998. ColorPicker.BorderColor3 = Color3.fromRGB(27, 42, 53)
  999. ColorPicker.Position = UDim2.new(0.75, 0, 1.05, 0)
  1000. ColorPicker.Size = UDim2.new(0, 130, 0, 80)
  1001.  
  1002. ColorPickerMain.Name = "ColorPickerMain"
  1003. ColorPickerMain.Parent = ColorPicker
  1004. ColorPickerMain.AnchorPoint = Vector2.new(0.5, 0.5)
  1005. ColorPickerMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1006. ColorPickerMain.BorderSizePixel = 0
  1007. ColorPickerMain.Position = UDim2.new(0.414, 0, 0.5, 0)
  1008. ColorPickerMain.Size = UDim2.new(0, 100, 0, 75)
  1009. ColorPickerMain.Image = "rbxassetid://6320992248"
  1010.  
  1011. ColorPickerSelection.Parent = ColorPickerMain
  1012. ColorPickerSelection.BackgroundTransparency = 1
  1013. ColorPickerSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1014. ColorPickerSelection.Position = UDim2.new(0.5, 0, 0.5, 0)
  1015. ColorPickerSelection.Size = UDim2.new(0, 140, 0, 80)
  1016. ColorPickerSelection.Text = ""
  1017.  
  1018. ValuePickerMain.Name = "ValuePickerMain"
  1019. ValuePickerMain.Parent = ColorPicker
  1020. ValuePickerMain.AnchorPoint = Vector2.new(0.5, 0.5)
  1021. ValuePickerMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1022. ValuePickerMain.BorderSizePixel = 0
  1023. ValuePickerMain.LayoutOrder = 132
  1024. ValuePickerMain.Position = UDim2.new(0.957216084, 0, 0.5, 0)
  1025. ValuePickerMain.Size = UDim2.new(0, 15, 0, 75)
  1026.  
  1027. ValueSelection.Parent = ValuePickerMain
  1028. ValueSelection.BackgroundTransparency = 1
  1029. ValueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1030. ValueSelection.Position = UDim2.new(0.5, 0, 0.5, 0)
  1031. ValueSelection.Size = UDim2.new(0, 15, 0, 80)
  1032. ValueSelection.Text = ""
  1033.  
  1034. UICorner_2.CornerRadius = UDim.new(0, 4)
  1035. UICorner_2.Parent = ValuePickerMain
  1036.  
  1037. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 0, 0))}
  1038. UIGradient.Rotation = 90
  1039. UIGradient.Parent = ValuePickerMain
  1040.  
  1041. UIStroke_2.Parent = ValuePickerMain
  1042. UIStroke_2.Color = Color3.fromRGB(200, 200, 200)
  1043.  
  1044. Cursor.Parent = ColorPickerMain
  1045. Cursor.AnchorPoint = Vector2.new(0.5, 0.5)
  1046. Cursor.Position = UDim2.new(0.5, 0, 0.5, 0)
  1047. Cursor.Size = UDim2.new(0, 12, 0, 12)
  1048. Cursor.BackgroundTransparency = 1
  1049. Cursor.Image = "rbxassetid://7072707153"
  1050. Cursor.ImageColor3 = Color3.fromRGB(0, 0, 0)
  1051.  
  1052. Cursor2.Parent = ValuePickerMain
  1053. Cursor2.AnchorPoint = Vector2.new(0.5, 0.5)
  1054. Cursor2.Position = UDim2.new(0.5, 0, 0.5, 0)
  1055. Cursor2.Size = UDim2.new(0, 12, 0, 12)
  1056. Cursor2.BackgroundTransparency = 1
  1057. Cursor2.Image = "rbxassetid://7072707153"
  1058. Cursor2.ImageColor3 = Color3.fromRGB(0, 0, 0)
  1059.  
  1060. UICorner.CornerRadius = UDim.new(0, 4)
  1061. UICorner.Parent = ColorPickerMain
  1062.  
  1063. UIStroke.Parent = ColorPickerMain
  1064. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  1065.  
  1066. ColorPickerSelection.MouseButton1Down:Connect(function()
  1067. holdingC = true
  1068. end)
  1069. ColorPickerSelection.MouseButton1Up:Connect(function()
  1070. holdingC = false
  1071. end)
  1072.  
  1073. ValueSelection.MouseButton1Down:Connect(function()
  1074. holdingV = true
  1075. end)
  1076. ValueSelection.MouseButton1Up:Connect(function()
  1077. holdingV = false
  1078. end)
  1079.  
  1080. runService.RenderStepped:Connect(function()
  1081. local mouseLocation = userInputService:GetMouseLocation()
  1082. local x, y = (mouseLocation.X - ColorPickerMain.AbsolutePosition.X)/ColorPickerMain.AbsoluteSize.X, (mouseLocation.Y - ColorPickerMain.AbsolutePosition.Y)/ColorPickerMain.AbsoluteSize.Y
  1083.  
  1084. if holdingC and holdingV == false then
  1085. x = math.clamp(x, 0, 1)
  1086. y = math.clamp((y-.4), 0, 1)
  1087.  
  1088. Cursor.Position = UDim2.new(x, 0, y, 0)
  1089.  
  1090. local h, s, v = Color3.toHSV(colorVal)
  1091. local color = Color3.fromHSV(x, 1 - y, v)
  1092.  
  1093. colorVal = color
  1094.  
  1095. callback(colorVal)
  1096. end
  1097. if holdingV and holdingC == false then
  1098. y = math.clamp((y-.4), 0, 1)
  1099.  
  1100. Cursor2.Position = UDim2.new(0.5, 0, y, 0)
  1101.  
  1102. local h, s, v = Color3.toHSV(colorVal)
  1103.  
  1104. local color = Color3.fromHSV(h, s, 1 - y)
  1105.  
  1106. colorVal = color
  1107.  
  1108. callback(colorVal)
  1109. end
  1110. end)
  1111. end
  1112. return library4
  1113. end
  1114. function library3:SetIcon(imageId)
  1115. tab.Image = imageId
  1116. tab.ImageRectOffset = Vector2.new(0, 0)
  1117. tab.ImageRectSize = Vector2.new(0, 0)
  1118. end
  1119.  
  1120. return library3
  1121. end
  1122.  
  1123. local settingsTab = library2:AddTab("Settings")
  1124. local settingsSection = settingsTab:AddSection("Settings")
  1125.  
  1126. settingsTab:SetIcon("rbxassetid://7072721682")
  1127. settingsSection:AddInput("Scale", "Changes library scale.", function(v)
  1128. if tonumber(v) then
  1129. v = math.clamp(v, 0.5, 2)
  1130. UIScale.Scale = v
  1131. end
  1132. end)
  1133.  
  1134.  
  1135. -- Call Local Functions
  1136. setDraggable()
  1137. ExitMain.MouseButton1Up:Connect(function()
  1138. onExit()
  1139. end)
  1140. MaximizeMain.MouseButton1Up:Connect(function()
  1141. onMaximize()
  1142. end)
  1143. MinimizeMain.MouseButton1Up:Connect(function()
  1144. onMinimize()
  1145. end)
  1146.  
  1147. for _, button in pairs(Menu:GetChildren()) do
  1148. if button:IsA("ImageLabel") then
  1149. button.MouseEnter:Connect(function()
  1150. onEnterHighlight(button)
  1151. end)
  1152. button.MouseLeave:Connect(function()
  1153. onLeaveHighlight(button)
  1154. end)
  1155. end
  1156. end
  1157.  
  1158. return library2
  1159. end
  1160.  
  1161. return library
Add Comment
Please, Sign In to add comment