rVodka_Putin

Untitled

May 22nd, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.83 KB | None | 0 0
  1. local Luxt1 = {}
  2.  
  3. function Luxt1.CreateWindow(libName, logoId)
  4. local LuxtLib = Instance.new("ScreenGui")
  5. local shadow = Instance.new("ImageLabel")
  6. local MainFrame = Instance.new("Frame")
  7. local sideHeading = Instance.new("Frame")
  8. local MainCorner = Instance.new("UICorner")
  9. local sideCover = Instance.new("Frame")
  10. local hubLogo = Instance.new("ImageLabel")
  11. local MainCorner_2 = Instance.new("UICorner")
  12. local hubName = Instance.new("TextLabel")
  13. local tabFrame = Instance.new("ScrollingFrame")
  14. local UIListLayout = Instance.new("UIListLayout")
  15. local usename = Instance.new("TextLabel")
  16. local MainCorner_3 = Instance.new("UICorner")
  17. local wave = Instance.new("ImageLabel")
  18. local MainCorner_4 = Instance.new("UICorner")
  19. local framesAll = Instance.new("Frame")
  20. local pageFolder = Instance.new("Folder")
  21.  
  22. local key1 = Instance.new("TextButton")
  23. local UICorner = Instance.new("UICorner")
  24. local keybindInfo1 = Instance.new("TextLabel")
  25.  
  26. key1.Name = "key1"
  27. key1.Parent = sideHeading
  28. key1.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  29. key1.Position = UDim2.new(0.0508064516, 0, 0.935261786, 0)
  30. key1.Size = UDim2.new(0, 76, 0, 22)
  31. key1.ZIndex = 2
  32. key1.Font = Enum.Font.GothamSemibold
  33. key1.Text = "LeftAlt"
  34. key1.TextColor3 = Color3.fromRGB(153, 255, 238)
  35. key1.TextSize = 14.000
  36.  
  37. local oldKey = Enum.KeyCode.LeftAlt.Name
  38.  
  39. key1.MouseButton1Click:connect(function(e)
  40. key1.Text = ". . ."
  41. local a, b = game:GetService('UserInputService').InputBegan:wait();
  42. if a.KeyCode.Name ~= "Unknown" then
  43. key1.Text = a.KeyCode.Name
  44. oldKey = a.KeyCode.Name;
  45. end
  46. end)
  47.  
  48. game:GetService("UserInputService").InputBegan:connect(function(current, ok)
  49. if not ok then
  50. if current.KeyCode.Name == oldKey then
  51. if LuxtLib.Enabled == true then
  52. LuxtLib.Enabled = false
  53. else
  54. LuxtLib.Enabled = true
  55. end
  56. end
  57. end
  58. end)
  59.  
  60. UICorner.CornerRadius = UDim.new(0, 5)
  61. UICorner.Parent = key1
  62.  
  63. keybindInfo1.Name = "keybindInfo"
  64. keybindInfo1.Parent = sideHeading
  65. keybindInfo1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  66. keybindInfo1.BackgroundTransparency = 1.000
  67. keybindInfo1.Position = UDim2.new(0.585064113, 0, 0.935261846, 0)
  68. keybindInfo1.Size = UDim2.new(0, 50, 0, 22)
  69. keybindInfo1.ZIndex = 2
  70. keybindInfo1.Font = Enum.Font.GothamSemibold
  71. keybindInfo1.Text = "Close"
  72. keybindInfo1.TextColor3 = Color3.fromRGB(255, 255, 255)
  73. keybindInfo1.TextSize = 13.000
  74. keybindInfo1.TextXAlignment = Enum.TextXAlignment.Left
  75.  
  76. local UserInputService = game:GetService("UserInputService")
  77.  
  78. local TopBar = sideHeading
  79.  
  80. local Camera = workspace:WaitForChild("Camera")
  81.  
  82. local DragMousePosition
  83. local FramePosition
  84. local Draggable = false
  85. TopBar.InputBegan:Connect(function(input)
  86. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  87. Draggable = true
  88. DragMousePosition = Vector2.new(input.Position.X, input.Position.Y)
  89. FramePosition = Vector2.new(shadow.Position.X.Scale, shadow.Position.Y.Scale)
  90. end
  91. end)
  92. UserInputService.InputChanged:Connect(function(input)
  93. if Draggable == true then
  94. local NewPosition = FramePosition + ((Vector2.new(input.Position.X, input.Position.Y) - DragMousePosition) / Camera.ViewportSize)
  95. shadow.Position = UDim2.new(NewPosition.X, 0, NewPosition.Y, 0)
  96. end
  97. end)
  98.  
  99. UserInputService.InputEnded:Connect(function(input)
  100. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  101. Draggable = false
  102. end
  103. end)
  104.  
  105. pageFolder.Name = "pageFolder"
  106. pageFolder.Parent = framesAll
  107.  
  108. --
  109. libName = libName or "LuxtLib"
  110. logoId = logoId or ""
  111. --
  112.  
  113. LuxtLib.Name = "LuxtLib"..libName
  114. LuxtLib.Parent = game.CoreGui
  115. LuxtLib.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  116.  
  117. MainFrame.Name = "MainFrame"
  118. MainFrame.Parent = shadow
  119. MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  120. MainFrame.Position = UDim2.new(0.048, 0,0.075, 0)
  121. MainFrame.Size = UDim2.new(0, 553, 0, 452)
  122.  
  123. sideHeading.Name = "sideHeading"
  124. sideHeading.Parent = MainFrame
  125. sideHeading.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  126. sideHeading.Size = UDim2.new(0, 155, 0, 452)
  127. sideHeading.ZIndex = 2
  128.  
  129. MainCorner.CornerRadius = UDim.new(0, 5)
  130. MainCorner.Name = "MainCorner"
  131. MainCorner.Parent = sideHeading
  132.  
  133. sideCover.Name = "sideCover"
  134. sideCover.Parent = sideHeading
  135. sideCover.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  136. sideCover.BorderSizePixel = 0
  137. sideCover.Position = UDim2.new(0.909677446, 0, 0, 0)
  138. sideCover.Size = UDim2.new(0, 14, 0, 452)
  139.  
  140. hubLogo.Name = "hubLogo"
  141. hubLogo.Parent = sideHeading
  142. hubLogo.BackgroundColor3 = Color3.fromRGB(153, 255, 238)
  143. hubLogo.Position = UDim2.new(0.0567928664, 0, 0.0243411884, 0)
  144. hubLogo.Size = UDim2.new(0, 30, 0, 30)
  145. hubLogo.ZIndex = 2
  146. hubLogo.Image = "rbxassetid://"..logoId
  147.  
  148. MainCorner_2.CornerRadius = UDim.new(0, 999)
  149. MainCorner_2.Name = "MainCorner"
  150. MainCorner_2.Parent = hubLogo
  151.  
  152. hubName.Name = "hubName"
  153. hubName.Parent = sideHeading
  154. hubName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  155. hubName.BackgroundTransparency = 1.000
  156. hubName.Position = UDim2.new(0.290000081, 0, 0.0299999975, 0)
  157. hubName.Size = UDim2.new(0, 110, 0, 16)
  158. hubName.ZIndex = 2
  159. hubName.Font = Enum.Font.GothamSemibold
  160. hubName.Text = libName
  161. hubName.TextColor3 = Color3.fromRGB(153, 255, 238)
  162. hubName.TextSize = 14.000
  163. hubName.TextWrapped = true
  164. hubName.TextXAlignment = Enum.TextXAlignment.Left
  165.  
  166. tabFrame.Name = "tabFrame"
  167. tabFrame.Parent = sideHeading
  168. tabFrame.Active = true
  169. tabFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  170. tabFrame.BackgroundTransparency = 1.000
  171. tabFrame.BorderSizePixel = 0
  172. tabFrame.Position = UDim2.new(0.0761478543, 0, 0.126385808, 0)
  173. tabFrame.Size = UDim2.new(0, 135, 0, 347)
  174. tabFrame.ZIndex = 2
  175. tabFrame.ScrollBarThickness = 0
  176.  
  177. UIListLayout.Parent = tabFrame
  178. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  179. UIListLayout.Padding = UDim.new(0, 5)
  180.  
  181. usename.Name = "usename"
  182. usename.Parent = sideHeading
  183. usename.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  184. usename.BackgroundTransparency = 1.000
  185. usename.Position = UDim2.new(0.290000081, 0, 0.0700000152, 0)
  186. usename.Size = UDim2.new(0, 110, 0, 16)
  187. usename.ZIndex = 2
  188. usename.Font = Enum.Font.GothamSemibold
  189. usename.Text = game.Players.LocalPlayer.Name
  190. usename.TextColor3 = Color3.fromRGB(103, 172, 161)
  191. usename.TextSize = 12.000
  192. usename.TextWrapped = true
  193. usename.TextXAlignment = Enum.TextXAlignment.Left
  194.  
  195. MainCorner_3.CornerRadius = UDim.new(0, 5)
  196. MainCorner_3.Name = "MainCorner"
  197. MainCorner_3.Parent = MainFrame
  198.  
  199. wave.Name = "wave"
  200. wave.Parent = MainFrame
  201. wave.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  202. wave.BackgroundTransparency = 1.000
  203. wave.Position = UDim2.new(0.0213434305, 0, 0, 0)
  204. wave.Size = UDim2.new(0.97865659, 0, 0.557522118, 0)
  205. wave.Image = "http://www.roblox.com/asset/?id=6087537285"
  206. wave.ImageColor3 = Color3.fromRGB(181, 249, 255)
  207. wave.ImageTransparency = 0.300
  208. wave.ScaleType = Enum.ScaleType.Slice
  209.  
  210. MainCorner_4.CornerRadius = UDim.new(0, 3)
  211. MainCorner_4.Name = "MainCorner"
  212. MainCorner_4.Parent = wave
  213.  
  214. framesAll.Name = "framesAll"
  215. framesAll.Parent = MainFrame
  216. framesAll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  217. framesAll.BackgroundTransparency = 1.000
  218. framesAll.BorderSizePixel = 0
  219. framesAll.Position = UDim2.new(0.296564192, 0, 0.0242873337, 0)
  220. framesAll.Size = UDim2.new(0, 381, 0, 431)
  221. framesAll.ZIndex = 2
  222.  
  223. shadow.Name = "shadow"
  224. shadow.Parent = LuxtLib
  225. shadow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  226. shadow.BackgroundTransparency = 1.000
  227. shadow.Position = UDim2.new(0.319562584, 0, 0.168689325, 0)
  228. shadow.Size = UDim2.new(0, 609, 0, 530)
  229. shadow.ZIndex = 0
  230. shadow.Image = "http://www.roblox.com/asset/?id=6105530152"
  231. shadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  232. shadow.ImageTransparency = 0.200
  233.  
  234. local TabHandling = {}
  235.  
  236. function TabHandling:Tab(tabText, tabId)
  237. local tabBtnFrame = Instance.new("Frame")
  238. local tabBtn = Instance.new("TextButton")
  239. local tabLogo = Instance.new("ImageLabel")
  240.  
  241. --
  242. tabText = tabText or "Tab"
  243. tabId = tabId or ""
  244.  
  245. tabBtnFrame.Name = "tabBtnFrame"
  246. tabBtnFrame.Parent = tabFrame
  247. tabBtnFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  248. tabBtnFrame.BackgroundTransparency = 1.000
  249. tabBtnFrame.Size = UDim2.new(0, 135, 0, 30)
  250. tabBtnFrame.ZIndex = 2
  251.  
  252. tabBtn.Name = "tabBtn"
  253. tabBtn.Parent = tabBtnFrame
  254. tabBtn.BackgroundColor3 = Color3.fromRGB(166, 248, 255)
  255. tabBtn.BackgroundTransparency = 1.000
  256. tabBtn.Position = UDim2.new(0.245534033, 0, 0, 0)
  257. tabBtn.Size = UDim2.new(0, 101, 0, 30)
  258. tabBtn.ZIndex = 2
  259. tabBtn.Font = Enum.Font.Gotham
  260. tabBtn.Text = tabText
  261. tabBtn.TextColor3 = Color3.fromRGB(153, 255, 238)
  262. tabBtn.TextSize = 14.000
  263. tabBtn.TextXAlignment = Enum.TextXAlignment.Left
  264.  
  265. tabLogo.Name = "tabLogo"
  266. tabLogo.Position = UDim2.new(-0.007, 0,0.067, 0)
  267. tabLogo.Parent = tabBtnFrame
  268. tabLogo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  269. tabLogo.BackgroundTransparency = 1.000
  270. tabLogo.BorderSizePixel = 0
  271. tabLogo.Size = UDim2.new(0, 25, 0, 25)
  272. tabLogo.ZIndex = 2
  273. tabLogo.Image = "rbxassetid://"..tabId
  274. tabLogo.ImageColor3 = Color3.fromRGB(153, 255, 238)
  275. --
  276.  
  277. local newPage = Instance.new("ScrollingFrame")
  278. local sectionList = Instance.new("UIListLayout")
  279.  
  280. newPage.Name = "newPage"..tabText
  281. newPage.Parent = pageFolder
  282. newPage.Active = true
  283. newPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  284. newPage.BackgroundTransparency = 1.000
  285. newPage.BorderSizePixel = 0
  286. newPage.Size = UDim2.new(1, 0, 1, 0)
  287. newPage.ZIndex = 2
  288. newPage.ScrollBarThickness = 0
  289. newPage.Visible = false
  290.  
  291. sectionList.Name = "sectionList"
  292. sectionList.Parent = newPage
  293. sectionList.SortOrder = Enum.SortOrder.LayoutOrder
  294. sectionList.Padding = UDim.new(0, 3)
  295.  
  296.  
  297. local function UpdateSize()
  298. local cS = sectionList.AbsoluteContentSize
  299.  
  300. game.TweenService:Create(newPage, TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  301. CanvasSize = UDim2.new(0,cS.X,0,cS.Y)
  302. }):Play()
  303. end
  304. UpdateSize()
  305. newPage.ChildAdded:Connect(UpdateSize)
  306. newPage.ChildRemoved:Connect(UpdateSize)
  307.  
  308. tabBtn.MouseButton1Click:Connect(function()
  309. UpdateSize()
  310. for i,v in next, pageFolder:GetChildren() do
  311. UpdateSize()
  312. v.Visible = false
  313. end
  314. newPage.Visible = true
  315. for i,v in next, tabFrame:GetChildren() do
  316. if v:IsA("Frame") then
  317. for i,v in next, v:GetChildren() do
  318. if v:IsA("TextButton") then
  319. game.TweenService:Create(v, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.In), {
  320. TextColor3 = Color3.fromRGB(35, 59, 55)
  321. }):Play()
  322. end
  323. if v:IsA("ImageLabel") then
  324. game.TweenService:Create(v, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.In), {
  325. ImageColor3 = Color3.fromRGB(35, 59, 55)
  326. }):Play()
  327. end
  328. end
  329. end
  330. end
  331. game.TweenService:Create(tabLogo, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.In), {
  332. ImageColor3 = Color3.fromRGB(153, 255, 238)
  333. }):Play()
  334. game.TweenService:Create(tabBtn, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.In), {
  335. TextColor3 = Color3.fromRGB(153, 255, 238)
  336. }):Play()
  337. end)
  338.  
  339. local sectionHandling = {}
  340.  
  341. function sectionHandling:Section(sectionText)
  342. local sectionFrame = Instance.new("Frame")
  343. local MainCorner = Instance.new("UICorner")
  344. local mainSectionHead = Instance.new("Frame")
  345. local sectionName = Instance.new("TextLabel")
  346. local sectionExpannd = Instance.new("ImageButton")
  347.  
  348. local sectionInnerList = Instance.new("UIListLayout")
  349.  
  350. sectionInnerList.Name = "sectionInnerList"
  351. sectionInnerList.Parent = sectionFrame
  352. sectionInnerList.HorizontalAlignment = Enum.HorizontalAlignment.Center
  353. sectionInnerList.SortOrder = Enum.SortOrder.LayoutOrder
  354. sectionInnerList.Padding = UDim.new(0, 3)
  355. --
  356. sectionText = sectionText or "Section"
  357. local isDropped = false
  358. --
  359.  
  360. sectionFrame.Name = "sectionFrame"
  361. sectionFrame.Parent = newPage
  362. sectionFrame.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  363. sectionFrame.Position = UDim2.new(0, 0, 7.08064434e-08, 0)
  364. sectionFrame.Size = UDim2.new(1, 0,0, 36)
  365. sectionFrame.ZIndex = 2
  366. sectionFrame.ClipsDescendants = true
  367.  
  368. MainCorner.CornerRadius = UDim.new(0, 5)
  369. MainCorner.Name = "MainCorner"
  370. MainCorner.Parent = sectionFrame
  371.  
  372. mainSectionHead.Name = "mainSectionHead"
  373. mainSectionHead.Parent = sectionFrame
  374. mainSectionHead.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  375. mainSectionHead.BackgroundTransparency = 1.000
  376. mainSectionHead.BorderSizePixel = 0
  377. mainSectionHead.Size = UDim2.new(0, 381, 0, 36)
  378.  
  379. sectionName.Name = "sectionName"
  380. sectionName.Parent = mainSectionHead
  381. sectionName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  382. sectionName.BackgroundTransparency = 1.000
  383. sectionName.Position = UDim2.new(0.0236220472, 0, 0, 0)
  384. sectionName.Size = UDim2.new(0, 302, 0, 36)
  385. sectionName.Font = Enum.Font.GothamSemibold
  386. sectionName.Text = sectionText
  387. sectionName.TextColor3 = Color3.fromRGB(153, 255, 238)
  388. sectionName.TextSize = 14.000
  389. sectionName.TextXAlignment = Enum.TextXAlignment.Left
  390.  
  391. sectionExpannd.Name = "sectionExpannd"
  392. sectionExpannd.Parent = mainSectionHead
  393. sectionExpannd.BackgroundTransparency = 1.000
  394. sectionExpannd.Position = UDim2.new(0.91863519, 0, 0.138888896, 0)
  395. sectionExpannd.Size = UDim2.new(0, 25, 0, 25)
  396. sectionExpannd.ZIndex = 2
  397. sectionExpannd.Image = "rbxassetid://3926305904"
  398. sectionExpannd.ImageColor3 = Color3.fromRGB(153, 255, 238)
  399. sectionExpannd.ImageRectOffset = Vector2.new(564, 284)
  400. sectionExpannd.ImageRectSize = Vector2.new(36, 36)
  401. sectionExpannd.MouseButton1Click:Connect(function()
  402. if isDropped then
  403. isDropped = false
  404. sectionFrame:TweenSize(UDim2.new(1, 0,0, 36), "In", "Quint", 0.10)
  405. game.TweenService:Create(sectionExpannd, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
  406. Rotation = 0
  407. }):Play()
  408. wait(0.10)
  409. UpdateSize()
  410. else
  411. isDropped = true
  412. sectionFrame:TweenSize(UDim2.new(1,0, 0, sectionInnerList.AbsoluteContentSize.Y + 5), "In", "Quint", 0.10)
  413. game.TweenService:Create(sectionExpannd, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
  414. Rotation = 180
  415. }):Play()
  416. wait(0.10)
  417. UpdateSize()
  418. end
  419. end)
  420.  
  421. local ItemHandling = {}
  422.  
  423. function ItemHandling:Button(btnText, callback)
  424. local ButtonFrame = Instance.new("Frame")
  425. local TextButton = Instance.new("TextButton")
  426. local UICorner = Instance.new("UICorner")
  427. local UIListLayout = Instance.new("UIListLayout")
  428.  
  429. --
  430. btnText = btnText or "TextButton"
  431. callback = callback or function() end
  432. --
  433.  
  434. ButtonFrame.Name = "ButtonFrame"
  435. ButtonFrame.Parent = sectionFrame
  436. ButtonFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  437. ButtonFrame.BackgroundTransparency = 1.000
  438. ButtonFrame.Size = UDim2.new(0, 365, 0, 36)
  439.  
  440. TextButton.Parent = ButtonFrame
  441. TextButton.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  442. TextButton.Size = UDim2.new(0, 365, 0, 36)
  443. TextButton.ZIndex = 2
  444. TextButton.AutoButtonColor = false
  445. TextButton.Text = btnText
  446. TextButton.Font = Enum.Font.GothamSemibold
  447. TextButton.TextColor3 = Color3.fromRGB(180, 180, 180)
  448. TextButton.TextSize = 14.000
  449.  
  450. local debounce = false
  451. local debounce1 = false
  452. TextButton.MouseButton1Click:Connect(function()
  453. if not debounce then
  454. debounce = true
  455. callback()
  456. wait(1)
  457. debounce = false
  458. end
  459. end)
  460.  
  461. UICorner.CornerRadius = UDim.new(0, 3)
  462. UICorner.Parent = TextButton
  463.  
  464. UIListLayout.Parent = ButtonFrame
  465. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  466. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  467. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  468.  
  469. TextButton.MouseButton1Up:Connect(function()
  470. TextButton:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
  471. game.TweenService:Create(TextButton, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
  472. BackgroundColor3 = Color3.fromRGB(18,18,18),
  473. TextColor3 = Color3.fromRGB(180, 180, 180)
  474. }):Play()
  475. end)
  476.  
  477. TextButton.MouseButton1Down:Connect(function()
  478. if not debounce1 then
  479. debounce1 = true
  480. TextButton:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
  481. game.TweenService:Create(TextButton, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
  482. BackgroundColor3 = Color3.fromRGB(101, 168, 157),
  483. TextColor3 = Color3.fromRGB(0,0,0)
  484. }):Play()
  485. wait(1)
  486. debounce1 = false
  487. end
  488. end)
  489.  
  490. TextButton.MouseEnter:Connect(function()
  491. game.TweenService:Create(TextButton, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
  492. BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  493. TextColor3 = Color3.fromRGB(250,250,250)
  494. }):Play()
  495. end)
  496.  
  497. TextButton.MouseLeave:Connect(function()
  498. game.TweenService:Create(TextButton, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
  499. BackgroundColor3 = Color3.fromRGB(18,18,18),
  500. TextColor3 = Color3.fromRGB(180, 180, 180)
  501. }):Play()
  502. end)
  503. end
  504.  
  505. function ItemHandling:Toggle(toggInfo, callback)
  506. local ToggleFrame = Instance.new("Frame")
  507. local toggleFrame = Instance.new("Frame")
  508. local UICorner = Instance.new("UICorner")
  509. local checkBtn = Instance.new("ImageButton")
  510. local toggleInfo = Instance.new("TextLabel")
  511. local togInList = Instance.new("UIListLayout")
  512. local toginPad = Instance.new("UIPadding")
  513. local UIListLayout = Instance.new("UIListLayout")
  514. local a
  515. --
  516. toggInfo = toggInfo or "Toggle"
  517. callback = callback or function() end
  518.  
  519. ToggleFrame.Name = "ToggleFrame"
  520. ToggleFrame.Parent = sectionFrame
  521. ToggleFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  522. ToggleFrame.BackgroundTransparency = 1.000
  523. ToggleFrame.Size = UDim2.new(0, 365, 0, 36)
  524.  
  525. toggleFrame.Name = "toggleFrame"
  526. toggleFrame.Parent = ToggleFrame
  527. toggleFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  528. toggleFrame.Size = UDim2.new(0, 365, 0, 36)
  529. toggleFrame.ZIndex = 2
  530.  
  531. UICorner.CornerRadius = UDim.new(0, 3)
  532. UICorner.Parent = toggleFrame
  533.  
  534. checkBtn.Name = "checkBtn"
  535. checkBtn.Parent = toggleFrame
  536. checkBtn.BackgroundTransparency = 1.000
  537. checkBtn.Position = UDim2.new(0.0191780813, 0, 0.138888896, 0)
  538. checkBtn.Size = UDim2.new(0, 25, 0, 25)
  539. checkBtn.ZIndex = 2
  540. checkBtn.Image = "rbxassetid://3926311105"
  541. checkBtn.ImageColor3 = Color3.fromRGB(97, 97, 97)
  542. checkBtn.ImageRectOffset = Vector2.new(940, 784)
  543. checkBtn.ImageRectSize = Vector2.new(48, 48)
  544.  
  545. toggleInfo.Name = "toggleInfo"
  546. toggleInfo.Parent = toggleFrame
  547. toggleInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  548. toggleInfo.BackgroundTransparency = 1.000
  549. toggleInfo.Position = UDim2.new(0.104109593, 0, 0, 0)
  550. toggleInfo.Size = UDim2.new(0.254794508, 162, 1, 0)
  551. toggleInfo.ZIndex = 2
  552. toggleInfo.Font = Enum.Font.GothamSemibold
  553. toggleInfo.Text = toggInfo
  554. toggleInfo.TextColor3 = Color3.fromRGB(97, 97, 97)
  555. toggleInfo.TextSize = 14.000
  556. toggleInfo.TextXAlignment = Enum.TextXAlignment.Left
  557.  
  558. togInList.Name = "togInList"
  559. togInList.Parent = toggleFrame
  560. togInList.FillDirection = Enum.FillDirection.Horizontal
  561. togInList.SortOrder = Enum.SortOrder.LayoutOrder
  562. togInList.VerticalAlignment = Enum.VerticalAlignment.Center
  563. togInList.Padding = UDim.new(0, 5)
  564.  
  565. toginPad.Name = "toginPad"
  566. toginPad.Parent = toggleFrame
  567. toginPad.PaddingLeft = UDim.new(0, 7)
  568.  
  569. UIListLayout.Parent = ToggleFrame
  570. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  571. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  572. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  573.  
  574. local on = false
  575. local togDe = false
  576. checkBtn.MouseButton1Click:Connect(function()
  577. if not togDe then
  578. togDe = true
  579. on = not on
  580. callback(on)
  581. if on then
  582. checkBtn.Parent.toggleInfo.TextColor3 = Color3.fromRGB(153, 255, 238)
  583. checkBtn.ImageColor3 = Color3.fromRGB(153, 255, 238)
  584. checkBtn.ImageRectOffset = Vector2.new(4, 836)
  585. checkBtn.ImageRectSize = Vector2.new(48,48)
  586. else
  587. checkBtn.Parent.toggleInfo.TextColor3 = Color3.fromRGB(97, 97, 97)
  588. checkBtn.ImageColor3 = Color3.fromRGB(97, 97, 97)
  589. checkBtn.ImageRectOffset = Vector2.new(940, 784)
  590. checkBtn.ImageRectSize = Vector2.new(48,48)
  591. end
  592. wait(1)
  593. togDe = false
  594. end
  595. end)
  596.  
  597. checkBtn.MouseButton1Up:Connect(function()
  598. checkBtn.Parent:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
  599. end)
  600.  
  601. checkBtn.MouseButton1Down:Connect(function()
  602. checkBtn.Parent:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
  603. end)
  604. end
  605.  
  606. function ItemHandling:KeyBind(keyInfo, first, callback)
  607. --
  608. keyInfo = keyInfo or "KeyBind"
  609. local oldKey = first.Name
  610. callback = callback or function() end
  611.  
  612. local KeyBindFrame = Instance.new("Frame")
  613. local keybindFrame = Instance.new("Frame")
  614. local UICorner = Instance.new("UICorner")
  615. local key = Instance.new("TextButton")
  616. local UICorner_2 = Instance.new("UICorner")
  617. local keybindInfo = Instance.new("TextLabel")
  618. local toginPad = Instance.new("UIPadding")
  619. local togInList = Instance.new("UIListLayout")
  620. local UIListLayout = Instance.new("UIListLayout")
  621.  
  622. KeyBindFrame.Name = "KeyBindFrame"
  623. KeyBindFrame.Parent = sectionFrame
  624. KeyBindFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  625. KeyBindFrame.BackgroundTransparency = 1.000
  626. KeyBindFrame.Size = UDim2.new(0, 365, 0, 36)
  627.  
  628. keybindFrame.Name = "keybindFrame"
  629. keybindFrame.Parent = KeyBindFrame
  630. keybindFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  631. keybindFrame.Size = UDim2.new(0, 365, 0, 36)
  632. keybindFrame.ZIndex = 2
  633.  
  634. UICorner.CornerRadius = UDim.new(0, 3)
  635. UICorner.Parent = keybindFrame
  636.  
  637. key.Name = "key"
  638. key.Parent = keybindFrame
  639. key.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  640. key.Position = UDim2.new(0.0250000004, 0, 0.194111288, 0)
  641. key.Size = UDim2.new(0, 100, 0, 22)
  642. key.ZIndex = 2
  643. key.Font = Enum.Font.GothamSemibold
  644. key.Text = oldKey
  645. key.TextColor3 = Color3.fromRGB(153, 255, 238)
  646. key.TextSize = 14.000
  647.  
  648. UICorner_2.CornerRadius = UDim.new(0, 5)
  649. UICorner_2.Parent = key
  650.  
  651. keybindInfo.Name = "keybindInfo"
  652. keybindInfo.Parent = keybindFrame
  653. keybindInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  654. keybindInfo.BackgroundTransparency = 1.000
  655. keybindInfo.Position = UDim2.new(0.320547938, 0, 0.166666672, 0)
  656. keybindInfo.Size = UDim2.new(0, 239, 0, 22)
  657. keybindInfo.ZIndex = 2
  658. keybindInfo.Font = Enum.Font.GothamSemibold
  659. keybindInfo.Text = keyInfo
  660. keybindInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  661. keybindInfo.TextSize = 13.000
  662. keybindInfo.TextXAlignment = Enum.TextXAlignment.Left
  663.  
  664. toginPad.Name = "toginPad"
  665. toginPad.Parent = keybindFrame
  666. toginPad.PaddingLeft = UDim.new(0, 7)
  667.  
  668. togInList.Name = "togInList"
  669. togInList.Parent = keybindFrame
  670. togInList.FillDirection = Enum.FillDirection.Horizontal
  671. togInList.SortOrder = Enum.SortOrder.LayoutOrder
  672. togInList.VerticalAlignment = Enum.VerticalAlignment.Center
  673. togInList.Padding = UDim.new(0, 8)
  674.  
  675. UIListLayout.Parent = KeyBindFrame
  676. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  677. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  678. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  679.  
  680. key.MouseButton1Click:connect(function(e)
  681. keybindFrame:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
  682. key.Text = ". . ."
  683. local a, b = game:GetService('UserInputService').InputBegan:wait();
  684. if a.KeyCode.Name ~= "Unknown" then
  685. keybindFrame:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
  686. key.Text = a.KeyCode.Name
  687. oldKey = a.KeyCode.Name;
  688. end
  689. end)
  690. local keyDebounce = false
  691. game:GetService("UserInputService").InputBegan:connect(function(current, ok)
  692. if not ok then
  693. if current.KeyCode.Name == oldKey then
  694. if not keyDebounce then
  695. keyDebounce = true
  696. callback()
  697. keybindFrame:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
  698. wait(0.18)
  699. keybindFrame:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
  700. wait(0.5)
  701. keyDebounce = false
  702. end
  703. end
  704. end
  705. end)
  706. end
  707.  
  708. function ItemHandling:TextBox(infbix, textPlace, callback)
  709. --
  710. infbix = infbix or "TextBox"
  711. textPlace = textPlace or "PlaceHolder"
  712. callback = callback or function() end
  713. --
  714. local a
  715. local TextBoxFrame = Instance.new("Frame")
  716. local textboxFrame = Instance.new("Frame")
  717. local UICorner = Instance.new("UICorner")
  718. local textboxInfo = Instance.new("TextLabel")
  719. local TextBox = Instance.new("TextBox")
  720. local UICorner_2 = Instance.new("UICorner")
  721. local textboxinlist = Instance.new("UIListLayout")
  722. local txtboxpa = Instance.new("UIPadding")
  723. local UIListLayout = Instance.new("UIListLayout")
  724.  
  725. TextBoxFrame.Name = "TextBoxFrame"
  726. TextBoxFrame.Parent = sectionFrame
  727. TextBoxFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  728. TextBoxFrame.BackgroundTransparency = 1.000
  729. TextBoxFrame.Size = UDim2.new(0, 365, 0, 36)
  730.  
  731. textboxFrame.Name = "textboxFrame"
  732. textboxFrame.Parent = TextBoxFrame
  733. textboxFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  734. textboxFrame.Size = UDim2.new(0, 365, 0, 36)
  735. textboxFrame.ZIndex = 2
  736.  
  737. UICorner.CornerRadius = UDim.new(0, 3)
  738. UICorner.Parent = textboxFrame
  739.  
  740. textboxInfo.Name = "textboxInfo"
  741. textboxInfo.Parent = textboxFrame
  742. textboxInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  743. textboxInfo.BackgroundTransparency = 1.000
  744. textboxInfo.Position = UDim2.new(0.320547938, 0, 0.166666672, 0)
  745. textboxInfo.Size = UDim2.new(0, 239, 0, 22)
  746. textboxInfo.ZIndex = 2
  747. textboxInfo.Font = Enum.Font.GothamSemibold
  748. textboxInfo.Text = infbix
  749. textboxInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  750. textboxInfo.TextSize = 13.000
  751. textboxInfo.TextXAlignment = Enum.TextXAlignment.Left
  752.  
  753. TextBox.Parent = textboxFrame
  754. TextBox.BackgroundColor3 = Color3.fromRGB(153, 255, 238)
  755. TextBox.ClipsDescendants = true
  756. TextBox.Position = UDim2.new(0.0250000004, 0, 0.194000006, 0)
  757. TextBox.Size = UDim2.new(0, 100, 0, 22)
  758. TextBox.ZIndex = 2
  759. TextBox.ClearTextOnFocus = false
  760. TextBox.Font = Enum.Font.GothamSemibold
  761. TextBox.PlaceholderColor3 = Color3.fromRGB(24, 24, 24)
  762. TextBox.Text = ""
  763. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  764. TextBox.TextSize = 13.000
  765. TextBox.PlaceholderText = textPlace
  766.  
  767. UICorner_2.CornerRadius = UDim.new(0, 5)
  768. UICorner_2.Parent = TextBox
  769.  
  770. textboxinlist.Name = "textboxinlist"
  771. textboxinlist.Parent = textboxFrame
  772. textboxinlist.FillDirection = Enum.FillDirection.Horizontal
  773. textboxinlist.VerticalAlignment = Enum.VerticalAlignment.Center
  774. textboxinlist.Padding = UDim.new(0, 8)
  775.  
  776. txtboxpa.Name = "txtboxpa"
  777. txtboxpa.Parent = textboxFrame
  778. txtboxpa.PaddingLeft = UDim.new(0, 7)
  779.  
  780. UIListLayout.Parent = TextBoxFrame
  781. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  782. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  783. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  784.  
  785. function anim(property)
  786. if property == "Text" then
  787. textboxFrame:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
  788. wait(0.18)
  789. textboxFrame:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
  790. end
  791. end
  792. TextBox.Changed:Connect(anim)
  793.  
  794. TextBox.FocusLost:Connect(function(EnterPressed)
  795. if not EnterPressed then return end
  796. callback(TextBox.Text)
  797. textboxFrame:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
  798. wait(0.18)
  799. textboxFrame:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
  800. TextBox.Text = ""
  801. end)
  802. end
  803.  
  804. function ItemHandling:Slider(slidInfo, minvalue, maxvalue, callback)
  805. local SliderFrame = Instance.new("Frame")
  806. local sliderFrame = Instance.new("Frame")
  807. local UICorner = Instance.new("UICorner")
  808. local sliderbtn = Instance.new("TextButton")
  809. local UICorner_2 = Instance.new("UICorner")
  810. local dragSlider = Instance.new("Frame")
  811. local UICorner_3 = Instance.new("UICorner")
  812. local dragPrecent = Instance.new("TextLabel")
  813. local UICorner_4 = Instance.new("UICorner")
  814. local triangle = Instance.new("ImageLabel")
  815. local precentlist = Instance.new("UIListLayout")
  816. local precentPad = Instance.new("UIPadding")
  817. local dragList = Instance.new("UIListLayout")
  818. local dragPad = Instance.new("UIPadding")
  819. local sliderlist_2 = Instance.new("UIListLayout")
  820. local sliderlist = Instance.new("UIListLayout")
  821. local UIListLayout = Instance.new("UIListLayout")
  822. local sliderInfo = Instance.new("TextLabel")
  823. --
  824. slidInfo = slidInfo or "Slider"
  825. minvalue = minvalue or 0
  826. maxvalue = maxvalue or 500
  827. ---
  828.  
  829. SliderFrame.Name = "SliderFrame"
  830. SliderFrame.Parent = sectionFrame
  831. SliderFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  832. SliderFrame.BackgroundTransparency = 1.000
  833. SliderFrame.Size = UDim2.new(0, 365, 0, 36)
  834.  
  835. sliderFrame.Name = "sliderFrame"
  836. sliderFrame.Parent = SliderFrame
  837. sliderFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  838. sliderFrame.Size = UDim2.new(0, 365, 0, 36)
  839. sliderFrame.ZIndex = 2
  840.  
  841. UICorner.CornerRadius = UDim.new(0, 3)
  842. UICorner.Parent = sliderFrame
  843.  
  844. sliderbtn.Name = "sliderbtn"
  845. sliderbtn.Parent = sliderFrame
  846. sliderbtn.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  847. sliderbtn.Position = UDim2.new(0.0167808235, 0, 0.416333348, 0)
  848. sliderbtn.Size = UDim2.new(0, 150, 0, 6)
  849. sliderbtn.ZIndex = 2
  850. sliderbtn.AutoButtonColor = false
  851. sliderbtn.Font = Enum.Font.SourceSans
  852. sliderbtn.Text = ""
  853. sliderbtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  854. sliderbtn.TextSize = 14.000
  855.  
  856. UICorner_2.CornerRadius = UDim.new(0, 5)
  857. UICorner_2.Parent = sliderbtn
  858.  
  859. dragSlider.Name = "dragSlider"
  860. dragSlider.Parent = sliderbtn
  861. dragSlider.BackgroundColor3 = Color3.fromRGB(153, 255, 238)
  862. dragSlider.Size = UDim2.new(0, 0, 0, 6)
  863. dragSlider.ZIndex = 2
  864.  
  865. UICorner_3.CornerRadius = UDim.new(0, 5)
  866. UICorner_3.Parent = dragSlider
  867.  
  868. dragPrecent.Name = "dragPrecent"
  869. dragPrecent.Parent = dragSlider
  870. dragPrecent.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  871. dragPrecent.BorderSizePixel = 0
  872. dragPrecent.Position = UDim2.new(0.727272749, 0, -2, 0)
  873. dragPrecent.Size = UDim2.new(0, 44, 0, 15)
  874. dragPrecent.ZIndex = 2
  875. dragPrecent.Font = Enum.Font.GothamSemibold
  876. dragPrecent.Text = "0%"
  877. dragPrecent.TextColor3 = Color3.fromRGB(255, 255, 255)
  878. dragPrecent.TextSize = 12.000
  879. dragPrecent.BackgroundTransparency = 1
  880. dragPrecent.TextTransparency = 1
  881.  
  882. UICorner_4.CornerRadius = UDim.new(0, 3)
  883. UICorner_4.Parent = dragPrecent
  884.  
  885. triangle.Name = "triangle"
  886. triangle.Parent = dragPrecent
  887. triangle.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  888. triangle.BackgroundTransparency = 1.000
  889. triangle.Size = UDim2.new(0, 44, 0, 39)
  890. triangle.ZIndex = 2
  891. triangle.Image = "rbxassetid://3926307971"
  892. triangle.ImageColor3 = Color3.fromRGB(31, 31, 31)
  893. triangle.ImageRectOffset = Vector2.new(324, 524)
  894. triangle.ImageRectSize = Vector2.new(36, 36)
  895. triangle.ImageTransparency = 1
  896.  
  897. precentlist.Name = "precentlist"
  898. precentlist.Parent = dragPrecent
  899. precentlist.HorizontalAlignment = Enum.HorizontalAlignment.Right
  900. precentlist.SortOrder = Enum.SortOrder.LayoutOrder
  901.  
  902. precentPad.Name = "precentPad"
  903. precentPad.Parent = dragPrecent
  904.  
  905. dragList.Name = "dragList"
  906. dragList.Parent = dragSlider
  907. dragList.HorizontalAlignment = Enum.HorizontalAlignment.Right
  908. dragList.SortOrder = Enum.SortOrder.LayoutOrder
  909.  
  910. dragPad.Name = "dragPad"
  911. dragPad.Parent = dragSlider
  912. dragPad.PaddingLeft = UDim.new(0, -15)
  913. dragPad.PaddingRight = UDim.new(0, -20)
  914. dragPad.PaddingTop = UDim.new(0, -18)
  915.  
  916. sliderlist.Name = "sliderlist"
  917. sliderlist.Parent = sliderbtn
  918. sliderlist.SortOrder = Enum.SortOrder.LayoutOrder
  919. sliderlist.VerticalAlignment = Enum.VerticalAlignment.Center
  920.  
  921. sliderlist_2.Name = "sliderlist"
  922. sliderlist_2.Parent = sliderFrame
  923. sliderlist_2.FillDirection = Enum.FillDirection.Horizontal
  924. sliderlist_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  925. sliderlist_2.SortOrder = Enum.SortOrder.LayoutOrder
  926. sliderlist_2.VerticalAlignment = Enum.VerticalAlignment.Center
  927. sliderlist_2.Padding = UDim.new(0, 8)
  928.  
  929. UIListLayout.Parent = SliderFrame
  930. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  931. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  932. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  933.  
  934. sliderInfo.Name = "sliderInfo"
  935. sliderInfo.Parent = sliderFrame
  936. sliderInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  937. sliderInfo.BackgroundTransparency = 1.000
  938. sliderInfo.Position = UDim2.new(0.466095895, 0, 0, 0)
  939. sliderInfo.Size = UDim2.new(0, 193, 0, 36)
  940. sliderInfo.ZIndex = 2
  941. sliderInfo.Font = Enum.Font.GothamSemibold
  942. sliderInfo.Text = slidInfo
  943. sliderInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
  944. sliderInfo.TextSize = 14.000
  945. sliderInfo.TextXAlignment = Enum.TextXAlignment.Left
  946.  
  947. local mouse = game.Players.LocalPlayer:GetMouse()
  948. local uis = game:GetService("UserInputService")
  949. local Value;
  950.  
  951. sliderbtn.MouseButton1Down:Connect(function()
  952. Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 150) * dragSlider.AbsoluteSize.X) + tonumber(minvalue)) or 0
  953. pcall(function()
  954. callback(Value)
  955. end)
  956. dragSlider.Size = UDim2.new(0, math.clamp(mouse.X - dragSlider.AbsolutePosition.X, 0, 150), 0, 6)
  957. moveconnection = mouse.Move:Connect(function()
  958. local Percentage = (Value/ maxvalue) * 100
  959. dragPrecent.Text = math.floor(Percentage).."%"
  960. Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 150) * dragSlider.AbsoluteSize.X) + tonumber(minvalue))
  961. pcall(function()
  962. callback(Value)
  963. end)
  964. dragSlider.Size = UDim2.new(0, math.clamp(mouse.X - dragSlider.AbsolutePosition.X, 0, 150), 0, 6)
  965. end)
  966. releaseconnection = uis.InputEnded:Connect(function(Mouse)
  967. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  968. Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 150) * dragSlider.AbsoluteSize.X) + tonumber(minvalue))
  969. pcall(function()
  970. callback(Value)
  971. end)
  972. Percentage = (Value/ maxvalue) * 100
  973. dragPrecent.Text = math.floor(Percentage).."%"
  974. dragSlider.Size = UDim2.new(0, math.clamp(mouse.X - dragSlider.AbsolutePosition.X, 0, 150), 0, 6)
  975. moveconnection:Disconnect()
  976. releaseconnection:Disconnect()
  977. end
  978. end)
  979. end)
  980.  
  981. function anim(property)
  982. if property == "Size" then
  983. sliderFrame:TweenSize(UDim2.new(0, 359,0, 30), "InOut", "Quint", 0.18, true)
  984. wait(0.18)
  985. sliderFrame:TweenSize(UDim2.new(0, 365,0, 36), "InOut", "Quint", 0.18, true)
  986. end
  987. end
  988. dragSlider.Changed:Connect(anim)
  989.  
  990. sliderbtn.MouseButton1Up:Connect(function()
  991. game.TweenService:Create(dragPrecent, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.In),{
  992. BackgroundTransparency = 1,
  993. TextTransparency = 1
  994. }):Play()
  995. game.TweenService:Create(triangle, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.In),{
  996. ImageTransparency = 1
  997. }):Play()
  998. end)
  999.  
  1000. sliderbtn.MouseButton1Down:Connect(function()
  1001. game.TweenService:Create(dragPrecent, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.In),{
  1002. BackgroundTransparency = 0,
  1003. TextTransparency = 0
  1004. }):Play()
  1005. game.TweenService:Create(triangle, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.In),{
  1006. ImageTransparency = 0
  1007. }):Play()
  1008. end)
  1009. end
  1010.  
  1011. function ItemHandling:Label(labelInfo)
  1012. local TextLabelFrame = Instance.new("Frame")
  1013. local UIListLayout = Instance.new("UIListLayout")
  1014. local TextLabel = Instance.new("TextLabel")
  1015. local UICorner = Instance.new("UICorner")
  1016. labelInfo = labelInfo or "Text Label"
  1017.  
  1018. TextLabelFrame.Name = "TextLabelFrame"
  1019. TextLabelFrame.Parent = sectionFrame
  1020. TextLabelFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  1021. TextLabelFrame.BackgroundTransparency = 1.000
  1022. TextLabelFrame.Size = UDim2.new(0, 365, 0, 36)
  1023.  
  1024. UIListLayout.Parent = TextLabelFrame
  1025. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1026. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1027. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  1028.  
  1029. TextLabel.Parent = TextLabelFrame
  1030. TextLabel.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  1031. TextLabel.Size = UDim2.new(0, 365, 0, 36)
  1032. TextLabel.ZIndex = 2
  1033. TextLabel.Font = Enum.Font.GothamSemibold
  1034. TextLabel.Text = labelInfo
  1035. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1036. TextLabel.TextSize = 14.000
  1037.  
  1038. UICorner.CornerRadius = UDim.new(0, 5)
  1039. UICorner.Parent = TextLabel
  1040. end
  1041.  
  1042. function ItemHandling:Credit(creditWho)
  1043. local TextLabelFrame = Instance.new("Frame")
  1044. local UIListLayout = Instance.new("UIListLayout")
  1045. local TextLabel = Instance.new("TextLabel")
  1046. local UICorner = Instance.new("UICorner")
  1047. creditWho = creditWho or "Text Label"
  1048.  
  1049. TextLabelFrame.Name = "TextLabelFrame"
  1050. TextLabelFrame.Parent = sectionFrame
  1051. TextLabelFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  1052. TextLabelFrame.BackgroundTransparency = 1.000
  1053. TextLabelFrame.Size = UDim2.new(0, 365, 0, 36)
  1054.  
  1055. UIListLayout.Parent = TextLabelFrame
  1056. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1057. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1058. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  1059.  
  1060. TextLabel.Parent = TextLabelFrame
  1061. TextLabel.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  1062. TextLabel.Size = UDim2.new(0, 365, 0, 36)
  1063. TextLabel.ZIndex = 2
  1064. TextLabel.Font = Enum.Font.Gotham
  1065. TextLabel.Text = " "..creditWho
  1066. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1067. TextLabel.TextSize = 14.000
  1068. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1069.  
  1070. UICorner.CornerRadius = UDim.new(0, 5)
  1071. UICorner.Parent = TextLabel
  1072. end
  1073.  
  1074. function ItemHandling:DropDown(dropInfo, list, callback)
  1075. callback = callback or function() end
  1076. list = list or {}
  1077. dropInfo = dropInfo or ""
  1078.  
  1079. local isDropped1 = false
  1080. local DropDownFrame = Instance.new("Frame")
  1081. local dropdownFrame = Instance.new("Frame")
  1082. local UICorner = Instance.new("UICorner")
  1083. local dropdownFrameMain = Instance.new("Frame")
  1084. local UICorner_2 = Instance.new("UICorner")
  1085. local expand_more = Instance.new("ImageButton")
  1086. local dropdownItem1 = Instance.new("TextLabel")
  1087. local UIListLayout = Instance.new("UIListLayout")
  1088. local UIListLayout_2 = Instance.new("UIListLayout")
  1089. local UIListLayout_3 = Instance.new("UIListLayout")
  1090.  
  1091. local DropYSize = 36
  1092.  
  1093. DropDownFrame.Name = "DropDownFrame"
  1094. DropDownFrame.Parent = sectionFrame
  1095. DropDownFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  1096. DropDownFrame.BackgroundTransparency = 1.000
  1097. DropDownFrame.Position = UDim2.new(0.0209973752, 0, 0.439849585, 0)
  1098. DropDownFrame.Size = UDim2.new(0, 365, 0, 36)
  1099. DropDownFrame.ClipsDescendants = true
  1100.  
  1101. dropdownFrame.Name = "dropdownFrame"
  1102. dropdownFrame.Parent = DropDownFrame
  1103. dropdownFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  1104. dropdownFrame.Size = UDim2.new(1, 0, 1, 0)
  1105. dropdownFrame.ZIndex = 2
  1106.  
  1107. UICorner.CornerRadius = UDim.new(0, 3)
  1108. UICorner.Parent = dropdownFrame
  1109.  
  1110. dropdownFrameMain.Name = "dropdownFrameMain"
  1111. dropdownFrameMain.Parent = dropdownFrame
  1112. dropdownFrameMain.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  1113. dropdownFrameMain.Size = UDim2.new(0, 365, 0, 36)
  1114. dropdownFrameMain.ZIndex = 2
  1115.  
  1116. UICorner_2.CornerRadius = UDim.new(0, 3)
  1117. UICorner_2.Parent = dropdownFrameMain
  1118.  
  1119. expand_more.Name = "expand_more"
  1120. expand_more.Parent = dropdownFrameMain
  1121. expand_more.BackgroundTransparency = 1.000
  1122. expand_more.Position = UDim2.new(0.91900003, 0, 0.138999999, 0)
  1123. expand_more.Size = UDim2.new(0, 25, 0, 25)
  1124. expand_more.ZIndex = 2
  1125. expand_more.Image = "rbxassetid://3926305904"
  1126. expand_more.ImageColor3 = Color3.fromRGB(153, 255, 238)
  1127. expand_more.ImageRectOffset = Vector2.new(564, 284)
  1128. expand_more.ImageRectSize = Vector2.new(36, 36)
  1129. expand_more.MouseButton1Click:Connect(function()
  1130. if isDropped1 then
  1131. isDropped1 = false
  1132. DropDownFrame:TweenSize(UDim2.new(0, 365, 0, 36), "In", "Quint", 0.10)
  1133. game.TweenService:Create(expand_more, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
  1134. Rotation = 0
  1135. }):Play()
  1136. wait(0.10)
  1137. sectionFrame:TweenSize(UDim2.new(1,0, 0, sectionInnerList.AbsoluteContentSize.Y + 5), "In", "Quint", 0.10)
  1138. wait(0.10)
  1139. UpdateSize()
  1140. else
  1141. isDropped1 = true
  1142. DropDownFrame:TweenSize(UDim2.new(0, 365, 0, DropYSize), "In", "Quint", 0.10)
  1143. game.TweenService:Create(expand_more, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
  1144. Rotation = 180
  1145. }):Play()
  1146. wait(0.10)
  1147. sectionFrame:TweenSize(UDim2.new(1,0, 0, sectionInnerList.AbsoluteContentSize.Y + 5), "In", "Quint", 0.10)
  1148. wait(0.10)
  1149. UpdateSize()
  1150. end
  1151. end)
  1152.  
  1153. dropdownItem1.Name = "dropdownItem1"
  1154. dropdownItem1.Parent = dropdownFrameMain
  1155. dropdownItem1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1156. dropdownItem1.BackgroundTransparency = 1.000
  1157. dropdownItem1.Position = UDim2.new(0.0250000004, 0, 0.0833333358, 0)
  1158. dropdownItem1.Size = UDim2.new(0, 293, 0, 30)
  1159. dropdownItem1.ZIndex = 2
  1160. dropdownItem1.Font = Enum.Font.GothamSemibold
  1161. dropdownItem1.Text = dropInfo
  1162. dropdownItem1.TextColor3 = Color3.fromRGB(153, 255, 238)
  1163. dropdownItem1.TextSize = 14.000
  1164. dropdownItem1.TextXAlignment = Enum.TextXAlignment.Left
  1165.  
  1166. UIListLayout.Parent = dropdownFrame
  1167. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1168. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1169. UIListLayout.Padding = UDim.new(0, 3)
  1170.  
  1171. UIListLayout_2.Parent = optionBtnFrame
  1172. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1173. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  1174. UIListLayout_2.VerticalAlignment = Enum.VerticalAlignment.Center
  1175.  
  1176. UIListLayout_3.Parent = DropDownFrame
  1177. UIListLayout_3.FillDirection = Enum.FillDirection.Horizontal
  1178. UIListLayout_3.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1179. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  1180. UIListLayout_3.VerticalAlignment = Enum.VerticalAlignment.Center
  1181.  
  1182. for i,v in next, list do
  1183. local optionBtnFrame = Instance.new("Frame")
  1184. local optionBtn1 = Instance.new("TextButton")
  1185. local UICorner_3 = Instance.new("UICorner")
  1186.  
  1187. optionBtnFrame.Name = "optionBtnFrame"
  1188. optionBtnFrame.Parent = dropdownFrame
  1189. optionBtnFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1190. optionBtnFrame.BackgroundTransparency = 1.000
  1191. optionBtnFrame.BorderSizePixel = 0
  1192. optionBtnFrame.Size = UDim2.new(0, 339, 0, 34)
  1193.  
  1194. optionBtn1.Name = "optionBtn1"
  1195. optionBtn1.Parent = optionBtnFrame
  1196. optionBtn1.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  1197. optionBtn1.Size = UDim2.new(0, 339, 0, 34)
  1198. optionBtn1.ZIndex = 2
  1199. optionBtn1.AutoButtonColor = false
  1200. optionBtn1.Font = Enum.Font.GothamSemibold
  1201. optionBtn1.Text = " "..v
  1202. optionBtn1.TextColor3 = Color3.fromRGB(120, 200, 187)
  1203. optionBtn1.TextSize = 14.000
  1204. optionBtn1.TextXAlignment = Enum.TextXAlignment.Left
  1205.  
  1206. UICorner_3.CornerRadius = UDim.new(0, 3)
  1207. UICorner_3.Parent = optionBtn1
  1208.  
  1209. DropYSize = DropYSize + 40
  1210. optionBtn1.MouseButton1Click:Connect(function()
  1211. callback(v)
  1212. dropdownItem1.Text = v
  1213. DropDownFrame:TweenSize(UDim2.new(0, 365, 0, 36), "In", "Quint", 0.10)
  1214. wait()
  1215. isDropped = false
  1216. wait(0.10)
  1217. sectionFrame:TweenSize(UDim2.new(1,0, 0, sectionInnerList.AbsoluteContentSize.Y + 5), "In", "Quint", 0.10)
  1218. wait(0.10)
  1219. UpdateSize()
  1220. game.TweenService:Create(expand_more, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
  1221. Rotation = 0
  1222. }):Play()
  1223. end)
  1224. optionBtn1.MouseButton1Down:Connect(function()
  1225. optionBtn1:TweenSize(UDim2.new(0, 335,0, 30), "InOut", "Quint", 0.12, true)
  1226. game.TweenService:Create(optionBtn1, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
  1227. BackgroundColor3 = Color3.fromRGB(21,21,21),
  1228. TextColor3 = Color3.fromRGB(180, 180, 180)
  1229. }):Play()
  1230. end)
  1231.  
  1232. optionBtn1.MouseButton1Up:Connect(function()
  1233. optionBtn1:TweenSize(UDim2.new(0, 339,0, 34), "InOut", "Quint", 0.12, true)
  1234. game.TweenService:Create(optionBtn1, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
  1235. BackgroundColor3 = Color3.fromRGB(101, 168, 157),
  1236. TextColor3 = Color3.fromRGB(0,0,0)
  1237. }):Play()
  1238. end)
  1239.  
  1240. optionBtn1.MouseEnter:Connect(function()
  1241. game.TweenService:Create(optionBtn1, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
  1242. BackgroundColor3 = Color3.fromRGB(15, 15, 15),
  1243. TextColor3 = Color3.fromRGB(250,250,250)
  1244. }):Play()
  1245. end)
  1246.  
  1247. optionBtn1.MouseLeave:Connect(function()
  1248. game.TweenService:Create(optionBtn1, TweenInfo.new(0.18, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),{
  1249. BackgroundColor3 = Color3.fromRGB(21, 21, 21),
  1250. TextColor3 = Color3.fromRGB(120, 200, 187)
  1251. }):Play()
  1252. end)
  1253. end
  1254. end
  1255.  
  1256. return ItemHandling
  1257. end
  1258. return sectionHandling
  1259. end
  1260. return TabHandling
  1261. end
  1262.  
  1263. return Luxt1
Add Comment
Please, Sign In to add comment