Advertisement
krtoowar

Untitled

Jan 19th, 2023 (edited)
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.46 KB | None | 0 0
  1. local library = {}
  2. local UserInputService = game:GetService("UserInputService")
  3.  
  4. local function hasProperty(object, prop)
  5. local t = object[prop]
  6. end
  7.  
  8. local TweenService = game:GetService("TweenService")
  9. function tweensize(obj, tweentime, goal)
  10. local time = tweentime
  11. local tween = TweenService:Create(obj, TweenInfo.new(time), {Size = goal})
  12. tween:Play()
  13. end
  14. function tweenpos(obj, tweentime, goal)
  15. local time = tweentime
  16. local tween = TweenService:Create(obj, TweenInfo.new(time), {Position = goal})
  17. tween:Play()
  18. end
  19.  
  20. function library:AddWindow(title)
  21. windowvisible = true
  22. savedposition = nil
  23.  
  24. local ScreenGui = Instance.new("ScreenGui")
  25. local MainContainer = Instance.new("Frame")
  26. local Title = Instance.new("TextLabel")
  27. local Time = Instance.new("TextLabel")
  28. local Date = Instance.new("TextLabel")
  29. local DragFrame = Instance.new("Frame")
  30. local PageList = Instance.new("Frame")
  31. local UIGridLayout = Instance.new("UIGridLayout")
  32. local Divider = Instance.new("Frame")
  33. local UIGradient = Instance.new("UIGradient")
  34. local PageHolder = Instance.new("Frame")
  35. local Loading = Instance.new("Frame")
  36. local C2 = Instance.new("Frame")
  37. local UICorner = Instance.new("UICorner")
  38. local C3 = Instance.new("Frame")
  39. local UICorner_2 = Instance.new("UICorner")
  40. local C1 = Instance.new("Frame")
  41. local UICorner_3 = Instance.new("UICorner")
  42. local C4 = Instance.new("Frame")
  43. local UICorner_4 = Instance.new("UICorner")
  44. local L_Shadow = Instance.new("ImageLabel")
  45. local Fade = Instance.new("Frame")
  46. local M_Shadow = Instance.new("ImageLabel")
  47.  
  48. syn.protect_gui(ScreenGui)
  49. ScreenGui.Parent = game.CoreGui
  50. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  51.  
  52. MainContainer.Name = "MainContainer"
  53. MainContainer.Parent = ScreenGui
  54. MainContainer.BackgroundColor3 = Color3.fromRGB(32, 31, 33)
  55. MainContainer.BorderSizePixel = 0
  56. MainContainer.Position = UDim2.new(0.314075112, 0, 0.209537804, 0)
  57. MainContainer.Size = UDim2.new(0, 737, 0, 449)
  58.  
  59. Title.Name = "Title"
  60. Title.Parent = MainContainer
  61. Title.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  62. Title.BackgroundTransparency = 1.000
  63. Title.Position = UDim2.new(0.00769291399, 0, 0.00445434311, 0)
  64. Title.Size = UDim2.new(0, 290, 0, 30)
  65. Title.Font = Enum.Font.Gotham
  66. Title.Text = title
  67. Title.RichText = true
  68. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  69. Title.TextScaled = true
  70. Title.TextSize = 14.000
  71. Title.TextWrapped = true
  72. Title.TextXAlignment = Enum.TextXAlignment.Left
  73.  
  74. Time.Name = "Time"
  75. Time.Parent = MainContainer
  76. Time.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  77. Time.BackgroundTransparency = 1.000
  78. Time.Position = UDim2.new(0.889894426, 0, 0, 0)
  79. Time.Size = UDim2.new(0, 73, 0, 17)
  80. Time.Font = Enum.Font.Gotham
  81. Time.Text = "3:52 AM"
  82. Time.TextColor3 = Color3.fromRGB(255, 255, 255)
  83. Time.TextSize = 14.000
  84.  
  85. Date.Name = "Date"
  86. Date.Parent = MainContainer
  87. Date.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  88. Date.BackgroundTransparency = 1.000
  89. Date.Position = UDim2.new(0.889894426, 0, 0.0420550071, 0)
  90. Date.Size = UDim2.new(0, 73, 0, 17)
  91. Date.Font = Enum.Font.Gotham
  92. Date.Text = "03/15/2022"
  93. Date.TextColor3 = Color3.fromRGB(255, 255, 255)
  94. Date.TextScaled = true
  95. Date.TextSize = 14.000
  96. Date.TextWrapped = true
  97.  
  98. PageList.Name = "PageList"
  99. PageList.Parent = MainContainer
  100. PageList.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  101. PageList.BackgroundTransparency = 1.000
  102. PageList.BorderSizePixel = 0
  103. PageList.Position = UDim2.new(0.360922664, 0, 0, 0)
  104. PageList.Size = UDim2.new(0, 205, 0, 35)
  105.  
  106. UIGridLayout.Parent = PageList
  107. UIGridLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  108. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  109. UIGridLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  110. UIGridLayout.CellSize = UDim2.new(0, 25, 0, 25)
  111.  
  112. DragFrame.Name = "DragFrame"
  113. DragFrame.Parent = MainContainer
  114. DragFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  115. DragFrame.BackgroundTransparency = 1.000
  116. DragFrame.BorderSizePixel = 0
  117. DragFrame.Size = UDim2.new(0, 737, 0, 35)
  118.  
  119. Divider.Name = "Divider"
  120. Divider.Parent = MainContainer
  121. Divider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  122. Divider.BorderSizePixel = 0
  123. Divider.Position = UDim2.new(0, 0, 0.0779509991, 0)
  124. Divider.Size = UDim2.new(0, 737, 0, 1)
  125.  
  126. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(74, 74, 74))}
  127. UIGradient.Parent = Divider
  128.  
  129. PageHolder.Name = "PageHolder"
  130. PageHolder.Parent = MainContainer
  131. PageHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  132. PageHolder.BackgroundTransparency = 1.000
  133. PageHolder.BorderColor3 = Color3.fromRGB(27, 42, 53)
  134. PageHolder.BorderSizePixel = 0
  135. PageHolder.Position = UDim2.new(0.0054274085, 0, 0.0935412049, 0)
  136. PageHolder.Size = UDim2.new(0, 728, 0, 401)
  137.  
  138. Loading.Name = "Loading"
  139. Loading.Parent = MainContainer
  140. Loading.BackgroundColor3 = Color3.fromRGB(32, 31, 33)
  141. Loading.BorderSizePixel = 0
  142. Loading.Position = UDim2.new(0, 0, 0.00445434311, 0)
  143. Loading.Size = UDim2.new(0, 737, 0, 447)
  144.  
  145. C2.Name = "C2"
  146. C2.Parent = Loading
  147. C2.BackgroundColor3 = Color3.fromRGB(255, 78, 78)
  148. C2.BorderSizePixel = 0
  149. C2.Position = UDim2.new(0.4871099, 0, 0.478747219, 0)
  150. C2.Size = UDim2.new(0, 18, 0, 18)
  151.  
  152. UICorner.Parent = C2
  153.  
  154. C3.Name = "C3"
  155. C3.Parent = Loading
  156. C3.BackgroundColor3 = Color3.fromRGB(255, 78, 78)
  157. C3.BorderSizePixel = 0
  158. C3.Position = UDim2.new(0.519674361, 0, 0.478747219, 0)
  159. C3.Size = UDim2.new(0, 18, 0, 18)
  160.  
  161. UICorner_2.Parent = C3
  162.  
  163. C1.Name = "C1"
  164. C1.Parent = Loading
  165. C1.BackgroundColor3 = Color3.fromRGB(255, 78, 78)
  166. C1.BorderSizePixel = 0
  167. C1.Position = UDim2.new(0.454545438, 0, 0.478747219, 0)
  168. C1.Size = UDim2.new(0, 18, 0, 18)
  169.  
  170. UICorner_3.Parent = C1
  171.  
  172. C4.Name = "C4"
  173. C4.Parent = Loading
  174. C4.BackgroundColor3 = Color3.fromRGB(255, 78, 78)
  175. C4.BorderColor3 = Color3.fromRGB(27, 42, 53)
  176. C4.BorderSizePixel = 0
  177. C4.Position = UDim2.new(0.421980977, 0, 0.478747219, 0)
  178.  
  179. UICorner_4.Parent = C4
  180.  
  181. L_Shadow.Name = "L_Shadow"
  182. L_Shadow.Parent = Loading
  183. L_Shadow.AnchorPoint = Vector2.new(0.5, 0.5)
  184. L_Shadow.BackgroundTransparency = 1.000
  185. L_Shadow.BorderSizePixel = 0
  186. L_Shadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  187. L_Shadow.Size = UDim2.new(1, 47, 1, 47)
  188. L_Shadow.ZIndex = 0
  189. L_Shadow.Image = "rbxassetid://6015897843"
  190. L_Shadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  191. L_Shadow.ImageTransparency = 0.500
  192. L_Shadow.ScaleType = Enum.ScaleType.Slice
  193. L_Shadow.SliceCenter = Rect.new(49, 49, 450, 450)
  194.  
  195. Fade.Name = "Fade"
  196. Fade.Parent = MainContainer
  197. Fade.BackgroundColor3 = Color3.fromRGB(255, 78, 78)
  198. Fade.BorderSizePixel = 0
  199. Fade.Position = UDim2.new(0, 0, 0.00445434311, 0)
  200. Fade.Size = UDim2.new(0, 737, 0, 447)
  201.  
  202. M_Shadow.Name = "M_Shadow"
  203. M_Shadow.Parent = MainContainer
  204. M_Shadow.AnchorPoint = Vector2.new(0.5, 0.5)
  205. M_Shadow.BackgroundTransparency = 1.000
  206. M_Shadow.BorderSizePixel = 0
  207. M_Shadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  208. M_Shadow.Size = UDim2.new(1, 47, 1, 47)
  209. M_Shadow.ZIndex = 0
  210. M_Shadow.Image = "rbxassetid://6015897843"
  211. M_Shadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  212. M_Shadow.ImageTransparency = 0.500
  213. M_Shadow.ScaleType = Enum.ScaleType.Slice
  214. M_Shadow.SliceCenter = Rect.new(49, 49, 450, 450)
  215.  
  216. spawn(function()
  217. while wait(1) do
  218. Date.Text = os.date('%m') .. "/" .. os.date('%d') .. "/" .. os.date('%Y')
  219. Time.Text = os.date('%I') .. ":" .. os.date('%M') .. " " .. os.date('%p')
  220. end
  221. end)
  222.  
  223. local function MakeDraggable(topbarobject, object)
  224. local Dragging = nil
  225. local DragInput = nil
  226. local DragStart = nil
  227. local StartPosition = nil
  228.  
  229. local function Update(input)
  230. local Delta = input.Position - DragStart
  231. local pos =
  232. UDim2.new(
  233. StartPosition.X.Scale,
  234. StartPosition.X.Offset + Delta.X,
  235. StartPosition.Y.Scale,
  236. StartPosition.Y.Offset + Delta.Y
  237. )
  238. object.Position = pos
  239. end
  240.  
  241. topbarobject.InputBegan:Connect(
  242. function(input)
  243. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  244. Dragging = true
  245. DragStart = input.Position
  246. StartPosition = object.Position
  247.  
  248. input.Changed:Connect(
  249. function()
  250. if input.UserInputState == Enum.UserInputState.End then
  251. Dragging = false
  252. end
  253. end
  254. )
  255. end
  256. end
  257. )
  258.  
  259. topbarobject.InputChanged:Connect(
  260. function(input)
  261. if
  262. input.UserInputType == Enum.UserInputType.MouseMovement or
  263. input.UserInputType == Enum.UserInputType.Touch
  264. then
  265. DragInput = input
  266. end
  267. end
  268. )
  269.  
  270. UserInputService.InputChanged:Connect(
  271. function(input)
  272. if input == DragInput and Dragging then
  273. Update(input)
  274. end
  275. end
  276. )
  277. end
  278.  
  279. spawn(function()
  280. local P1 = C1.Position
  281. local P2 = C2.Position
  282. local P3 = C3.Position
  283. local P4 = C4.Position
  284.  
  285. wait(0.25)
  286.  
  287. TweenService:Create(
  288. Fade,
  289. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  290. {BackgroundTransparency = 1}
  291. ):Play()
  292.  
  293. tweensize(C3, 0.2, UDim2.new(0,0,0,0))
  294. wait(0.2)
  295. C3.Position = P4
  296.  
  297. tweenpos(C4, 0.2, P1)
  298. tweensize(C4, 0.2, UDim2.new(0,18,0,18))
  299.  
  300.  
  301. tweenpos(C1, 0.2, P2)
  302. tweenpos(C2, 0.2, P3)
  303. wait(0.75)
  304. tweensize(C2, 0.2, UDim2.new(0,0,0,0))
  305. wait(0.2)
  306. C2.Position = P4
  307.  
  308. tweenpos(C3, 0.2, P1)
  309. tweensize(C3, 0.2, UDim2.new(0,18,0,18))
  310.  
  311.  
  312. tweenpos(C4, 0.2, P2)
  313. tweenpos(C1, 0.2, P3)
  314. wait(0.75)
  315. tweensize(C1, 0.2, UDim2.new(0,0,0,0))
  316. wait(0.2)
  317. C1.Position = P4
  318.  
  319. tweenpos(C2, 0.2, P1)
  320. tweensize(C2, 0.2, UDim2.new(0,18,0,18))
  321.  
  322.  
  323. tweenpos(C3, 0.2, P2)
  324. tweenpos(C4, 0.2, P3)
  325. wait(0.75)
  326. tweensize(C4, 0.2, UDim2.new(0,0,0,0))
  327. wait(0.2)
  328. C4.Position = P4
  329.  
  330. tweenpos(C1, 0.2, P1)
  331. tweensize(C1, 0.2, UDim2.new(0,18,0,18))
  332.  
  333.  
  334. tweenpos(C2, 0.2, P2)
  335. tweenpos(C3, 0.2, P3)
  336. wait(1)
  337.  
  338. for _, v in pairs(Loading:GetChildren()) do
  339. if v:IsA('Frame') then
  340. TweenService:Create(
  341. v,
  342. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  343. {BackgroundTransparency = 1}
  344. ):Play()
  345. end
  346. end
  347. TweenService:Create(
  348. Loading,
  349. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  350. {BackgroundTransparency = 1}
  351. ):Play()
  352. L_Shadow:Destroy()
  353. wait(0.2)
  354. Loading:Destroy()
  355. end)
  356.  
  357. local KhroniteLibrary = {}
  358. function KhroniteLibrary:ToggleWindow()
  359. if windowvisible == true then
  360. windowvisible = false
  361. savedposition = MainContainer.Position
  362. TweenService:Create(
  363. MainContainer,
  364. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  365. {Position = UDim2.new(0.268, 0,-1, 0)}
  366. ):Play()
  367. TweenService:Create(
  368. Fade,
  369. TweenInfo.new(.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  370. {BackgroundTransparency = 0}
  371. ):Play()
  372. else
  373. windowvisible = true
  374. TweenService:Create(
  375. MainContainer,
  376. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  377. {Position = savedposition}
  378. ):Play()
  379. TweenService:Create(
  380. Fade,
  381. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  382. {BackgroundTransparency = 1}
  383. ):Play()
  384. end
  385. end
  386. function KhroniteLibrary:AddPage(name, image)
  387. Transitioned = false
  388.  
  389. local templatepage = Instance.new("Frame")
  390. templatepage.Name = name
  391. templatepage.Parent = PageHolder
  392. templatepage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  393. templatepage.BackgroundTransparency = 1.000
  394. templatepage.BorderSizePixel = 0
  395. templatepage.Position = UDim2.new(0.00274725282, 0, 0, 0)
  396. templatepage.Size = UDim2.new(0, 726, 0, 401)
  397. templatepage.Visible = false
  398.  
  399. local UIG = Instance.new("UIGridLayout")
  400. UIG.Name = "UIG"
  401. UIG.Parent = templatepage
  402. UIG.SortOrder = Enum.SortOrder.LayoutOrder
  403. UIG.CellPadding = UDim2.new(0, 30, 0, 30)
  404. UIG.CellSize = UDim2.new(0, 222, 0, 184)
  405.  
  406. local ImageButton = Instance.new("ImageButton")
  407. ImageButton.Name = name
  408. ImageButton.Parent = PageList
  409. ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  410. ImageButton.BackgroundTransparency = 1.000
  411. ImageButton.BorderColor3 = Color3.fromRGB(27, 42, 53)
  412. ImageButton.BorderSizePixel = 0
  413. ImageButton.Size = UDim2.new(0, 100, 0, 100)
  414. ImageButton.AutoButtonColor = false
  415. ImageButton.Image = image
  416. ImageButton.MouseEnter:Connect(function()
  417. if ImageButton.ImageColor3 ~= Color3.fromRGB(255, 54, 54) then
  418. ImageButton.ImageColor3 = Color3.fromRGB(255, 78, 78)
  419. end
  420. end)
  421. ImageButton.MouseLeave:Connect(function()
  422. if ImageButton.ImageColor3 ~= Color3.fromRGB(255, 54, 54) then
  423. ImageButton.ImageColor3 = Color3.fromRGB(255, 255, 255)
  424. end
  425. end)
  426. ImageButton.MouseButton1Down:Connect(function()
  427. if not Transitioned then
  428. if templatepage.Visible == false then
  429. Transitioned = true
  430. Fade.BackgroundColor3 = Color3.fromRGB(18, 18, 19)
  431. TweenService:Create(
  432. Fade,
  433. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  434. {BackgroundTransparency = 0}
  435. ):Play()
  436. wait(0.3)
  437. for _, v in pairs(PageHolder:GetChildren()) do
  438. v.Visible = false
  439. end
  440. for _, v in pairs(PageList:GetChildren()) do
  441. if v:IsA('ImageButton') then
  442. v.ImageColor3 = Color3.fromRGB(255, 255, 255)
  443. ImageButton.ImageColor3 = Color3.fromRGB(255, 54, 54)
  444. end
  445. end
  446. templatepage.Visible = true
  447. TweenService:Create(
  448. Fade,
  449. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  450. {BackgroundTransparency = 1}
  451. ):Play()
  452. wait(0.3)
  453. Fade.BackgroundColor3 = Color3.fromRGB(255, 78, 78)
  454. Transitioned = false
  455. end
  456. end
  457. end)
  458.  
  459. local KhroniteSection = {}
  460. function KhroniteSection:AddSection(headertext)
  461. local section = Instance.new("Frame")
  462. section.Name = "section"
  463. section.Parent = templatepage
  464. section.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
  465. section.BorderSizePixel = 0
  466. section.Size = UDim2.new(0, 150, 0, 100)
  467.  
  468. local UIC = Instance.new("UICorner")
  469. UIC.CornerRadius = UDim.new(0, 10)
  470. UIC.Name = "UIC"
  471. UIC.Parent = section
  472.  
  473. local Shadow = Instance.new("ImageLabel")
  474. Shadow.Name = "Shadow"
  475. Shadow.Parent = section
  476. Shadow.AnchorPoint = Vector2.new(0.5, 0.5)
  477. Shadow.BackgroundTransparency = 1.000
  478. Shadow.BorderSizePixel = 0
  479. Shadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  480. Shadow.Size = UDim2.new(1, 47, 1, 47)
  481. Shadow.ZIndex = 0
  482. Shadow.Image = "rbxassetid://6014261993"
  483. Shadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  484. Shadow.ImageTransparency = 0.500
  485. Shadow.ScaleType = Enum.ScaleType.Slice
  486. Shadow.SliceCenter = Rect.new(49, 49, 450, 450)
  487.  
  488. local header = Instance.new("TextLabel")
  489. header.Name = "header"
  490. header.Parent = section
  491. header.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  492. header.BackgroundTransparency = 1.000
  493. header.BorderSizePixel = 0
  494. header.Position = UDim2.new(0.0454953872, 0, 0.0363043062, 0)
  495. header.Size = UDim2.new(0, 200, 0, 17)
  496. header.Font = Enum.Font.Code
  497. header.Text = headertext
  498. header.TextColor3 = Color3.fromRGB(255, 255, 255)
  499. header.TextScaled = true
  500. header.TextSize = 14.000
  501. header.TextWrapped = true
  502. header.TextXAlignment = Enum.TextXAlignment.Left
  503.  
  504. local contentholder = Instance.new("Frame")
  505. contentholder.Name = "contentholder"
  506. contentholder.Parent = section
  507. contentholder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  508. contentholder.BackgroundTransparency = 1.000
  509. contentholder.BorderSizePixel = 0
  510. contentholder.Position = UDim2.new(0.0450450443, 0, 0.163043484, 0)
  511. contentholder.Size = UDim2.new(0, 200, 0, 250)
  512.  
  513. local UIG = Instance.new("UIGridLayout")
  514. UIG.Name = "UIG"
  515. UIG.Parent = contentholder
  516. UIG.SortOrder = Enum.SortOrder.LayoutOrder
  517. UIG.CellPadding = UDim2.new(0, 5, 0, 6)
  518. UIG.CellSize = UDim2.new(1, 0, 0, 17)
  519.  
  520. local KhroniteContent = {}
  521. function KhroniteContent:AddButton(text, callback)
  522. callback = callback or function() end
  523. text = text or "button"
  524.  
  525. local Button = Instance.new("TextButton")
  526. Button.Name = "Button"
  527. Button.Parent = contentholder
  528. Button.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  529. Button.BorderColor3 = Color3.fromRGB(0, 0, 0)
  530. Button.BorderSizePixel = 0
  531. Button.Size = UDim2.new(0, 200, 0, 50)
  532. Button.AutoButtonColor = false
  533. Button.Font = Enum.Font.Code
  534. Button.Text = text
  535. Button.TextColor3 = Color3.fromRGB(193, 193, 193)
  536. Button.TextSize = 13.000
  537. Button.TextStrokeColor3 = Color3.fromRGB(19, 19, 19)
  538. Button.TextWrapped = true
  539. Button.MouseButton1Down:Connect(function()
  540. pcall(callback)
  541. end)
  542. Button.MouseEnter:Connect(function()
  543. TweenService:Create(
  544. Button,
  545. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  546. {TextColor3 = Color3.fromRGB(255, 78, 78)}
  547. ):Play()
  548. end)
  549. Button.MouseLeave:Connect(function()
  550. TweenService:Create(
  551. Button,
  552. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  553. {TextColor3 = Color3.fromRGB(193, 193, 193)}
  554. ):Play()
  555. end)
  556.  
  557. local UICorner = Instance.new("UICorner")
  558. UICorner.CornerRadius = UDim.new(0, 2)
  559. UICorner.Parent = Button
  560.  
  561. local UIStroke = Instance.new("UIStroke")
  562. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  563. UIStroke.Color = Color3.fromRGB(255, 255, 255)
  564. UIStroke.Thickness = 0.51
  565. UIStroke.Parent = Button
  566. end
  567. function KhroniteContent:AddToggle(text, callback)
  568. local toggled = false
  569.  
  570. callback = callback or function() end
  571. text = text or "toggle"
  572. Interacted = false
  573. Hovered = false
  574.  
  575. local ToggleHolder = Instance.new("TextLabel")
  576. ToggleHolder.Name = "ToggleHolder"
  577. ToggleHolder.Parent = contentholder
  578. ToggleHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  579. ToggleHolder.BackgroundTransparency = 1.000
  580. ToggleHolder.BorderSizePixel = 0
  581. ToggleHolder.Size = UDim2.new(0, 200, 0, 50)
  582. ToggleHolder.Font = Enum.Font.Code
  583. ToggleHolder.Text = text
  584. ToggleHolder.TextColor3 = Color3.fromRGB(255, 255, 255)
  585. ToggleHolder.TextSize = 14.000
  586. ToggleHolder.TextXAlignment = Enum.TextXAlignment.Left
  587.  
  588. local Toggle = Instance.new("ImageButton")
  589. Toggle.Name = "Toggle"
  590. Toggle.Parent = ToggleHolder
  591. Toggle.AutoButtonColor = false
  592. Toggle.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  593. Toggle.BorderSizePixel = 0
  594. Toggle.Position = UDim2.new(0.915000021, 0, 0, 0)
  595. Toggle.Size = UDim2.new(0, 17, 0, 17)
  596. Toggle.Image = "rbxassetid://7072706620"
  597. Toggle.ImageColor3 = Color3.fromRGB(19, 19, 19)
  598.  
  599. local UICorner = Instance.new("UICorner")
  600. UICorner.CornerRadius = UDim.new(0, 4)
  601. UICorner.Parent = Toggle
  602.  
  603. local UIStroke = Instance.new("UIStroke")
  604. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Contextual
  605. UIStroke.Color = Color3.fromRGB(255, 255, 255)
  606. UIStroke.Thickness = 0.51
  607. UIStroke.Parent = Toggle
  608.  
  609. Toggle.MouseEnter:Connect(function()
  610. TweenService:Create(
  611. UIStroke,
  612. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  613. {Color = Color3.fromRGB(255, 78, 78)}
  614. ):Play()
  615. end)
  616.  
  617. Toggle.MouseLeave:Connect(function()
  618. if toggled == false then
  619. TweenService:Create(
  620. UIStroke,
  621. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  622. {Color = Color3.fromRGB(255, 255, 255)}
  623. ):Play()
  624. end
  625. end)
  626.  
  627. local function Fire()
  628. if not Interacted then
  629. if toggled == false then
  630. Interacted = true
  631. toggled = true
  632. TweenService:Create(
  633. Toggle,
  634. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  635. {BackgroundColor3 = Color3.fromRGB(255, 78, 78)}
  636. ):Play()
  637. TweenService:Create(
  638. UIStroke,
  639. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  640. {Color = Color3.fromRGB(255, 78, 78)}
  641. ):Play()
  642. wait(0.3)
  643. Interacted = false
  644. elseif toggled == true then
  645. Interacted = true
  646. toggled = false
  647. TweenService:Create(
  648. Toggle,
  649. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  650. {BackgroundColor3 = Color3.fromRGB(19, 19, 19)}
  651. ):Play()
  652. TweenService:Create(
  653. UIStroke,
  654. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  655. {Color = Color3.fromRGB(255, 255, 255)}
  656. ):Play()
  657. wait(0.3)
  658. Interacted = false
  659. end
  660. pcall(callback, toggled)
  661. end
  662. end
  663.  
  664. Toggle.MouseButton1Down:Connect(Fire)
  665. end
  666. function KhroniteContent:AddSlider(text, min, max, callback)
  667. local dragging = false
  668.  
  669. text = text or "slider"
  670. min = min or 0
  671. max = max or 100
  672. callback = callback or function() end
  673.  
  674. local SliderHolder = Instance.new("TextLabel")
  675. SliderHolder.Name = "SliderHolder"
  676. SliderHolder.Parent = contentholder
  677. SliderHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  678. SliderHolder.BackgroundTransparency = 1.000
  679. SliderHolder.BorderSizePixel = 0
  680. SliderHolder.Size = UDim2.new(0, 200, 0, 50)
  681. SliderHolder.Font = Enum.Font.Code
  682. SliderHolder.Text = text
  683. SliderHolder.TextColor3 = Color3.fromRGB(255, 255, 255)
  684. SliderHolder.TextSize = 14.000
  685. SliderHolder.TextXAlignment = Enum.TextXAlignment.Left
  686.  
  687. local TextBox = Instance.new("TextBox")
  688. TextBox.Parent = SliderHolder
  689. TextBox.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  690. TextBox.BorderSizePixel = 0
  691. TextBox.Position = UDim2.new(0.875, 0, 0, 0)
  692. TextBox.Size = UDim2.new(0, 25, 0, 17)
  693. TextBox.Font = Enum.Font.Code
  694. TextBox.Text = "0"
  695. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  696. TextBox.TextScaled = true
  697. TextBox.TextSize = 14.000
  698. TextBox.TextWrapped = true
  699. TextBox.ClearTextOnFocus = false
  700. TextBox.TextEditable = false
  701.  
  702. local UICorner = Instance.new("UICorner")
  703. UICorner.CornerRadius = UDim.new(0, 2)
  704. UICorner.Parent = TextBox
  705.  
  706. local UIStroke = Instance.new("UIStroke")
  707. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  708. UIStroke.Color = Color3.fromRGB(255, 255, 255)
  709. UIStroke.Thickness = 0.51
  710. UIStroke.Parent = TextBox
  711.  
  712. local Slider = Instance.new("Frame")
  713. Slider.Name = "Slider"
  714. Slider.Parent = SliderHolder
  715. Slider.BackgroundColor3 = Color3.fromRGB(135, 135, 135)
  716. Slider.BorderSizePixel = 0
  717. Slider.Position = UDim2.new(0.50999999, 0, 0.411764711, 0)
  718. Slider.Size = UDim2.new(0, 64, 0, 3)
  719.  
  720. local UICorner_2 = Instance.new("UICorner")
  721. UICorner_2.CornerRadius = UDim.new(1, 0)
  722. UICorner_2.Parent = Slider
  723.  
  724. local Fill = Instance.new("Frame")
  725. Fill.Name = "Fill"
  726. Fill.Parent = Slider
  727. Fill.BackgroundColor3 = Color3.fromRGB(255, 78, 78)
  728. Fill.BorderSizePixel = 0
  729. Fill.Position = UDim2.new(0, 0, 0, 0)
  730. Fill.Size = UDim2.new(0, 0, 0, 3)
  731.  
  732. local UICorner_3 = Instance.new("UICorner")
  733. UICorner_3.CornerRadius = UDim.new(1, 0)
  734. UICorner_3.Parent = Fill
  735.  
  736. local SlideCircle = Instance.new("Frame")
  737. SlideCircle.Parent = Slider
  738. SlideCircle.BackgroundColor3 = Color3.fromRGB(255, 78, 78)
  739. SlideCircle.BorderSizePixel = 0
  740. SlideCircle.Position = UDim2.new(-0.125, 0,-1.667, 0)
  741. SlideCircle.Size = UDim2.new(0, 12, 0, 12)
  742.  
  743. local UICorner_4 = Instance.new("UICorner")
  744. UICorner_4.CornerRadius = UDim.new(1, 0)
  745. UICorner_4.Parent = SlideCircle
  746.  
  747. local function move(input)
  748. local pos =
  749. UDim2.new(
  750. math.clamp((input.Position.X - Slider.AbsolutePosition.X) / Slider.AbsoluteSize.X, 0, 1),
  751. -6,
  752. -1.30499995,
  753. 0
  754. )
  755. local pos1 =
  756. UDim2.new(
  757. math.clamp((input.Position.X - Slider.AbsolutePosition.X) / Slider.AbsoluteSize.X, 0, 1),
  758. 0,
  759. 0,
  760. 3
  761. )
  762. Fill:TweenSize(pos1, "Out", "Sine", 0.1, true)
  763. SlideCircle:TweenPosition(pos, "Out", "Sine", 0.1, true)
  764. local value = math.floor(((pos.X.Scale * max) / max) * (max - min) + min)
  765. TextBox.Text = tostring(value)
  766. pcall(callback, value)
  767. end
  768. SlideCircle.InputBegan:Connect(
  769. function(input)
  770. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  771. dragging = true
  772. end
  773. end
  774. )
  775. SlideCircle.InputEnded:Connect(
  776. function(input)
  777. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  778. dragging = false
  779. end
  780. end
  781. )
  782. game:GetService("UserInputService").InputChanged:Connect(
  783. function(input)
  784. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  785. move(input)
  786. end
  787. end
  788. )
  789.  
  790. local SliderActions = {}
  791. function SliderActions:Change(tochange)
  792. Fill.Size = UDim2.new((tochange or 0) / max, 0, 0, 3)
  793. SlideCircle.Position = UDim2.new((tochange or 0)/max, -6,-1.30499995, 0)
  794. Value.Text = tostring(tochange and math.floor((tochange / max) * (max - min) + min) or 0)
  795. pcall(callback,tochange)
  796. end
  797. return SliderActions
  798. end
  799. function KhroniteContent:AddTextBox(text, callback)
  800. text = text or 'TextBox'
  801. callback = callback or function() end
  802.  
  803. local TextboxHolder = Instance.new("TextLabel")
  804. TextboxHolder.Name = "Textbox"
  805. TextboxHolder.Parent = contentholder
  806. TextboxHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  807. TextboxHolder.BackgroundTransparency = 1.000
  808. TextboxHolder.BorderSizePixel = 0
  809. TextboxHolder.Size = UDim2.new(0, 200, 0, 50)
  810. TextboxHolder.Font = Enum.Font.Code
  811. TextboxHolder.Text = text
  812. TextboxHolder.TextColor3 = Color3.fromRGB(255, 255, 255)
  813. TextboxHolder.TextSize = 14.000
  814. TextboxHolder.TextXAlignment = Enum.TextXAlignment.Left
  815.  
  816. local TextBox = Instance.new("TextBox")
  817. TextBox.Parent = TextboxHolder
  818. TextBox.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  819. TextBox.BorderSizePixel = 0
  820. TextBox.Position = UDim2.new(0.605000019, 0, 0, 0)
  821. TextBox.Size = UDim2.new(0, 79, 0, 17)
  822. TextBox.Font = Enum.Font.SourceSans
  823. TextBox.Text = ''
  824. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  825. TextBox.TextSize = 14.000
  826. TextBox.ClearTextOnFocus = false
  827.  
  828. local UICorner = Instance.new("UICorner")
  829. UICorner.CornerRadius = UDim.new(0, 2)
  830. UICorner.Parent = TextBox
  831.  
  832. local UIStroke = Instance.new("UIStroke")
  833. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  834. UIStroke.Color = Color3.fromRGB(255, 255, 255)
  835. UIStroke.Thickness = 0.51
  836. UIStroke.Parent = TextBox
  837.  
  838. TextBox:GetPropertyChangedSignal("Text"):Connect(function()
  839. if #TextBox.Text > 13 then
  840. TextBox.TextScaled = true
  841. end
  842. end)
  843.  
  844. TextBox.Focused:Connect(function()
  845. TweenService:Create(
  846. UIStroke,
  847. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  848. {Color = Color3.fromRGB(255, 78, 78)}
  849. ):Play()
  850. end)
  851. TextBox.FocusLost:Connect(function()
  852. TweenService:Create(
  853. UIStroke,
  854. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  855. {Color = Color3.fromRGB(255, 255, 255)}
  856. ):Play()
  857. pcall(callback, TextBox.Text)
  858. end)
  859. end
  860. function KhroniteContent:AddKeyPicker(text, presetbind, callback)
  861. local Key = presetbind.Name
  862.  
  863. callback = callback or function() end
  864. text = text or 'keybind'
  865.  
  866. local Keybind = Instance.new("TextLabel")
  867. Keybind.Name = "Keybind"
  868. Keybind.Parent = contentholder
  869. Keybind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  870. Keybind.BackgroundTransparency = 1.000
  871. Keybind.BorderSizePixel = 0
  872. Keybind.Size = UDim2.new(0, 200, 0, 50)
  873. Keybind.Font = Enum.Font.Code
  874. Keybind.Text = text
  875. Keybind.TextColor3 = Color3.fromRGB(255, 255, 255)
  876. Keybind.TextSize = 14.000
  877. Keybind.TextXAlignment = Enum.TextXAlignment.Left
  878.  
  879. local Bind = Instance.new("TextButton")
  880. Bind.Name = "Bind"
  881. Bind.Parent = Keybind
  882. Bind.AutoButtonColor = false
  883. Bind.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  884. Bind.BorderSizePixel = 0
  885. Bind.Position = UDim2.new(0.605000019, 0, 0, 0)
  886. Bind.Size = UDim2.new(0, 79, 0, 17)
  887. Bind.Font = Enum.Font.SourceSans
  888. Bind.Text = Key
  889. Bind.TextColor3 = Color3.fromRGB(255, 255, 255)
  890. Bind.TextSize = 14.000
  891.  
  892. local UICorner = Instance.new("UICorner")
  893. UICorner.CornerRadius = UDim.new(0, 2)
  894. UICorner.Parent = Bind
  895.  
  896. local UIStroke = Instance.new("UIStroke")
  897. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  898. UIStroke.Color = Color3.fromRGB(255, 255, 255)
  899. UIStroke.Thickness = 0.51
  900. UIStroke.Parent = Bind
  901.  
  902. Bind.MouseButton1Down:Connect(function()
  903. Bind.Text = "..."
  904. TweenService:Create(
  905. Bind,
  906. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  907. {TextColor3 = Color3.fromRGB(255, 78, 78)}
  908. ):Play()
  909. local inputwait = game:GetService("UserInputService").InputBegan:Wait()
  910. while inputwait.UserInputType ~= Enum.UserInputType.Keyboard do
  911. inputwait = game:GetService("UserInputService").InputBegan:Wait()
  912. end
  913. wait()
  914. TweenService:Create(
  915. Bind,
  916. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  917. {TextColor3 = Color3.fromRGB(255, 255, 255)}
  918. ):Play()
  919. Bind.Text = inputwait.KeyCode.Name
  920. Key = inputwait.KeyCode.Name
  921. end)
  922.  
  923. game:GetService("UserInputService").InputBegan:Connect(
  924. function(current, pressed)
  925. if not pressed then
  926. if current.KeyCode.Name == Key and game:GetService("UserInputService"):GetFocusedTextBox() == nil then
  927. pcall(callback)
  928. end
  929. end
  930. end)
  931. end
  932. function KhroniteContent:AddDropdown(table, default, callback)
  933. local dropdowntoggled = false
  934.  
  935. callback = callback or function() end
  936. table = table or { 'None' }
  937. default = default or 1
  938. selectedoption = table[default]
  939.  
  940. local Dropdown = Instance.new("TextButton")
  941. Dropdown.Name = "Dropdown"
  942. Dropdown.Parent = contentholder
  943. Dropdown.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  944. Dropdown.BorderColor3 = Color3.fromRGB(0, 0, 0)
  945. Dropdown.BorderSizePixel = 0
  946. Dropdown.Size = UDim2.new(0, 200, 0, 50)
  947. Dropdown.AutoButtonColor = false
  948. Dropdown.Font = Enum.Font.Code
  949. Dropdown.Text = table[default]
  950. Dropdown.TextColor3 = Color3.fromRGB(193, 193, 193)
  951. Dropdown.TextSize = 13.000
  952. Dropdown.TextStrokeColor3 = Color3.fromRGB(19, 19, 19)
  953. Dropdown.TextWrapped = true
  954. Dropdown.ZIndex = 12
  955.  
  956. local Arrow = Instance.new("ImageLabel")
  957. Arrow.Name = "Arrow"
  958. Arrow.Parent = Dropdown
  959. Arrow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  960. Arrow.BackgroundTransparency = 1.000
  961. Arrow.BorderSizePixel = 0
  962. Arrow.Position = UDim2.new(0.915000021, 0, 0, 0)
  963. Arrow.Size = UDim2.new(0, 17, 0, 17)
  964. Arrow.Image = "rbxassetid://7072706663"
  965.  
  966. local UIStroke1 = Instance.new("UIStroke")
  967. UIStroke1.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  968. UIStroke1.Color = Color3.fromRGB(255, 255, 255)
  969. UIStroke1.Thickness = 0.51
  970. UIStroke1.Parent = Dropdown
  971.  
  972. local ListingFrame = Instance.new("ScrollingFrame")
  973. ListingFrame.Name = "ListingFrame"
  974. ListingFrame.Parent = Dropdown
  975. ListingFrame.BackgroundTransparency = 0
  976. ListingFrame.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  977. ListingFrame.BorderSizePixel = 0
  978. ListingFrame.BorderColor3 = Color3.fromRGB(145, 145, 145)
  979. ListingFrame.Position = UDim2.new(0, 0, 1, 0)
  980. ListingFrame.Size = UDim2.new(0, 200, 0, 0)
  981. ListingFrame.CanvasSize = UDim2.new(0, 0, 100, 0)
  982. ListingFrame.BottomImage = ""
  983. ListingFrame.ScrollBarThickness = 0
  984. ListingFrame.TopImage = ""
  985.  
  986. local UIG = Instance.new("UIGridLayout")
  987. UIG.Name = "UIG"
  988. UIG.Parent = ListingFrame
  989. UIG.SortOrder = Enum.SortOrder.LayoutOrder
  990. UIG.CellPadding = UDim2.new(0, 5, 0, 2)
  991. UIG.CellSize = UDim2.new(1, 0, 0, 17)
  992.  
  993. local UICorner = Instance.new("UICorner")
  994. UICorner.CornerRadius = UDim.new(0, 2)
  995. UICorner.Parent = Dropdown
  996.  
  997. for i, v in pairs(table) do
  998. local TextButton = Instance.new("TextButton")
  999. TextButton.Name = v
  1000. TextButton.Parent = ListingFrame
  1001. TextButton.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  1002. TextButton.BorderSizePixel = 1
  1003. TextButton.BorderColor3 = Color3.fromRGB(59, 59, 59)
  1004. TextButton.Size = UDim2.new(0, 200, 0, 50)
  1005. TextButton.Font = Enum.Font.Code
  1006. TextButton.Text = v
  1007. TextButton.AutoButtonColor = false
  1008. if selectedoption == TextButton.Name then
  1009. TextButton.TextColor3 = Color3.fromRGB(255, 78, 78)
  1010. else
  1011. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  1012. end
  1013. TextButton.TextSize = 14.000
  1014. TextButton.MouseButton1Down:Connect(function()
  1015. if selectedoption ~= TextButton.Name then
  1016. TweenService:Create(
  1017. TextButton,
  1018. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1019. {TextColor3 = Color3.fromRGB(255, 78, 78)}
  1020. ):Play()
  1021. TweenService:Create(
  1022. ListingFrame[selectedoption],
  1023. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1024. {TextColor3 = Color3.fromRGB(255, 255, 255)}
  1025. ):Play()
  1026. selectedoption = TextButton.Name
  1027. Dropdown.Text = selectedoption
  1028. end
  1029. end)
  1030. end
  1031.  
  1032. Dropdown.MouseButton1Down:Connect(function()
  1033. if dropdowntoggled == false then
  1034. dropdowntoggled = true
  1035. TweenService:Create(
  1036. ListingFrame,
  1037. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1038. {Size = UDim2.new(0, 200, 0, 160)}
  1039. ):Play()
  1040. TweenService:Create(
  1041. Arrow,
  1042. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1043. {Rotation = 180}
  1044. ):Play()
  1045. ListingFrame.ScrollingEnabled = true
  1046. elseif dropdowntoggled == true then
  1047. dropdowntoggled = false
  1048. TweenService:Create(
  1049. ListingFrame,
  1050. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1051. {Size = UDim2.new(0, 200, 0, 0)}
  1052. ):Play()
  1053. TweenService:Create(
  1054. Arrow,
  1055. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1056. {Rotation = 0}
  1057. ):Play()
  1058. ListingFrame.ScrollingEnabled = false
  1059. end
  1060. end)
  1061.  
  1062. ListingFrame:GetPropertyChangedSignal("Size"):Connect(function()
  1063. if ListingFrame.Size == UDim2.new(0, 200, 0, 0) then
  1064. ListingFrame.BorderSizePixel = 0
  1065. ListingFrame.ScrollBarThickness = 0
  1066. else
  1067. ListingFrame.BorderSizePixel = 1
  1068. ListingFrame.ScrollBarThickness = 2
  1069. end
  1070. end)
  1071.  
  1072. Dropdown:GetPropertyChangedSignal("Text"):Connect(function()
  1073. pcall(callback, Dropdown.Text)
  1074. end)
  1075. end
  1076. function KhroniteContent:AddLabel(text)
  1077. text = text or 'Label'
  1078.  
  1079. local label = Instance.new("TextLabel")
  1080. label.Name = "Label"
  1081. label.Parent = contentholder
  1082. label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1083. label.BackgroundTransparency = 1.000
  1084. label.BorderSizePixel = 0
  1085. label.Size = UDim2.new(0, 200, 0, 50)
  1086. label.Font = Enum.Font.Code
  1087. label.Text = text
  1088. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  1089. label.TextSize = 14.000
  1090. label.TextXAlignment = Enum.TextXAlignment.Left
  1091. end
  1092. return KhroniteContent
  1093. end
  1094. return KhroniteSection
  1095. end
  1096. function KhroniteLibrary:UpdateTitle(text)
  1097. Title.Text = text
  1098. end
  1099. function KhroniteLibrary:SelectPage(number)
  1100. for i, v in pairs(PageHolder:GetChildren()) do
  1101. if i == number then
  1102. v.Visible = true
  1103. end
  1104. end
  1105. for i, v in pairs(PageList:GetChildren()) do
  1106. if i == number+1 then
  1107. v.ImageColor3 = Color3.fromRGB(255, 54, 54)
  1108. end
  1109. end
  1110. end
  1111. MakeDraggable(DragFrame, MainContainer)
  1112. return KhroniteLibrary
  1113. end
  1114.  
  1115. return library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement