joefromsansnite

Untitled

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