Guest

qqqqqqqqqqqqqqq

Apr 14th, 2026
53
0
Never
Not a member of GistPad yet? Sign Up, it unlocks many cool features!
None 147.09 KB | None | 0 0
  1. local function mys_custom_ui(config, tabIconsOrdered)
  2. local _uis = game:GetService("UserInputService")
  3. local _cg = game:GetService("CoreGui")
  4. local _run = game:GetService("RunService")
  5. local TweenService = game:GetService("TweenService")
  6. local Lighting = game:GetService("Lighting")
  7. local Players = game:GetService("Players")
  8. local config = _G.config
  9.  
  10. local _visible = config.startVisible
  11. local oldBlur = Lighting:FindFirstChild("mys_customUIBlur")
  12. if oldBlur then
  13. oldBlur:Destroy()
  14. end
  15. local _blurEffect = Instance.new("BlurEffect")
  16. _blurEffect.Name = "mys_customUIBlur"
  17. _blurEffect.Size = _visible and 24 or 0
  18. _blurEffect.Parent = Lighting
  19. for _, existingUI in ipairs(_cg:GetChildren()) do
  20. if existingUI:IsA("ScreenGui") and existingUI.Name == "mys_custom_ui" then
  21. existingUI:Destroy()
  22. end
  23. end
  24.  
  25. local _coregui = Instance.new("ScreenGui")
  26. _coregui.Name = "mys_custom_ui"
  27. _coregui.DisplayOrder = 9999
  28. _coregui.ResetOnSpawn = false
  29. _coregui.IgnoreGuiInset = true
  30. _coregui.Parent = _cg
  31.  
  32. local _blurFrame = Instance.new("Frame")
  33. _blurFrame.Size = UDim2.new(1, 0, 1, 0)
  34. _blurFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  35. _blurFrame.BackgroundTransparency = 1
  36. _blurFrame.BorderSizePixel = 0
  37. _blurFrame.ZIndex = 0
  38. _blurFrame.Visible = _visible
  39. _blurFrame.Parent = _coregui
  40.  
  41. local _stars = {}
  42. local _holder = Instance.new("Frame")
  43. _holder.Size = UDim2.new(1, 0, 1, 0)
  44. _holder.BackgroundTransparency = 1
  45. _holder.ClipsDescendants = true
  46. _holder.ZIndex = 0
  47. _holder.Parent = _blurFrame
  48.  
  49. for i = 1, config.MAX_STARS do
  50. local star = Instance.new("Frame")
  51. star.Size = UDim2.new(0, 3, 0, 3)
  52. local x, y = math.random(), math.random()
  53. local direction = Vector2.new(1, 1).Unit * config.STAR_MOVE_SPEED
  54. star.Position = UDim2.new(x, 0, y, 0)
  55. star.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. star.BackgroundTransparency = 0
  57. star.BorderSizePixel = 0
  58. star.ZIndex = 1
  59. star.Visible = true
  60. star.Parent = _holder
  61. table.insert(
  62. _stars,
  63. {
  64. frame = star,
  65. pos = Vector2.new(x, y),
  66. direction = direction,
  67. sparkleOffset = math.random() * math.pi * 2
  68. }
  69. )
  70. end
  71.  
  72. _run.RenderStepped:Connect(
  73. function(deltaTime)
  74. for _, star in ipairs(_stars) do
  75. if star.frame.Visible then
  76. star.pos = star.pos + star.direction * deltaTime
  77. if star.pos.X < 0 or star.pos.X > 1 or star.pos.Y < 0 or star.pos.Y > 1 then
  78. star.pos = Vector2.new(math.random(), math.random())
  79. star.direction = Vector2.new(1, 1).Unit * config.STAR_MOVE_SPEED
  80. star.sparkleOffset = math.random() * math.pi * 2
  81. end
  82. local sparkle = math.abs(math.sin(tick() * config.STAR_SPARKLE_SPEED + star.sparkleOffset))
  83. star.frame.BackgroundTransparency = 0.1 + sparkle * 0.7
  84. star.frame.Position = UDim2.new(star.pos.X, 0, star.pos.Y, 0)
  85. end
  86. end
  87. end
  88. )
  89.  
  90. local _uiContainer = Instance.new("Folder")
  91. _uiContainer.Name = "UIContainer"
  92. _uiContainer.Parent = _coregui
  93.  
  94. local _gui = Instance.new("ScreenGui")
  95. _gui.Name = "mys_custom_ui"
  96. _gui.Parent = _uiContainer
  97. _gui.ResetOnSpawn = false
  98. _gui.DisplayOrder = 9999
  99.  
  100. local _mf = Instance.new("Frame")
  101. _mf.Size = config.mainframesize
  102. _mf.Position = config.mainframepos
  103. _mf.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  104. _mf.BorderSizePixel = 0
  105. _mf.Visible = _visible
  106. _mf.BackgroundTransparency = 1
  107. _mf.Parent = _gui
  108.  
  109. local _crnr = Instance.new("UICorner")
  110. _crnr.CornerRadius = UDim.new(0, 6)
  111. _crnr.Parent = _mf
  112.  
  113. local _top = Instance.new("Frame")
  114. _top.Size = UDim2.new(1, 0, 0, 30)
  115. _top.BackgroundTransparency = 1
  116. _top.BorderSizePixel = 0
  117. _top.Parent = _mf
  118.  
  119. local _tbcrnr = Instance.new("UICorner")
  120. _tbcrnr.CornerRadius = UDim.new(0, 12)
  121. _tbcrnr.Parent = _top
  122.  
  123. local _title = Instance.new("TextLabel")
  124. _title.Size = UDim2.new(0, 0, 1, 0)
  125. _title.Position = UDim2.new(0, 10, 0, 0)
  126. _title.BackgroundTransparency = 1
  127. _title.RichText = true
  128. _title.TextTransparency = 1
  129. _title.Font = Enum.Font.GothamBold
  130. _title.TextSize = 18
  131. _title.TextXAlignment = Enum.TextXAlignment.Left
  132. _title.Parent = _top
  133. local function colorToRGB(color)
  134. return math.floor(color.R * 255),
  135. math.floor(color.G * 255),
  136. math.floor(color.B * 255)
  137. end
  138. local r1, g1, b1 = colorToRGB(config.accentcolor)
  139. local r2, g2, b2 = colorToRGB(config.accentcolorSecondary)
  140. _title.Text = string.format(
  141. '<font color="rgb(%d,%d,%d)">%s</font><font color="rgb(%d,%d,%d)">%s</font>',
  142. r1, g1, b1,
  143. config.title or "unknown",
  144. r2, g2, b2,
  145. config.titleExtension or ".client [CANNOT FIND TITLE]"
  146. )
  147.  
  148. local _version = Instance.new("TextLabel")
  149. _version.Size = UDim2.new(0, 0, 1, 0)
  150. _version.Position = config.pos
  151. _version.BackgroundTransparency = 1
  152. _version.Text = config.version
  153. _version.TextColor3 = config.accentcolor
  154. _version.TextTransparency = 1
  155. _version.Font = Enum.Font.GothamBold
  156. _version.TextSize = 14
  157. _version.TextXAlignment = Enum.TextXAlignment.Left
  158. _version.Parent = _top
  159. local connection
  160. connection = _run.Heartbeat:Connect(function()
  161. _version.Position = UDim2.new(0, 550, 0.15, 0)
  162. connection:Disconnect()
  163. end)
  164.  
  165. local _divider = Instance.new("Frame")
  166. _divider.Size = UDim2.new(0.85, 0, 0, 1)
  167. _divider.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  168. _divider.BackgroundTransparency = 1
  169. _divider.BorderSizePixel = 0
  170. _divider.Parent = _mf
  171.  
  172. task.defer(
  173. function()
  174. local _pw = _mf.AbsoluteSize.X
  175. local _dw = _divider.AbsoluteSize.X
  176. _cx = (_pw - _dw) / 2
  177. _divider.Position = UDim2.new(0, _cx, 0, 35)
  178. end
  179. )
  180.  
  181. local _scrlfrm = Instance.new("ScrollingFrame")
  182. _scrlfrm.Name = "Content"
  183. _scrlfrm.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  184. _scrlfrm.BorderSizePixel = 0
  185. _scrlfrm.BackgroundTransparency = 1
  186. _scrlfrm.CanvasSize = UDim2.new(0, 0, 0, 0)
  187. _scrlfrm.ScrollBarThickness = 6
  188. _scrlfrm.ScrollBarImageColor3 = Color3.fromRGB(100, 100, 100)
  189. _scrlfrm.Parent = _mf
  190. _scrlfrm.AutomaticCanvasSize = Enum.AutomaticSize.Y
  191. _scrlfrm.ClipsDescendants = true
  192.  
  193. local _scrlcrnr = Instance.new("UICorner")
  194. _scrlcrnr.CornerRadius = UDim.new(0, 8)
  195. _scrlcrnr.Parent = _scrlfrm
  196.  
  197. task.defer(
  198. function()
  199. local _dy = _divider.Position.Y.Offset + _divider.Size.Y.Offset
  200. local _ah = _mf.AbsoluteSize.Y - _dy - 10
  201. _scrlfrm.Position = UDim2.new(0, 10, 0, _dy + 10)
  202. _scrlfrm.Size = UDim2.new(1, -20, 0, _ah)
  203. end
  204. )
  205.  
  206. local _topBar = Instance.new("Frame")
  207. _topBar.Size = UDim2.new(0, 235, 0, 40)
  208. _topBar.Position = UDim2.new(0.5, -150, 0, 20)
  209. _topBar.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  210. _topBar.BorderSizePixel = 0
  211. _topBar.Visible = _visible
  212. _topBar.BackgroundTransparency = 1
  213. _topBar.Parent = _uiContainer
  214.  
  215. local _strokeBar = Instance.new("UIStroke")
  216. _strokeBar.Color = Color3.fromRGB(100, 100, 100)
  217. _strokeBar.Thickness = 0.6
  218. _strokeBar.Transparency = 1
  219. _strokeBar.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  220. _strokeBar.Parent = _topBar
  221.  
  222. local _topBarCorner = Instance.new("UICorner")
  223. _topBarCorner.CornerRadius = UDim.new(0, 4)
  224. _topBarCorner.Parent = _topBar
  225. local r1, g1, b1 = colorToRGB(config.accentcolor)
  226. local r2, g2, b2 = colorToRGB(config.accentcolorSecondary)
  227. local _watermarktextcfg = string.format(
  228. '<font color="rgb(%d,%d,%d)">%s</font><font color="rgb(%d,%d,%d)">%s</font>',
  229. r1, g1, b1, config.watermark or "unknown",
  230. r2, g2, b2, config.watermarkExtension or ".client"
  231. )
  232. local _watermark = Instance.new("Frame")
  233. _watermark.Size = UDim2.new(0, 93, 0, 40)
  234. _watermark.Position = UDim2.new(0, 1780, 0, 25)
  235. _watermark.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  236. _watermark.BorderSizePixel = 0
  237. _watermark.BackgroundTransparency = 0
  238. _watermark.Parent = _uiContainer
  239. local _watermarkStroke = Instance.new("UIStroke")
  240. _watermarkStroke.Color = Color3.fromRGB(100, 100, 100)
  241. _watermarkStroke.Thickness = 0.6
  242. _watermarkStroke.Transparency = 1
  243. _watermarkStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  244. _watermarkStroke.Parent = _watermark
  245. local _watermarkCorner = Instance.new("UICorner")
  246. _watermarkCorner.CornerRadius = UDim.new(0, 4)
  247. _watermarkCorner.Parent = _watermark
  248. local _watermarklabel = Instance.new("TextLabel")
  249. _watermarklabel.Size = UDim2.new(0, 0, 1, 0)
  250. _watermarklabel.Text = _watermarktextcfg
  251. _watermarklabel.Position = UDim2.new(0, 10, 0, 0)
  252. _watermarklabel.BackgroundTransparency = 1
  253. _watermarklabel.TextColor3 = Color3.new(1, 1, 1)
  254. _watermarklabel.TextTransparency = 0
  255. _watermarklabel.Font = Enum.Font.GothamBold
  256. _watermarklabel.TextSize = 16
  257. _watermarklabel.TextXAlignment = Enum.TextXAlignment.Left
  258. _watermarklabel.RichText = true
  259. _watermarklabel.Parent = _watermark
  260. local _watermarkDragging = false
  261. local _watermarkDragStart
  262. local _watermarkStartPos
  263. local _watermarkDragInput
  264. local _watermarkTargetPos = _watermark.Position
  265. local _watermarkLerpSpeed = 0.05
  266. _watermark.InputBegan:Connect(function(input)
  267. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  268. _watermarkDragging = true
  269. _watermarkDragStart = input.Position
  270. _watermarkStartPos = _watermark.Position
  271. end
  272. end)
  273. _watermark.InputChanged:Connect(function(input)
  274. if input.UserInputType == Enum.UserInputType.MouseMovement then
  275. _watermarkDragInput = input
  276. end
  277. end)
  278. _watermark.InputEnded:Connect(function(input)
  279. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  280. _watermarkDragging = false
  281. end
  282. end)
  283. _run.RenderStepped:Connect(function()
  284. if _watermarkDragging and _watermarkDragInput then
  285. local delta = _watermarkDragInput.Position - _watermarkDragStart
  286. _watermarkTargetPos = _watermarkStartPos + UDim2.new(0, delta.X, 0, delta.Y)
  287. end
  288. _watermark.Position = _watermark.Position:Lerp(_watermarkTargetPos, _watermarkLerpSpeed)
  289. end)
  290. local exec = "Unknown"
  291. if identifyexecutor then
  292. local name, version = identifyexecutor()
  293. exec = version and (name .. " " .. version) or name
  294. elseif getexecutorname then
  295. exec = getexecutorname()
  296. end
  297. local _executorbox = Instance.new("Frame")
  298. _executorbox.Size = UDim2.new(0, 125, 0, 40)
  299. _executorbox.Position = UDim2.new(0, 430, 0, 20)
  300. _executorbox.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  301. _executorbox.BorderSizePixel = 0
  302. _executorbox.Visible = _visible
  303. _executorbox.BackgroundTransparency = 1
  304. _executorbox.Parent = _uiContainer
  305. local _executorboxStroke = Instance.new("UIStroke")
  306. _executorboxStroke.Color = Color3.fromRGB(100, 100, 100)
  307. _executorboxStroke.Thickness = 0.6
  308. _executorboxStroke.Transparency = 1
  309. _executorboxStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  310. _executorboxStroke.Parent = _executorbox
  311.  
  312. local _executorboxCorner = Instance.new("UICorner")
  313. _executorboxCorner.CornerRadius = UDim.new(0, 4)
  314. _executorboxCorner.Parent = _executorbox
  315. local _executorboxlabel = Instance.new("TextLabel")
  316. _executorboxlabel.Size = UDim2.new(0, 0, 1, 0)
  317. _executorboxlabel.Text = exec
  318. _executorboxlabel.Position = UDim2.new(0, 10, 0, 0)
  319. _executorboxlabel.BackgroundTransparency = 1
  320. _executorboxlabel.TextColor3 = config.accentcolor
  321. _executorboxlabel.BorderSizePixel = 0
  322. _executorboxlabel.TextTransparency = 0
  323. _executorboxlabel.Font = Enum.Font.GothamBold
  324. _executorboxlabel.TextSize = 16
  325. _executorboxlabel.TextXAlignment = Enum.TextXAlignment.Left
  326. _executorboxlabel.Parent = _executorbox
  327. local _executorboxDragging = false
  328. local _executorboxDragStart
  329. local _executorboxStartPos
  330. local _executorboxDragInput
  331. local _executorboxTargetPos = _executorbox.Position
  332. local _executorboxLerpSpeed = 0.05
  333. _executorbox.InputBegan:Connect(function(input)
  334. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  335. _executorboxDragging = true
  336. _executorboxDragStart = input.Position
  337. _executorboxStartPos = _executorbox.Position
  338. end
  339. end)
  340. _executorbox.InputChanged:Connect(function(input)
  341. if input.UserInputType == Enum.UserInputType.MouseMovement then
  342. _executorboxDragInput = input
  343. end
  344. end)
  345. _executorbox.InputEnded:Connect(function(input)
  346. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  347. _executorboxDragging = false
  348. end
  349. end)
  350. _run.RenderStepped:Connect(function()
  351. if _executorboxDragging and _executorboxDragInput then
  352. local delta = _executorboxDragInput.Position - _executorboxDragStart
  353. _executorboxTargetPos = _executorboxStartPos + UDim2.new(0, delta.X, 0, delta.Y)
  354. end
  355. _executorbox.Position = _executorbox.Position:Lerp(_executorboxTargetPos, _executorboxLerpSpeed)
  356. end)
  357.  
  358. local _fpsbox = Instance.new("Frame")
  359. _fpsbox.Size = UDim2.new(0, 45, 0, 40)
  360. _fpsbox.Position = UDim2.new(0, 70, 0, 20)
  361. _fpsbox.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  362. _fpsbox.BorderSizePixel = 0
  363. _fpsbox.Visible = _visible
  364. _fpsbox.BackgroundTransparency = 1
  365. _fpsbox.Parent = _uiContainer
  366. local _fpsboxStroke = Instance.new("UIStroke")
  367. _fpsboxStroke.Color = Color3.fromRGB(100, 100, 100)
  368. _fpsboxStroke.Thickness = 0.6
  369. _fpsboxStroke.Transparency = 1
  370. _fpsboxStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  371. _fpsboxStroke.Parent = _fpsbox
  372.  
  373. local _fpsboxCorner = Instance.new("UICorner")
  374. _fpsboxCorner.CornerRadius = UDim.new(0, 4)
  375. _fpsboxCorner.Parent = _fpsbox
  376. local _fpslabel = Instance.new("TextLabel")
  377. _fpslabel.Size = UDim2.new(0, 0, 1, 0)
  378. _fpslabel.Position = UDim2.new(0, 10, 0, 0)
  379. _fpslabel.BackgroundTransparency = 1
  380. _fpslabel.TextColor3 = config.accentcolor
  381. _fpslabel.BorderSizePixel = 0
  382. _fpslabel.TextTransparency = 0
  383. _fpslabel.Font = Enum.Font.GothamBold
  384. _fpslabel.TextSize = 16
  385. _fpslabel.TextXAlignment = Enum.TextXAlignment.Left
  386. _fpslabel.Parent = _fpsbox
  387. local updateInterval = 0.1
  388. local accumulatedTime = 0
  389. local _fpsDragging = false
  390. local _fpsDragStart
  391. local _fpsStartPos
  392. local _fpsDragInput
  393. local _fpsTargetPos = _fpsbox.Position
  394. local lerpSpeed = 0.05
  395. _run.RenderStepped:Connect(function(deltaTime)
  396. accumulatedTime = accumulatedTime + deltaTime
  397. if accumulatedTime >= updateInterval then
  398. local fps = 1 / deltaTime
  399. _fpslabel.Text = tostring(math.floor(fps))
  400. accumulatedTime = 0
  401. end
  402. end)
  403. _fpsbox.InputBegan:Connect(function(input)
  404. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  405. _fpsDragging = true
  406. _fpsDragStart = input.Position
  407. _fpsStartPos = _fpsbox.Position
  408. end
  409. end)
  410. _fpsbox.InputChanged:Connect(function(input)
  411. if input.UserInputType == Enum.UserInputType.MouseMovement then
  412. _fpsDragInput = input
  413. end
  414. end)
  415. _fpsbox.InputEnded:Connect(function(input)
  416. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  417. _fpsDragging = false
  418. end
  419. end)
  420. _run.RenderStepped:Connect(function()
  421. if _fpsDragging and _fpsDragInput then
  422. local delta = _fpsDragInput.Position - _fpsDragStart
  423. _fpsTargetPos = _fpsStartPos + UDim2.new(0, delta.X, 0, delta.Y)
  424. end
  425. _fpsbox.Position = _fpsbox.Position:Lerp(_fpsTargetPos, lerpSpeed)
  426. end)
  427. local _leftBar = Instance.new("Frame")
  428. _leftBar.Size = UDim2.new(0, 235, 0, 40)
  429. _leftBar.Position = UDim2.new(0, 20, 0, 20)
  430. _leftBar.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  431. _leftBar.BorderSizePixel = 0
  432. _leftBar.Visible = _visible
  433. _leftBar.BackgroundTransparency = 1
  434. _leftBar.Parent = _uiContainer
  435.  
  436. local _leftBarStroke = Instance.new("UIStroke")
  437. _leftBarStroke.Color = Color3.fromRGB(100, 100, 100)
  438. _leftBarStroke.Thickness = 0.6
  439. _leftBarStroke.Transparency = 1
  440. _leftBarStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  441. _leftBarStroke.Parent = _leftBar
  442.  
  443. local _leftBarCorner = Instance.new("UICorner")
  444. _leftBarCorner.CornerRadius = UDim.new(0, 4)
  445. _leftBarCorner.Parent = _leftBar
  446.  
  447. local _usernameLabel = Instance.new("TextLabel")
  448. _usernameLabel.Size = UDim2.new(0, 0, 1, 0)
  449. _usernameLabel.Position = UDim2.new(0, 10, 0, 0)
  450. _usernameLabel.BackgroundTransparency = 1
  451. _usernameLabel.Text = Players.LocalPlayer.DisplayName
  452. _usernameLabel.TextColor3 = config.accentcolor
  453. _usernameLabel.BorderSizePixel = 0
  454. _usernameLabel.TextTransparency = 1
  455. _usernameLabel.Font = Enum.Font.GothamBold
  456. _usernameLabel.TextSize = 16
  457. _usernameLabel.TextXAlignment = Enum.TextXAlignment.Left
  458. _usernameLabel.Parent = _leftBar
  459.  
  460. local baseLeftX = 20
  461. local baseLeftWidth = 235
  462. local currentWidth = _leftBar.Size.X.Offset
  463. local startX = baseLeftX + currentWidth + 10
  464. local directionOffset = currentWidth - baseLeftWidth
  465.  
  466. local fpsX
  467.  
  468. if currentWidth >= baseLeftWidth then
  469. fpsX = startX
  470. else
  471. fpsX = startX + directionOffset
  472. end
  473.  
  474. _fpsbox.Position = UDim2.new(0, fpsX, 0, 20)
  475. _executorbox.Position = UDim2.new(0, fpsX + _fpsbox.Size.X.Offset + 20, 0, 20)
  476.  
  477. local _timebox = Instance.new("Frame")
  478. _timebox.Size = UDim2.new(0, 65, 0, 40)
  479. _timebox.Position = UDim2.new(0, 20, 0, 65)
  480. _timebox.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  481. _timebox.BorderSizePixel = 0
  482. _timebox.Visible = _visible
  483. _timebox.BackgroundTransparency = 1
  484. _timebox.Parent = _uiContainer
  485. local _timeboxStroke = Instance.new("UIStroke")
  486. _timeboxStroke.Color = Color3.fromRGB(100, 100, 100)
  487. _timeboxStroke.Thickness = 0.6
  488. _timeboxStroke.Transparency = 1
  489. _timeboxStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  490. _timeboxStroke.Parent = _timebox
  491. local _timeboxCorner = Instance.new("UICorner")
  492. _timeboxCorner.CornerRadius = UDim.new(0, 4)
  493. _timeboxCorner.Parent = _timebox
  494. local _timeboxlabel = Instance.new("TextLabel")
  495. _timeboxlabel.Size = UDim2.new(1, -20, 1, 0)
  496. _timeboxlabel.Position = UDim2.new(0, 10, 0, 0)
  497. _timeboxlabel.BackgroundTransparency = 1
  498. _timeboxlabel.TextColor3 = config.accentcolor
  499. _timeboxlabel.TextTransparency = 0
  500. _timeboxlabel.Font = Enum.Font.GothamBold
  501. _timeboxlabel.TextSize = 16
  502. _timeboxlabel.TextXAlignment = Enum.TextXAlignment.Left
  503. _timeboxlabel.Parent = _timebox
  504. local function updateTime()
  505. local currentTime = os.date("*t")
  506. local hour = currentTime.hour
  507. local minute = currentTime.min
  508. local ampm = hour >= 12 and "PM" or "AM"
  509. if hour == 0 then
  510. hour = 12
  511. elseif hour > 12 then
  512. hour = hour - 12
  513. end
  514. _timeboxlabel.BackgroundTransparency = 1
  515. _timeboxlabel.Text = string.format("%d:%02d %s", hour, minute, ampm)
  516. end
  517. updateTime()
  518. task.spawn(function()
  519. while true do
  520. updateTime()
  521. task.wait()
  522. end
  523. end)
  524. local _timeboxDragging = false
  525. local _timeboxDragStart
  526. local _timeboxStartPos
  527. local _timeboxDragInput
  528. local _timeboxTargetPos = _timebox.Position
  529. local _timeboxLerpSpeed = 0.05
  530. _timebox.InputBegan:Connect(function(input)
  531. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  532. _timeboxDragging = true
  533. _timeboxDragStart = input.Position
  534. _timeboxStartPos = _timebox.Position
  535. end
  536. end)
  537. _timebox.InputChanged:Connect(function(input)
  538. if input.UserInputType == Enum.UserInputType.MouseMovement then
  539. _timeboxDragInput = input
  540. end
  541. end)
  542. _timebox.InputEnded:Connect(function(input)
  543. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  544. _timeboxDragging = false
  545. end
  546. end)
  547. _run.RenderStepped:Connect(function()
  548. if _timeboxDragging and _timeboxDragInput then
  549. local delta = _timeboxDragInput.Position - _timeboxDragStart
  550. _timeboxTargetPos = _timeboxStartPos + UDim2.new(0, delta.X, 0, delta.Y)
  551. end
  552. _timebox.Position = _timebox.Position:Lerp(_timeboxTargetPos, _timeboxLerpSpeed)
  553. end)
  554.  
  555. local _iconList = Instance.new("UIListLayout")
  556. _iconList.FillDirection = Enum.FillDirection.Horizontal
  557. _iconList.HorizontalAlignment = Enum.HorizontalAlignment.Center
  558. _iconList.VerticalAlignment = Enum.VerticalAlignment.Center
  559. _iconList.Padding = UDim.new(0, 6)
  560. _iconList.Parent = _topBar
  561.  
  562. local function loadIcons(url)
  563. local success, result = pcall(function()
  564. return game:HttpGet(url, true)
  565. end)
  566. if not success then
  567. return {}
  568. elseif not result then
  569. return {}
  570. end
  571. local chunk, err = loadstring(result)
  572. if not chunk then
  573. return {}
  574. end
  575. local ok, data = pcall(chunk)
  576. if not ok then
  577. return {}
  578. elseif not data then
  579. return {}
  580. end
  581. return data
  582. end
  583.  
  584.  
  585. local function getIcon(name)
  586. if not Icons or not Icons["48px"] then
  587. return nil
  588. end
  589. name = string.match(string.lower(name), "^%s*(.-)%s*$") or ""
  590. local r = Icons["48px"][name]
  591. if not r then
  592. return nil
  593. end
  594. local id, sizeTbl, offsetTbl = r[1], r[2], r[3]
  595. if type(id) ~= "number" or type(sizeTbl) ~= "table" or type(offsetTbl) ~= "table" then
  596. return nil
  597. end
  598. return {
  599. id = id,
  600. imageRectSize = Vector2.new(sizeTbl[1], sizeTbl[2]),
  601. imageRectOffset = Vector2.new(offsetTbl[1], offsetTbl[2])
  602. }
  603. end
  604.  
  605. local function getAssetUri(id)
  606. if type(id) ~= "number" then
  607. return "rbxassetid://0"
  608. end
  609. return "rbxassetid://" .. id
  610. end
  611.  
  612. local originalColor = config.accentcolor
  613. local hoverColor = Color3.new(
  614. math.clamp(originalColor.R + 0.2, 0, 1),
  615. math.clamp(originalColor.G + 0.2, 0, 1),
  616. math.clamp(originalColor.B + 0.2, 0, 1)
  617. )
  618.  
  619. local iconButtons = {}
  620. local tabFrames = {}
  621. local currentTab = nil
  622. local centerPos = UDim2.new(0.5, 0, 0.5, 0)
  623.  
  624. local function createIconButton(iconName, tabName)
  625. local icon = getIcon(iconName)
  626. if not icon then
  627. return nil
  628. end
  629.  
  630. local btn = Instance.new("ImageButton")
  631. btn.Size = UDim2.new(0, 30, 0, 30)
  632. btn.BackgroundTransparency = 1
  633. btn.AutoButtonColor = false
  634. btn.AnchorPoint = Vector2.new(0.5, 0.5)
  635.  
  636. local iconImg = Instance.new("ImageLabel")
  637. iconImg.Size = UDim2.new(0, 20, 0, 20)
  638. iconImg.Position = UDim2.new(0.5, -10, 0.5, -10)
  639. iconImg.BackgroundTransparency = 1
  640. iconImg.Image = getAssetUri(icon.id)
  641. iconImg.ImageRectSize = icon.imageRectSize
  642. iconImg.ImageRectOffset = icon.imageRectOffset
  643. iconImg.ImageColor3 = originalColor
  644. iconImg.ImageTransparency = 1
  645. iconImg.Parent = btn
  646.  
  647. local _bCrnr = Instance.new("UICorner")
  648. _bCrnr.CornerRadius = UDim.new(0, 4)
  649. _bCrnr.Parent = btn
  650.  
  651. local _stroke = Instance.new("UIStroke")
  652. _stroke.Color = Color3.fromRGB(40, 40, 40)
  653. _stroke.Thickness = 1
  654. _stroke.Transparency = 1
  655. _stroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  656. _stroke.Parent = btn
  657.  
  658. local sound = Instance.new("Sound")
  659. sound.SoundId = config.buttonSoundId
  660. sound.Volume = 0.5
  661. sound.Parent = btn
  662.  
  663. btn.MouseEnter:Connect(function()
  664. iconImg.ImageColor3 = hoverColor
  665. end)
  666.  
  667. btn.MouseLeave:Connect(function()
  668. if currentTab ~= btn then
  669. iconImg.ImageColor3 = originalColor
  670. end
  671. end)
  672.  
  673. btn.Parent = _topBar
  674. btn.Position = centerPos
  675.  
  676. local tabFrame = Instance.new("Frame")
  677. tabFrame.Name = tabName
  678. tabFrame.Size = UDim2.new(1, -20, 0, 0)
  679. tabFrame.AutomaticSize = Enum.AutomaticSize.Y
  680. tabFrame.BackgroundTransparency = 1
  681. tabFrame.Visible = false
  682. tabFrame.Parent = _scrlfrm
  683.  
  684. local columns = Instance.new("Frame")
  685. columns.Name = "Columns"
  686. columns.Size = UDim2.new(1, 0, 1, 0)
  687. columns.BackgroundTransparency = 1
  688. columns.Parent = tabFrame
  689.  
  690. local leftColumn = Instance.new("Frame")
  691. leftColumn.Name = "Left"
  692. leftColumn.Size = UDim2.new(0.48, 0, 1, 0)
  693. leftColumn.Position = UDim2.new(0, 0, 0, 0)
  694. leftColumn.BackgroundTransparency = 1
  695. leftColumn.Parent = columns
  696.  
  697. local leftList = Instance.new("UIListLayout")
  698. leftList.SortOrder = Enum.SortOrder.LayoutOrder
  699. leftList.Padding = UDim.new(0, 8)
  700. leftList.Parent = leftColumn
  701.  
  702. local leftPad = Instance.new("UIPadding")
  703. leftPad.PaddingTop = UDim.new(0, 10)
  704. leftPad.PaddingBottom = UDim.new(0, 10)
  705. leftPad.PaddingLeft = UDim.new(0, 10)
  706. leftPad.PaddingRight = UDim.new(0, 10)
  707. leftPad.Parent = leftColumn
  708.  
  709. local rightColumn = Instance.new("Frame")
  710. rightColumn.Name = "Right"
  711. rightColumn.Size = UDim2.new(0.48, 0, 1, 0)
  712. rightColumn.Position = UDim2.new(0.52, 0, 0, 0)
  713. rightColumn.BackgroundTransparency = 1
  714. rightColumn.Parent = columns
  715.  
  716. local rightList = Instance.new("UIListLayout")
  717. rightList.SortOrder = Enum.SortOrder.LayoutOrder
  718. rightList.Padding = UDim.new(0, 8)
  719. rightList.Parent = rightColumn
  720.  
  721. local rightPad = Instance.new("UIPadding")
  722. rightPad.PaddingTop = UDim.new(0, 10)
  723. rightPad.PaddingBottom = UDim.new(0, 10)
  724. rightPad.PaddingLeft = UDim.new(0, 10)
  725. rightPad.PaddingRight = UDim.new(0, 10)
  726. rightPad.Parent = rightColumn
  727.  
  728. table.insert(iconButtons, btn)
  729. table.insert(tabFrames, tabFrame)
  730.  
  731. btn.Activated:Connect(function()
  732. if currentTab ~= btn then
  733. sound:Play()
  734. if currentTab then
  735. local prevIconImg = currentTab:FindFirstChildOfClass("ImageLabel")
  736. if prevIconImg then
  737. prevIconImg.ImageColor3 = originalColor
  738. end
  739. local prevIndex = table.find(iconButtons, currentTab)
  740. if prevIndex then
  741. tabFrames[prevIndex].Visible = false
  742. end
  743. end
  744. currentTab = btn
  745. iconImg.ImageColor3 = hoverColor
  746. local thisIndex = table.find(iconButtons, btn)
  747. if thisIndex then
  748. tabFrames[thisIndex].Visible = true
  749. end
  750. end
  751. end)
  752.  
  753. return btn
  754. end
  755.  
  756. function playAnimations(fadeIn)
  757. if fadeIn then
  758. _blurFrame.BackgroundTransparency = 1
  759. _topBar.BackgroundTransparency = 1
  760. _strokeBar.Transparency = 1
  761. _timebox.BackgroundTransparency = 1
  762. _timeboxStroke.Transparency = 1
  763. _timeboxlabel.TextTransparency = 1
  764. _executorbox.BackgroundTransparency = 1
  765. _executorboxStroke.Transparency = 1
  766. _executorboxlabel.TextTransparency = 1
  767. _fpsbox.BackgroundTransparency = 1
  768. _fpsboxStroke.Transparency = 1
  769. _fpslabel.TextTransparency = 1
  770. _leftBar.BackgroundTransparency = 1
  771. _leftBarStroke.Transparency = 1
  772. _usernameLabel.TextTransparency = 1
  773. _scrlfrm.BackgroundTransparency = 1
  774. _mf.BackgroundTransparency = 1
  775. _title.TextTransparency = 1
  776. _version.TextTransparency = 1
  777. _divider.BackgroundTransparency = 1
  778. _blurEffect.Size = 0
  779. _iconList.Parent = nil
  780.  
  781. for i, btn in ipairs(iconButtons) do
  782. btn.AnchorPoint = Vector2.new(0.5, 0.5)
  783. btn.Position = centerPos
  784. local iconImg = btn:FindFirstChildOfClass("ImageLabel")
  785. local stroke = btn:FindFirstChildOfClass("UIStroke")
  786. if iconImg then
  787. iconImg.ImageTransparency = 1
  788. end
  789. if stroke then
  790. stroke.Transparency = 1
  791. end
  792. end
  793.  
  794. TweenService:Create(
  795. _blurEffect,
  796. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  797. {Size = 24}
  798. ):Play()
  799.  
  800. TweenService:Create(
  801. _blurFrame,
  802. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  803. {BackgroundTransparency = 0.5}
  804. ):Play()
  805.  
  806. task.wait(0.3)
  807.  
  808. TweenService:Create(
  809. _topBar,
  810. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  811. {BackgroundTransparency = 0}
  812. ):Play()
  813.  
  814. TweenService:Create(
  815. _strokeBar,
  816. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  817. {Transparency = 0}
  818. ):Play()
  819.  
  820. task.wait(0.3)
  821.  
  822. local buttonAnimationTime = 0
  823. for i, btn in ipairs(iconButtons) do
  824. local iconImg = btn:FindFirstChildOfClass("ImageLabel")
  825. local stroke = btn:FindFirstChildOfClass("UIStroke")
  826. local sound = btn:FindFirstChildOfClass("Sound")
  827. local targetPos = UDim2.new(0, 28 + (i - 1) * (30 + 6), 0.5, 0)
  828. local tween = TweenService:Create(
  829. btn,
  830. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  831. {Position = targetPos}
  832. )
  833. if iconImg then
  834. TweenService:Create(
  835. iconImg,
  836. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  837. {ImageTransparency = 0}
  838. ):Play()
  839. end
  840. if stroke then
  841. TweenService:Create(
  842. stroke,
  843. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  844. {Transparency = 0}
  845. ):Play()
  846. end
  847. if sound then
  848. tween.Completed:Connect(function()
  849. sound:Play()
  850. end)
  851. end
  852. tween:Play()
  853. task.wait(0.1)
  854. buttonAnimationTime = buttonAnimationTime + 0.1
  855. end
  856.  
  857. task.wait(0.2)
  858.  
  859. local mfTween = TweenService:Create(
  860. _mf,
  861. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  862. {BackgroundTransparency = 0}
  863. )
  864.  
  865. mfTween.Completed:Connect(function()
  866. local ti = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  867.  
  868. function fadeInChildren(obj)
  869. if obj:IsA("Frame") or obj:IsA("ScrollingFrame") then
  870. if obj.Name == "Content" then
  871. obj.BackgroundTransparency = 1
  872. return
  873. end
  874.  
  875. if obj.Name == "Content" and obj.Parent.Name ~= "ScrollingFrame" then
  876. obj.BackgroundTransparency = 1
  877. return
  878. end
  879.  
  880. if obj.Name == "Content" then
  881. obj.BackgroundTransparency = 1
  882. return
  883. end
  884.  
  885. if obj.Name == "Left" or obj.Name == "Right" or obj.Name == "Columns" then
  886. obj.BackgroundTransparency = 1
  887. end
  888.  
  889. if obj.BackgroundTransparency == 1 and not obj:GetAttribute("NoFade") then
  890. TweenService:Create(obj, ti, {BackgroundTransparency = 0}):Play()
  891. end
  892. end
  893.  
  894. if obj:IsA("TextLabel") or obj:IsA("TextButton") then
  895. if obj.TextTransparency == 1 and not obj:GetAttribute("NoFade") then
  896. TweenService:Create(obj, ti, {TextTransparency = 0}):Play()
  897. end
  898. end
  899.  
  900. if obj:IsA("ImageLabel") or obj:IsA("ImageButton") then
  901. if obj.ImageTransparency == 1 and not obj:GetAttribute("NoFade") then
  902. TweenService:Create(obj, ti, {ImageTransparency = 0}):Play()
  903. end
  904. end
  905.  
  906. if obj:IsA("UIStroke") then
  907. if obj.Transparency == 1 and not obj:GetAttribute("NoFade") then
  908. TweenService:Create(obj, ti, {Transparency = 0.5}):Play()
  909. end
  910. end
  911.  
  912. for _, child in ipairs(obj:GetChildren()) do
  913. fadeInChildren(child)
  914. end
  915. end
  916.  
  917. fadeInChildren(_scrlfrm)
  918. end)
  919.  
  920. mfTween:Play()
  921.  
  922. local titleTween = TweenService:Create(
  923. _title,
  924. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  925. {TextTransparency = 0}
  926. )
  927. titleTween.Completed:Connect(function()
  928. local nameWidth = _usernameLabel.TextBounds.X
  929. _leftBar.Size = UDim2.new(0, nameWidth + 20, 0, 40)
  930. end)
  931. titleTween.Completed:Connect(function()
  932. local executorWidth = _executorboxlabel.TextBounds.X
  933. _executorbox.Size = UDim2.new(0, executorWidth + 20, 0, 40)
  934. end)
  935. titleTween.Completed:Connect(function()
  936. local executorWidth = _timeboxlabel.TextBounds.X
  937. _timebox.Size = UDim2.new(0, executorWidth + 20, 0, 40)
  938. end)
  939. titleTween:Play()
  940.  
  941. TweenService:Create(
  942. _version,
  943. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  944. {TextTransparency = 0.25}
  945. ):Play()
  946.  
  947. TweenService:Create(
  948. _divider,
  949. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  950. {BackgroundTransparency = 0}
  951. ):Play()
  952.  
  953. task.wait(buttonAnimationTime)
  954. TweenService:Create(
  955. _timebox,
  956. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  957. {BackgroundTransparency = 0}
  958. ):Play()
  959. TweenService:Create(
  960. _timeboxStroke,
  961. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  962. {Transparency = 0}
  963. ):Play()
  964. TweenService:Create(
  965. _timeboxlabel,
  966. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  967. {TextTransparency = 0}
  968. ):Play()
  969. TweenService:Create(
  970. _executorbox,
  971. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  972. {BackgroundTransparency = 0}
  973. ):Play()
  974. TweenService:Create(
  975. _executorboxStroke,
  976. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  977. {Transparency = 0}
  978. ):Play()
  979. TweenService:Create(
  980. _executorboxlabel,
  981. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  982. {BackgroundTransparency = 0}
  983. ):Play()
  984. TweenService:Create(
  985. _fpsbox,
  986. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  987. {BackgroundTransparency = 0}
  988. ):Play()
  989. TweenService:Create(
  990. _fpsboxStroke,
  991. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  992. {Transparency = 0}
  993. ):Play()
  994. TweenService:Create(
  995. _fpslabel,
  996. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  997. {BackgroundTransparency = 0}
  998. ):Play()
  999.  
  1000. TweenService:Create(
  1001. _leftBar,
  1002. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1003. {BackgroundTransparency = 0}
  1004. ):Play()
  1005.  
  1006. TweenService:Create(
  1007. _leftBarStroke,
  1008. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1009. {Transparency = 0}
  1010. ):Play()
  1011.  
  1012. TweenService:Create(
  1013. _usernameLabel,
  1014. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1015. {TextTransparency = 0}
  1016. ):Play()
  1017.  
  1018. task.delay(0.5, function()
  1019. _mf.BackgroundTransparency = 0
  1020. _title.TextTransparency = 0
  1021. _version.TextTransparency = 0.25
  1022. _divider.BackgroundTransparency = 0
  1023. _timebox.BackgroundTransparency = 0
  1024. _timeboxStroke.Transparency = 0
  1025. _timeboxlabel.TextTransparency = 0
  1026. _executorbox.BackgroundTransparency = 0
  1027. _executorboxStroke.Transparency = 0
  1028. _executorboxlabel.TextTransparency = 0
  1029. _fpsbox.BackgroundTransparency = 0
  1030. _fpsboxStroke.Transparency = 0
  1031. _fpslabel.TextTransparency = 0
  1032. _leftBar.BackgroundTransparency = 0
  1033. _leftBarStroke.Transparency = 0
  1034. _usernameLabel.TextTransparency = 0
  1035. _iconList.Parent = _topBar
  1036. for _, btn in ipairs(iconButtons) do
  1037. btn.Position = UDim2.new(0, 0, 0, 0)
  1038. btn.AnchorPoint = Vector2.new(0, 0)
  1039. end
  1040. end)
  1041. else
  1042. TweenService:Create(
  1043. _blurEffect,
  1044. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1045. {Size = 0}
  1046. ):Play()
  1047.  
  1048. TweenService:Create(
  1049. _blurFrame,
  1050. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1051. {BackgroundTransparency = 1}
  1052. ):Play()
  1053.  
  1054. TweenService:Create(
  1055. _topBar,
  1056. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1057. {BackgroundTransparency = 1}
  1058. ):Play()
  1059.  
  1060. TweenService:Create(
  1061. _strokeBar,
  1062. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1063. {Transparency = 1}
  1064. ):Play()
  1065. TweenService:Create(
  1066. _timebox,
  1067. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1068. {BackgroundTransparency = 1}
  1069. ):Play()
  1070. TweenService:Create(
  1071. _timeboxStroke,
  1072. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1073. {Transparency = 1}
  1074. ):Play()
  1075. TweenService:Create(
  1076. _timeboxlabel,
  1077. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1078. {TextTransparency = 1}
  1079. ):Play()
  1080. TweenService:Create(
  1081. _executorbox,
  1082. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1083. {BackgroundTransparency = 1}
  1084. ):Play()
  1085. TweenService:Create(
  1086. _executorboxStroke,
  1087. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1088. {Transparency = 1}
  1089. ):Play()
  1090. TweenService:Create(
  1091. _executorboxlabel,
  1092. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1093. {BackgroundTransparency = 1}
  1094. ):Play()
  1095. TweenService:Create(
  1096. _fpsbox,
  1097. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1098. {BackgroundTransparency = 1}
  1099. ):Play()
  1100. TweenService:Create(
  1101. _fpsboxStroke,
  1102. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1103. {Transparency = 1}
  1104. ):Play()
  1105. TweenService:Create(
  1106. _fpslabel,
  1107. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1108. {BackgroundTransparency = 1}
  1109. ):Play()
  1110.  
  1111. TweenService:Create(
  1112. _leftBar,
  1113. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1114. {BackgroundTransparency = 1}
  1115. ):Play()
  1116.  
  1117. TweenService:Create(
  1118. _leftBarStroke,
  1119. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1120. {Transparency = 1}
  1121. ):Play()
  1122.  
  1123. TweenService:Create(
  1124. _usernameLabel,
  1125. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1126. {TextTransparency = 1}
  1127. ):Play()
  1128.  
  1129. TweenService:Create(
  1130. _mf,
  1131. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1132. {BackgroundTransparency = 1}
  1133. ):Play()
  1134.  
  1135. TweenService:Create(
  1136. _title,
  1137. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1138. {TextTransparency = 1}
  1139. ):Play()
  1140.  
  1141. TweenService:Create(
  1142. _version,
  1143. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1144. {TextTransparency = 1}
  1145. ):Play()
  1146.  
  1147. TweenService:Create(
  1148. _divider,
  1149. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1150. {BackgroundTransparency = 1}
  1151. ):Play()
  1152.  
  1153. for i, btn in ipairs(iconButtons) do
  1154. local iconImg = btn:FindFirstChildOfClass("ImageLabel")
  1155. local stroke = btn:FindFirstChildOfClass("UIStroke")
  1156. if iconImg then
  1157. TweenService:Create(
  1158. iconImg,
  1159. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1160. {ImageTransparency = 1}
  1161. ):Play()
  1162. end
  1163. if stroke then
  1164. TweenService:Create(
  1165. stroke,
  1166. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1167. {Transparency = 1}
  1168. ):Play()
  1169. end
  1170. end
  1171. end
  1172. end
  1173.  
  1174. for _, tab in ipairs(tabIconsOrdered) do
  1175. createIconButton(tab.icon, tab.name)
  1176. end
  1177.  
  1178. if _visible then
  1179. playAnimations(true)
  1180. if #iconButtons > 0 then
  1181. local btn = iconButtons[1]
  1182. local iconImg = btn:FindFirstChildOfClass("ImageLabel")
  1183. if iconImg then
  1184. iconImg.ImageColor3 = hoverColor
  1185. end
  1186. currentTab = btn
  1187. tabFrames[1].Visible = true
  1188. end
  1189. end
  1190.  
  1191. local _dragging = false
  1192. local _dragInput, _dragStart, _startPos
  1193. local _dragTweenInfo = TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  1194. local _currentTween = nil
  1195. local _leftDragging = false
  1196. local _leftDragInput, _leftDragStart, _leftStartPos
  1197. local _leftCurrentTween = nil
  1198.  
  1199. _top.InputBegan:Connect(function(input)
  1200. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1201. _dragging = true
  1202. _dragStart = input.Position
  1203. _startPos = _mf.Position
  1204. if _currentTween then
  1205. _currentTween:Cancel()
  1206. _currentTween = nil
  1207. end
  1208. input.Changed:Connect(function()
  1209. if input.UserInputState == Enum.UserInputState.End then
  1210. _dragging = false
  1211. if _currentTween then
  1212. _currentTween:Cancel()
  1213. _currentTween = nil
  1214. end
  1215. end
  1216. end)
  1217. end
  1218. end)
  1219.  
  1220. _top.InputChanged:Connect(function(input)
  1221. if input.UserInputType == Enum.UserInputType.MouseMovement then
  1222. _dragInput = input
  1223. end
  1224. end)
  1225.  
  1226. _leftBar.InputBegan:Connect(function(input)
  1227. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1228. _leftDragging = true
  1229. _leftDragStart = input.Position
  1230. _leftStartPos = _leftBar.Position
  1231. if _leftCurrentTween then
  1232. _leftCurrentTween:Cancel()
  1233. _leftCurrentTween = nil
  1234. end
  1235. input.Changed:Connect(function()
  1236. if input.UserInputState == Enum.UserInputState.End then
  1237. _leftDragging = false
  1238. if _leftCurrentTween then
  1239. _leftCurrentTween:Cancel()
  1240. _leftCurrentTween = nil
  1241. end
  1242. end
  1243. end)
  1244. end
  1245. end)
  1246.  
  1247. _leftBar.InputChanged:Connect(function(input)
  1248. if input.UserInputType == Enum.UserInputType.MouseMovement then
  1249. _leftDragInput = input
  1250. end
  1251. end)
  1252.  
  1253. _uis.InputChanged:Connect(function(input)
  1254. if input == _dragInput and _dragging then
  1255. local delta = input.Position - _dragStart
  1256. local targetPos = UDim2.new(
  1257. _startPos.X.Scale,
  1258. _startPos.X.Offset + delta.X,
  1259. _startPos.Y.Scale,
  1260. _startPos.Y.Offset + delta.Y
  1261. )
  1262. if _currentTween then
  1263. _currentTween:Cancel()
  1264. end
  1265. _currentTween = TweenService:Create(_mf, _dragTweenInfo, {Position = targetPos})
  1266. _currentTween:Play()
  1267. elseif input == _leftDragInput and _leftDragging then
  1268. local delta = input.Position - _leftDragStart
  1269. local targetPos = UDim2.new(
  1270. _leftStartPos.X.Scale,
  1271. _leftStartPos.X.Offset + delta.X,
  1272. _leftStartPos.Y.Scale,
  1273. _leftStartPos.Y.Offset + delta.Y
  1274. )
  1275. if _leftCurrentTween then
  1276. _leftCurrentTween:Cancel()
  1277. end
  1278. _leftCurrentTween = TweenService:Create(_leftBar, _dragTweenInfo, {Position = targetPos})
  1279. _leftCurrentTween:Play()
  1280. end
  1281. end)
  1282.  
  1283. _uis.InputBegan:Connect(function(input, gpe)
  1284. if gpe then
  1285. return
  1286. end
  1287. if input.KeyCode == Enum.KeyCode.P then
  1288. _visible = not _visible
  1289. _scrlfrm.Visible = _visible
  1290. _blurFrame.Visible = _visible
  1291. _topBar.Visible = _visible
  1292. _timebox.Visible = _visible
  1293. _executorbox.Visible = _visible
  1294. _fpsbox.Visible = _visible
  1295. _leftBar.Visible = _visible
  1296. _mf.Visible = _visible
  1297. playAnimations(_visible)
  1298. end
  1299. end)
  1300.  
  1301. local lib = {}
  1302.  
  1303. local function getTabFrame(tabName)
  1304. for i, tab in ipairs(tabIconsOrdered) do
  1305. if tab.name == tabName then
  1306. return tabFrames[i]
  1307. end
  1308. end
  1309. return nil
  1310. end
  1311.  
  1312. local function fadeInElement(gui)
  1313. local ti = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  1314.  
  1315. local function recurse(obj)
  1316. if obj:IsA("Frame") or obj:IsA("ScrollingFrame") then
  1317. if obj.BackgroundTransparency == 1 and not obj:GetAttribute("NoFade") then
  1318. TweenService:Create(obj, ti, {BackgroundTransparency = 0}):Play()
  1319. end
  1320. end
  1321. if obj:IsA("TextLabel") or obj:IsA("TextButton") then
  1322. if obj.TextTransparency == 1 and not obj:GetAttribute("NoFade") then
  1323. TweenService:Create(obj, ti, {TextTransparency = 0}):Play()
  1324. end
  1325. end
  1326. if obj:IsA("ImageLabel") or obj:IsA("ImageButton") then
  1327. if obj.ImageTransparency == 1 and not obj:GetAttribute("NoFade") then
  1328. TweenService:Create(obj, ti, {ImageTransparency = 0}):Play()
  1329. end
  1330. end
  1331. for _, st in ipairs(obj:GetChildren()) do
  1332. if st:IsA("UIStroke") then
  1333. if st.Transparency == 1 and not st:GetAttribute("NoFade") then
  1334. TweenService:Create(st, ti, {Transparency = 0.5}):Play()
  1335. end
  1336. end
  1337. end
  1338. for _, child in ipairs(obj:GetChildren()) do
  1339. recurse(child)
  1340. end
  1341. end
  1342.  
  1343. recurse(gui)
  1344. end
  1345.  
  1346. local function createSection(tabName, side, sectionTitle, sizeType)
  1347. local tabFrame = getTabFrame(tabName)
  1348. if not tabFrame then return nil end
  1349.  
  1350. local columnName = side == "left" and "Left" or "Right"
  1351. local column = tabFrame.Columns:FindFirstChild(columnName)
  1352. if not column then return nil end
  1353.  
  1354. local sizes = {
  1355. LongBox = {Height = 200, ContentHeight = 170},
  1356. ShortBox = {Height = 100, ContentHeight = 100},
  1357. BigBox = {Height = 300, ContentHeight = 270},
  1358. SmallBox = {Height = 50, ContentHeight = 20}
  1359. }
  1360.  
  1361. local sizeConfig = sizes[sizeType] or {Height = 150, ContentHeight = 120}
  1362.  
  1363. local section = Instance.new("Frame")
  1364. section.Size = UDim2.new(1, 0, 0, sizeConfig.Height)
  1365. section.BackgroundColor3 = Color3.fromRGB(3, 3, 3)
  1366. section.BackgroundTransparency = 1
  1367. section.BorderSizePixel = 0
  1368. section.Parent = column
  1369.  
  1370. local gradient = Instance.new("UIGradient")
  1371. gradient.Color = ColorSequence.new({
  1372. ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)),
  1373. ColorSequenceKeypoint.new(1, config.accentcolor:Lerp(Color3.fromRGB(20, 20, 20), 0.7))
  1374. })
  1375. gradient.Rotation = 90
  1376. gradient.Transparency = NumberSequence.new({
  1377. NumberSequenceKeypoint.new(0, 0.8),
  1378. NumberSequenceKeypoint.new(1, 0.8)
  1379. })
  1380. gradient.Parent = section
  1381.  
  1382. local secCorner = Instance.new("UICorner")
  1383. secCorner.CornerRadius = UDim.new(0, 8)
  1384. secCorner.Parent = section
  1385.  
  1386. local secStroke = Instance.new("UIStroke")
  1387. secStroke.Color = config.accentcolor:Lerp(Color3.fromRGB(100, 100, 100), 0.5)
  1388. secStroke.Thickness = 1.5
  1389. secStroke.Transparency = 1
  1390. secStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1391. secStroke.Parent = section
  1392.  
  1393. local title = Instance.new("TextLabel")
  1394. title.Size = UDim2.new(1, -10, 0, 20)
  1395. title.Position = UDim2.new(0, 5, 0, 5)
  1396. title.BackgroundTransparency = 1
  1397. title.Text = sectionTitle or ""
  1398. title.TextColor3 = Color3.new(1, 1, 1)
  1399. title.TextTransparency = 1
  1400. title.Font = Enum.Font.GothamBold
  1401. title.TextSize = 14
  1402. title.TextXAlignment = Enum.TextXAlignment.Left
  1403. title.Parent = section
  1404.  
  1405. local contentFrame = Instance.new("Frame")
  1406. contentFrame.Name = "Content"
  1407. contentFrame.Size = UDim2.new(1, -10, 0, sizeConfig.ContentHeight)
  1408. contentFrame.Position = UDim2.new(0, 5, 0, 30)
  1409. contentFrame.BackgroundTransparency = 1
  1410. contentFrame.BorderSizePixel = 0
  1411. contentFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  1412. contentFrame.Parent = section
  1413. contentFrame:SetAttribute("NoFade", true)
  1414.  
  1415. local contList = Instance.new("UIListLayout")
  1416. contList.SortOrder = Enum.SortOrder.LayoutOrder
  1417. contList.Padding = UDim.new(0, 8)
  1418. contList.Parent = contentFrame
  1419.  
  1420. local contPad = Instance.new("UIPadding")
  1421. contPad.PaddingLeft = UDim.new(0, 5)
  1422. contPad.PaddingRight = UDim.new(0, 5)
  1423. contPad.PaddingTop = UDim.new(0, 5)
  1424. contPad.PaddingBottom = UDim.new(0, 5)
  1425. contPad.Parent = contentFrame
  1426.  
  1427. fadeInElement(section)
  1428.  
  1429. return contentFrame
  1430. end
  1431.  
  1432. function lib:CreateLeftLongBox(tabName, sectionTitle)
  1433. return createSection(tabName, "left", sectionTitle, "LongBox")
  1434. end
  1435.  
  1436. function lib:CreateRightLongBox(tabName, sectionTitle)
  1437. return createSection(tabName, "right", sectionTitle, "LongBox")
  1438. end
  1439.  
  1440. function lib:CreateLeftShortBox(tabName, sectionTitle)
  1441. return createSection(tabName, "left", sectionTitle, "ShortBox")
  1442. end
  1443.  
  1444. function lib:CreateRightShortBox(tabName, sectionTitle)
  1445. return createSection(tabName, "right", sectionTitle, "ShortBox")
  1446. end
  1447.  
  1448. function lib:CreateLeftBigBox(tabName, sectionTitle)
  1449. return createSection(tabName, "left", sectionTitle, "BigBox")
  1450. end
  1451.  
  1452. function lib:CreateRightBigBox(tabName, sectionTitle)
  1453. return createSection(tabName, "right", sectionTitle, "BigBox")
  1454. end
  1455.  
  1456. function lib:CreateLeftSmallBox(tabName, sectionTitle)
  1457. return createSection(tabName, "left", sectionTitle, "SmallBox")
  1458. end
  1459.  
  1460. function lib:CreateRightSmallBox(tabName, sectionTitle)
  1461. return createSection(tabName, "right", sectionTitle, "SmallBox")
  1462. end
  1463.  
  1464. function lib:CreateToggle(parent, toggleText, default, callback)
  1465. local toggleFrame = Instance.new("Frame")
  1466. toggleFrame.Size = UDim2.new(1, -10, 0, 32)
  1467. toggleFrame.BackgroundTransparency = 1
  1468. toggleFrame.Parent = parent
  1469.  
  1470. local gradient = Instance.new("UIGradient")
  1471. gradient.Color = ColorSequence.new({
  1472. ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)),
  1473. ColorSequenceKeypoint.new(1, config.accentcolor:Lerp(Color3.fromRGB(20, 20, 20), 0.7))
  1474. })
  1475. gradient.Rotation = 90
  1476. gradient.Parent = toggleFrame
  1477.  
  1478. local togCorner = Instance.new("UICorner")
  1479. togCorner.CornerRadius = UDim.new(0, 8)
  1480. togCorner.Parent = toggleFrame
  1481.  
  1482. local togStroke = Instance.new("UIStroke")
  1483. togStroke.Color = config.accentcolor:Lerp(Color3.fromRGB(80, 80, 80), 0.6)
  1484. togStroke.Thickness = 1
  1485. togStroke.Transparency = 1
  1486. togStroke.Parent = toggleFrame
  1487.  
  1488. local switchBg = Instance.new("Frame")
  1489. switchBg.Size = UDim2.new(0, 46, 0, 24)
  1490. switchBg.Position = UDim2.new(1, -56, 0.5, -12)
  1491. switchBg.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1492. switchBg.BorderSizePixel = 0
  1493. switchBg.Parent = toggleFrame
  1494.  
  1495. local switchCorner = Instance.new("UICorner")
  1496. switchCorner.CornerRadius = UDim.new(1, 0)
  1497. switchCorner.Parent = switchBg
  1498.  
  1499. local switchStroke = Instance.new("UIStroke")
  1500. switchStroke.Color = Color3.fromRGB(60, 60, 60)
  1501. switchStroke.Thickness = 1
  1502. switchStroke.Parent = switchBg
  1503.  
  1504. local knob = Instance.new("Frame")
  1505. knob.Size = UDim2.new(0, 20, 0, 20)
  1506. knob.Position = UDim2.new(0, 2, 0.5, -10)
  1507. knob.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
  1508. knob.BorderSizePixel = 0
  1509. knob.Parent = switchBg
  1510.  
  1511. local knobCorner = Instance.new("UICorner")
  1512. knobCorner.CornerRadius = UDim.new(1, 0)
  1513. knobCorner.Parent = knob
  1514.  
  1515. local textLab = Instance.new("TextLabel")
  1516. textLab.Size = UDim2.new(1, -70, 1, 0)
  1517. textLab.Position = UDim2.new(0, 8, 0, 0)
  1518. textLab.BackgroundTransparency = 1
  1519. textLab.Text = toggleText
  1520. textLab.TextColor3 = Color3.new(1, 1, 1)
  1521. textLab.TextTransparency = 1
  1522. textLab.Font = Enum.Font.Gotham
  1523. textLab.TextSize = 14
  1524. textLab.TextXAlignment = Enum.TextXAlignment.Left
  1525. textLab.Parent = toggleFrame
  1526.  
  1527. local button = Instance.new("TextButton")
  1528. button.Size = UDim2.new(1, 0, 1, 0)
  1529. button.BackgroundTransparency = 1
  1530. button.Text = ""
  1531. button.Parent = toggleFrame
  1532.  
  1533. local state = default or false
  1534.  
  1535. local function updateToggle(instant)
  1536. local ti = instant and TweenInfo.new(0) or TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
  1537.  
  1538. if state then
  1539. TweenService:Create(switchBg, ti, {BackgroundColor3 = config.accentcolor}):Play()
  1540. TweenService:Create(knob, ti, {Position = UDim2.new(1, -22, 0.5, -10)}):Play()
  1541. TweenService:Create(knob, ti, {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  1542. else
  1543. TweenService:Create(switchBg, ti, {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}):Play()
  1544. TweenService:Create(knob, ti, {Position = UDim2.new(0, 2, 0.5, -10)}):Play()
  1545. TweenService:Create(knob, ti, {BackgroundColor3 = Color3.fromRGB(220, 220, 220)}):Play()
  1546. end
  1547.  
  1548. if callback then callback(state) end
  1549. end
  1550.  
  1551. updateToggle(true)
  1552.  
  1553. button.Activated:Connect(function()
  1554. state = not state
  1555. updateToggle()
  1556. end)
  1557.  
  1558. button.MouseEnter:Connect(function()
  1559. TweenService:Create(toggleFrame, TweenInfo.new(0.2), {BackgroundTransparency = 0.85}):Play()
  1560. end)
  1561. button.MouseLeave:Connect(function()
  1562. TweenService:Create(toggleFrame, TweenInfo.new(0.2), {BackgroundTransparency = 1}):Play()
  1563. end)
  1564.  
  1565. fadeInElement(toggleFrame)
  1566. return {
  1567. Element = toggleFrame,
  1568. Set = function(v)
  1569. state = v
  1570. updateToggle()
  1571. end
  1572. }
  1573. end
  1574.  
  1575. function lib:CreateButton(parent, buttonText, callback)
  1576. local buttonFrame = Instance.new("Frame")
  1577. buttonFrame.Size = UDim2.new(1, -10, 0, 32)
  1578. buttonFrame.BackgroundTransparency = 1
  1579. buttonFrame.Parent = parent
  1580.  
  1581. local gradient = Instance.new("UIGradient")
  1582. gradient.Color = ColorSequence.new({
  1583. ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)),
  1584. ColorSequenceKeypoint.new(1, config.accentcolor:Lerp(Color3.fromRGB(20, 20, 20), 0.7))
  1585. })
  1586. gradient.Rotation = 90
  1587. gradient.Parent = buttonFrame
  1588.  
  1589. local btnCorner = Instance.new("UICorner")
  1590. btnCorner.CornerRadius = UDim.new(0, 8)
  1591. btnCorner.Parent = buttonFrame
  1592.  
  1593. local btnStroke = Instance.new("UIStroke")
  1594. btnStroke.Color = config.accentcolor:Lerp(Color3.fromRGB(80, 80, 80), 0.6)
  1595. btnStroke.Thickness = 1
  1596. btnStroke.Transparency = 1
  1597. btnStroke.Parent = buttonFrame
  1598.  
  1599. local textLab = Instance.new("TextLabel")
  1600. textLab.Size = UDim2.new(1, -10, 1, 0)
  1601. textLab.Position = UDim2.new(0, 5, 0, 0)
  1602. textLab.BackgroundTransparency = 1
  1603. textLab.Text = buttonText
  1604. textLab.TextColor3 = Color3.new(1, 1, 1)
  1605. textLab.TextTransparency = 1
  1606. textLab.Font = Enum.Font.Gotham
  1607. textLab.TextSize = 14
  1608. textLab.TextXAlignment = Enum.TextXAlignment.Center
  1609. textLab.Parent = buttonFrame
  1610.  
  1611. local button = Instance.new("TextButton")
  1612. button.Size = UDim2.new(1, 0, 1, 0)
  1613. button.BackgroundTransparency = 1
  1614. button.Text = ""
  1615. button.Parent = buttonFrame
  1616.  
  1617. button.MouseEnter:Connect(function()
  1618. TweenService:Create(buttonFrame, TweenInfo.new(0.2), {BackgroundTransparency = 0.85}):Play()
  1619. end)
  1620. button.MouseLeave:Connect(function()
  1621. TweenService:Create(buttonFrame, TweenInfo.new(0.2), {BackgroundTransparency = 1}):Play()
  1622. end)
  1623.  
  1624. button.Activated:Connect(function()
  1625. if callback then
  1626. callback()
  1627. end
  1628. end)
  1629.  
  1630. fadeInElement(buttonFrame)
  1631. return {
  1632. Element = buttonFrame
  1633. }
  1634. end
  1635.  
  1636. function lib:CreateSlider(parent, sliderText, minValue, maxValue, defaultValue, callback)
  1637. local sliderFrame = Instance.new("Frame")
  1638. sliderFrame.Size = UDim2.new(1, -10, 0, 38)
  1639. sliderFrame.BackgroundTransparency = 1
  1640. sliderFrame.Parent = parent
  1641.  
  1642. local gradient = Instance.new("UIGradient")
  1643. gradient.Color = ColorSequence.new({
  1644. ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)),
  1645. ColorSequenceKeypoint.new(1, config.accentcolor:Lerp(Color3.fromRGB(20, 20, 20), 0.7))
  1646. })
  1647. gradient.Rotation = 90
  1648. gradient.Parent = sliderFrame
  1649.  
  1650. local sldCorner = Instance.new("UICorner")
  1651. sldCorner.CornerRadius = UDim.new(0, 8)
  1652. sldCorner.Parent = sliderFrame
  1653.  
  1654. local sldStroke = Instance.new("UIStroke")
  1655. sldStroke.Color = config.accentcolor:Lerp(Color3.fromRGB(80, 80, 80), 0.6)
  1656. sldStroke.Thickness = 1
  1657. sldStroke.Transparency = 1
  1658. sldStroke.Parent = sliderFrame
  1659.  
  1660. local textLab = Instance.new("TextLabel")
  1661. textLab.Size = UDim2.new(0.5, 0, 0, 20)
  1662. textLab.Position = UDim2.new(0, 8, 0, 0)
  1663. textLab.BackgroundTransparency = 1
  1664. textLab.Text = sliderText
  1665. textLab.TextColor3 = Color3.new(1, 1, 1)
  1666. textLab.TextTransparency = 1
  1667. textLab.Font = Enum.Font.Gotham
  1668. textLab.TextSize = 14
  1669. textLab.TextXAlignment = Enum.TextXAlignment.Left
  1670. textLab.Parent = sliderFrame
  1671.  
  1672. local valueLab = Instance.new("TextLabel")
  1673. valueLab.Size = UDim2.new(0, 40, 0, 20)
  1674. valueLab.Position = UDim2.new(1, -48, 0, 0)
  1675. valueLab.BackgroundTransparency = 1
  1676. valueLab.Text = tostring(defaultValue or minValue)
  1677. valueLab.TextColor3 = config.accentcolor
  1678. valueLab.TextTransparency = 1
  1679. valueLab.Font = Enum.Font.GothamBold
  1680. valueLab.TextSize = 14
  1681. valueLab.TextXAlignment = Enum.TextXAlignment.Right
  1682. valueLab.Parent = sliderFrame
  1683.  
  1684. local barBg = Instance.new("Frame")
  1685. barBg.Size = UDim2.new(1, -16, 0, 6)
  1686. barBg.Position = UDim2.new(0, 8, 0, 26)
  1687. barBg.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1688. barBg.BorderSizePixel = 0
  1689. barBg.Parent = sliderFrame
  1690.  
  1691. local barCorner = Instance.new("UICorner")
  1692. barCorner.CornerRadius = UDim.new(0, 3)
  1693. barCorner.Parent = barBg
  1694.  
  1695. local fillBar = Instance.new("Frame")
  1696. fillBar.Size = UDim2.new(0, 0, 1, 0)
  1697. fillBar.BackgroundColor3 = config.accentcolor
  1698. fillBar.BorderSizePixel = 0
  1699. fillBar.Parent = barBg
  1700.  
  1701. local fillCorner = Instance.new("UICorner")
  1702. fillCorner.CornerRadius = UDim.new(0, 3)
  1703. fillCorner.Parent = fillBar
  1704.  
  1705. local knob = Instance.new("Frame")
  1706. knob.Size = UDim2.new(0, 14, 0, 14)
  1707. knob.Position = UDim2.new(0, 0, 0.5, -7)
  1708. knob.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1709. knob.BorderSizePixel = 0
  1710. knob.ZIndex = 2
  1711. knob.Parent = barBg
  1712.  
  1713. local knobCorner = Instance.new("UICorner")
  1714. knobCorner.CornerRadius = UDim.new(1, 0)
  1715. knobCorner.Parent = knob
  1716.  
  1717. local knobStroke = Instance.new("UIStroke")
  1718. knobStroke.Color = config.accentcolor
  1719. knobStroke.Thickness = 2
  1720. knobStroke.Parent = knob
  1721.  
  1722. local button = Instance.new("TextButton")
  1723. button.Size = UDim2.new(1, 0, 1, 0)
  1724. button.BackgroundTransparency = 1
  1725. button.Text = ""
  1726. button.Parent = sliderFrame
  1727.  
  1728. local currentValue = defaultValue or minValue
  1729. local range = maxValue - minValue
  1730.  
  1731. local function updateSlider(value, noCallback)
  1732. currentValue = math.clamp(value, minValue, maxValue)
  1733. local ratio = (currentValue - minValue) / range
  1734.  
  1735. TweenService:Create(fillBar, TweenInfo.new(0.15, Enum.EasingStyle.Sine), {Size = UDim2.new(ratio, 0, 1, 0)}):Play()
  1736. TweenService:Create(knob, TweenInfo.new(0.15, Enum.EasingStyle.Sine), {Position = UDim2.new(ratio, -7, 0.5, -7)}):Play()
  1737.  
  1738. valueLab.Text = tostring(math.floor(currentValue))
  1739. if callback and not noCallback then
  1740. callback(currentValue)
  1741. end
  1742. end
  1743.  
  1744. updateSlider(currentValue, true)
  1745.  
  1746. local dragging = false
  1747. button.InputBegan:Connect(function(input)
  1748. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1749. dragging = true
  1750. local barPos = barBg.AbsolutePosition.X
  1751. local barWidth = barBg.AbsoluteSize.X
  1752. local ratio = math.clamp((input.Position.X - barPos) / barWidth, 0, 1)
  1753. updateSlider(minValue + ratio * range)
  1754. end
  1755. end)
  1756.  
  1757. button.InputEnded:Connect(function(input)
  1758. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1759. dragging = false
  1760. end
  1761. end)
  1762.  
  1763. _uis.InputChanged:Connect(function(input)
  1764. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  1765. local barPos = barBg.AbsolutePosition.X
  1766. local barWidth = barBg.AbsoluteSize.X
  1767. local ratio = math.clamp((input.Position.X - barPos) / barWidth, 0, 1)
  1768. updateSlider(minValue + ratio * range)
  1769. end
  1770. end)
  1771.  
  1772. fadeInElement(sliderFrame)
  1773.  
  1774. return {
  1775. Element = sliderFrame,
  1776. Set = function(newValue)
  1777. updateSlider(newValue)
  1778. end
  1779. }
  1780. end
  1781.  
  1782. return lib
  1783. end
  1784. return mys_custom_ui
RAW Paste Data Copied