Guest

wwwwwwwwwwwererrrr

Apr 14th, 2026
6
0
Never
Not a member of GistPad yet? Sign Up, it unlocks many cool features!
None 146.53 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 leftX = _leftBar.Position.X.Offset
  461. local leftWidth = _leftBar.Size.X.Offset
  462.  
  463. local fpsX = leftX + leftWidth + 10
  464.  
  465. _fpsbox.Position = UDim2.new(0, fpsX, 0, 20)
  466.  
  467. _executorbox.Position = UDim2.new(0, fpsX + _fpsbox.Size.X.Offset + 20, 0, 20)
  468.  
  469. local _timebox = Instance.new("Frame")
  470. _timebox.Size = UDim2.new(0, 65, 0, 40)
  471. _timebox.Position = UDim2.new(0, 20, 0, 65)
  472. _timebox.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  473. _timebox.BorderSizePixel = 0
  474. _timebox.Visible = _visible
  475. _timebox.BackgroundTransparency = 1
  476. _timebox.Parent = _uiContainer
  477. local _timeboxStroke = Instance.new("UIStroke")
  478. _timeboxStroke.Color = Color3.fromRGB(100, 100, 100)
  479. _timeboxStroke.Thickness = 0.6
  480. _timeboxStroke.Transparency = 1
  481. _timeboxStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  482. _timeboxStroke.Parent = _timebox
  483. local _timeboxCorner = Instance.new("UICorner")
  484. _timeboxCorner.CornerRadius = UDim.new(0, 4)
  485. _timeboxCorner.Parent = _timebox
  486. local _timeboxlabel = Instance.new("TextLabel")
  487. _timeboxlabel.Size = UDim2.new(1, -20, 1, 0)
  488. _timeboxlabel.Position = UDim2.new(0, 10, 0, 0)
  489. _timeboxlabel.BackgroundTransparency = 1
  490. _timeboxlabel.TextColor3 = config.accentcolor
  491. _timeboxlabel.TextTransparency = 0
  492. _timeboxlabel.Font = Enum.Font.GothamBold
  493. _timeboxlabel.TextSize = 16
  494. _timeboxlabel.TextXAlignment = Enum.TextXAlignment.Left
  495. _timeboxlabel.Parent = _timebox
  496. local function updateTime()
  497. local currentTime = os.date("*t")
  498. local hour = currentTime.hour
  499. local minute = currentTime.min
  500. local ampm = hour >= 12 and "PM" or "AM"
  501. if hour == 0 then
  502. hour = 12
  503. elseif hour > 12 then
  504. hour = hour - 12
  505. end
  506. _timeboxlabel.BackgroundTransparency = 1
  507. _timeboxlabel.Text = string.format("%d:%02d %s", hour, minute, ampm)
  508. end
  509. updateTime()
  510. task.spawn(function()
  511. while true do
  512. updateTime()
  513. task.wait()
  514. end
  515. end)
  516. local _timeboxDragging = false
  517. local _timeboxDragStart
  518. local _timeboxStartPos
  519. local _timeboxDragInput
  520. local _timeboxTargetPos = _timebox.Position
  521. local _timeboxLerpSpeed = 0.05
  522. _timebox.InputBegan:Connect(function(input)
  523. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  524. _timeboxDragging = true
  525. _timeboxDragStart = input.Position
  526. _timeboxStartPos = _timebox.Position
  527. end
  528. end)
  529. _timebox.InputChanged:Connect(function(input)
  530. if input.UserInputType == Enum.UserInputType.MouseMovement then
  531. _timeboxDragInput = input
  532. end
  533. end)
  534. _timebox.InputEnded:Connect(function(input)
  535. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  536. _timeboxDragging = false
  537. end
  538. end)
  539. _run.RenderStepped:Connect(function()
  540. if _timeboxDragging and _timeboxDragInput then
  541. local delta = _timeboxDragInput.Position - _timeboxDragStart
  542. _timeboxTargetPos = _timeboxStartPos + UDim2.new(0, delta.X, 0, delta.Y)
  543. end
  544. _timebox.Position = _timebox.Position:Lerp(_timeboxTargetPos, _timeboxLerpSpeed)
  545. end)
  546.  
  547. local _iconList = Instance.new("UIListLayout")
  548. _iconList.FillDirection = Enum.FillDirection.Horizontal
  549. _iconList.HorizontalAlignment = Enum.HorizontalAlignment.Center
  550. _iconList.VerticalAlignment = Enum.VerticalAlignment.Center
  551. _iconList.Padding = UDim.new(0, 6)
  552. _iconList.Parent = _topBar
  553.  
  554. local function loadIcons(url)
  555. local success, result = pcall(function()
  556. return game:HttpGet(url, true)
  557. end)
  558. if not success then
  559. return {}
  560. elseif not result then
  561. return {}
  562. end
  563. local chunk, err = loadstring(result)
  564. if not chunk then
  565. return {}
  566. end
  567. local ok, data = pcall(chunk)
  568. if not ok then
  569. return {}
  570. elseif not data then
  571. return {}
  572. end
  573. return data
  574. end
  575.  
  576.  
  577. local function getIcon(name)
  578. if not Icons or not Icons["48px"] then
  579. return nil
  580. end
  581. name = string.match(string.lower(name), "^%s*(.-)%s*$") or ""
  582. local r = Icons["48px"][name]
  583. if not r then
  584. return nil
  585. end
  586. local id, sizeTbl, offsetTbl = r[1], r[2], r[3]
  587. if type(id) ~= "number" or type(sizeTbl) ~= "table" or type(offsetTbl) ~= "table" then
  588. return nil
  589. end
  590. return {
  591. id = id,
  592. imageRectSize = Vector2.new(sizeTbl[1], sizeTbl[2]),
  593. imageRectOffset = Vector2.new(offsetTbl[1], offsetTbl[2])
  594. }
  595. end
  596.  
  597. local function getAssetUri(id)
  598. if type(id) ~= "number" then
  599. return "rbxassetid://0"
  600. end
  601. return "rbxassetid://" .. id
  602. end
  603.  
  604. local originalColor = config.accentcolor
  605. local hoverColor = Color3.new(
  606. math.clamp(originalColor.R + 0.2, 0, 1),
  607. math.clamp(originalColor.G + 0.2, 0, 1),
  608. math.clamp(originalColor.B + 0.2, 0, 1)
  609. )
  610.  
  611. local iconButtons = {}
  612. local tabFrames = {}
  613. local currentTab = nil
  614. local centerPos = UDim2.new(0.5, 0, 0.5, 0)
  615.  
  616. local function createIconButton(iconName, tabName)
  617. local icon = getIcon(iconName)
  618. if not icon then
  619. return nil
  620. end
  621.  
  622. local btn = Instance.new("ImageButton")
  623. btn.Size = UDim2.new(0, 30, 0, 30)
  624. btn.BackgroundTransparency = 1
  625. btn.AutoButtonColor = false
  626. btn.AnchorPoint = Vector2.new(0.5, 0.5)
  627.  
  628. local iconImg = Instance.new("ImageLabel")
  629. iconImg.Size = UDim2.new(0, 20, 0, 20)
  630. iconImg.Position = UDim2.new(0.5, -10, 0.5, -10)
  631. iconImg.BackgroundTransparency = 1
  632. iconImg.Image = getAssetUri(icon.id)
  633. iconImg.ImageRectSize = icon.imageRectSize
  634. iconImg.ImageRectOffset = icon.imageRectOffset
  635. iconImg.ImageColor3 = originalColor
  636. iconImg.ImageTransparency = 1
  637. iconImg.Parent = btn
  638.  
  639. local _bCrnr = Instance.new("UICorner")
  640. _bCrnr.CornerRadius = UDim.new(0, 4)
  641. _bCrnr.Parent = btn
  642.  
  643. local _stroke = Instance.new("UIStroke")
  644. _stroke.Color = Color3.fromRGB(40, 40, 40)
  645. _stroke.Thickness = 1
  646. _stroke.Transparency = 1
  647. _stroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  648. _stroke.Parent = btn
  649.  
  650. local sound = Instance.new("Sound")
  651. sound.SoundId = config.buttonSoundId
  652. sound.Volume = 0.5
  653. sound.Parent = btn
  654.  
  655. btn.MouseEnter:Connect(function()
  656. iconImg.ImageColor3 = hoverColor
  657. end)
  658.  
  659. btn.MouseLeave:Connect(function()
  660. if currentTab ~= btn then
  661. iconImg.ImageColor3 = originalColor
  662. end
  663. end)
  664.  
  665. btn.Parent = _topBar
  666. btn.Position = centerPos
  667.  
  668. local tabFrame = Instance.new("Frame")
  669. tabFrame.Name = tabName
  670. tabFrame.Size = UDim2.new(1, -20, 0, 0)
  671. tabFrame.AutomaticSize = Enum.AutomaticSize.Y
  672. tabFrame.BackgroundTransparency = 1
  673. tabFrame.Visible = false
  674. tabFrame.Parent = _scrlfrm
  675.  
  676. local columns = Instance.new("Frame")
  677. columns.Name = "Columns"
  678. columns.Size = UDim2.new(1, 0, 1, 0)
  679. columns.BackgroundTransparency = 1
  680. columns.Parent = tabFrame
  681.  
  682. local leftColumn = Instance.new("Frame")
  683. leftColumn.Name = "Left"
  684. leftColumn.Size = UDim2.new(0.48, 0, 1, 0)
  685. leftColumn.Position = UDim2.new(0, 0, 0, 0)
  686. leftColumn.BackgroundTransparency = 1
  687. leftColumn.Parent = columns
  688.  
  689. local leftList = Instance.new("UIListLayout")
  690. leftList.SortOrder = Enum.SortOrder.LayoutOrder
  691. leftList.Padding = UDim.new(0, 8)
  692. leftList.Parent = leftColumn
  693.  
  694. local leftPad = Instance.new("UIPadding")
  695. leftPad.PaddingTop = UDim.new(0, 10)
  696. leftPad.PaddingBottom = UDim.new(0, 10)
  697. leftPad.PaddingLeft = UDim.new(0, 10)
  698. leftPad.PaddingRight = UDim.new(0, 10)
  699. leftPad.Parent = leftColumn
  700.  
  701. local rightColumn = Instance.new("Frame")
  702. rightColumn.Name = "Right"
  703. rightColumn.Size = UDim2.new(0.48, 0, 1, 0)
  704. rightColumn.Position = UDim2.new(0.52, 0, 0, 0)
  705. rightColumn.BackgroundTransparency = 1
  706. rightColumn.Parent = columns
  707.  
  708. local rightList = Instance.new("UIListLayout")
  709. rightList.SortOrder = Enum.SortOrder.LayoutOrder
  710. rightList.Padding = UDim.new(0, 8)
  711. rightList.Parent = rightColumn
  712.  
  713. local rightPad = Instance.new("UIPadding")
  714. rightPad.PaddingTop = UDim.new(0, 10)
  715. rightPad.PaddingBottom = UDim.new(0, 10)
  716. rightPad.PaddingLeft = UDim.new(0, 10)
  717. rightPad.PaddingRight = UDim.new(0, 10)
  718. rightPad.Parent = rightColumn
  719.  
  720. table.insert(iconButtons, btn)
  721. table.insert(tabFrames, tabFrame)
  722.  
  723. btn.Activated:Connect(function()
  724. if currentTab ~= btn then
  725. sound:Play()
  726. if currentTab then
  727. local prevIconImg = currentTab:FindFirstChildOfClass("ImageLabel")
  728. if prevIconImg then
  729. prevIconImg.ImageColor3 = originalColor
  730. end
  731. local prevIndex = table.find(iconButtons, currentTab)
  732. if prevIndex then
  733. tabFrames[prevIndex].Visible = false
  734. end
  735. end
  736. currentTab = btn
  737. iconImg.ImageColor3 = hoverColor
  738. local thisIndex = table.find(iconButtons, btn)
  739. if thisIndex then
  740. tabFrames[thisIndex].Visible = true
  741. end
  742. end
  743. end)
  744.  
  745. return btn
  746. end
  747.  
  748. function playAnimations(fadeIn)
  749. if fadeIn then
  750. _blurFrame.BackgroundTransparency = 1
  751. _topBar.BackgroundTransparency = 1
  752. _strokeBar.Transparency = 1
  753. _timebox.BackgroundTransparency = 1
  754. _timeboxStroke.Transparency = 1
  755. _timeboxlabel.TextTransparency = 1
  756. _executorbox.BackgroundTransparency = 1
  757. _executorboxStroke.Transparency = 1
  758. _executorboxlabel.TextTransparency = 1
  759. _fpsbox.BackgroundTransparency = 1
  760. _fpsboxStroke.Transparency = 1
  761. _fpslabel.TextTransparency = 1
  762. _leftBar.BackgroundTransparency = 1
  763. _leftBarStroke.Transparency = 1
  764. _usernameLabel.TextTransparency = 1
  765. _scrlfrm.BackgroundTransparency = 1
  766. _mf.BackgroundTransparency = 1
  767. _title.TextTransparency = 1
  768. _version.TextTransparency = 1
  769. _divider.BackgroundTransparency = 1
  770. _blurEffect.Size = 0
  771. _iconList.Parent = nil
  772.  
  773. for i, btn in ipairs(iconButtons) do
  774. btn.AnchorPoint = Vector2.new(0.5, 0.5)
  775. btn.Position = centerPos
  776. local iconImg = btn:FindFirstChildOfClass("ImageLabel")
  777. local stroke = btn:FindFirstChildOfClass("UIStroke")
  778. if iconImg then
  779. iconImg.ImageTransparency = 1
  780. end
  781. if stroke then
  782. stroke.Transparency = 1
  783. end
  784. end
  785.  
  786. TweenService:Create(
  787. _blurEffect,
  788. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  789. {Size = 24}
  790. ):Play()
  791.  
  792. TweenService:Create(
  793. _blurFrame,
  794. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  795. {BackgroundTransparency = 0.5}
  796. ):Play()
  797.  
  798. task.wait(0.3)
  799.  
  800. TweenService:Create(
  801. _topBar,
  802. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  803. {BackgroundTransparency = 0}
  804. ):Play()
  805.  
  806. TweenService:Create(
  807. _strokeBar,
  808. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  809. {Transparency = 0}
  810. ):Play()
  811.  
  812. task.wait(0.3)
  813.  
  814. local buttonAnimationTime = 0
  815. for i, btn in ipairs(iconButtons) do
  816. local iconImg = btn:FindFirstChildOfClass("ImageLabel")
  817. local stroke = btn:FindFirstChildOfClass("UIStroke")
  818. local sound = btn:FindFirstChildOfClass("Sound")
  819. local targetPos = UDim2.new(0, 28 + (i - 1) * (30 + 6), 0.5, 0)
  820. local tween = TweenService:Create(
  821. btn,
  822. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  823. {Position = targetPos}
  824. )
  825. if iconImg then
  826. TweenService:Create(
  827. iconImg,
  828. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  829. {ImageTransparency = 0}
  830. ):Play()
  831. end
  832. if stroke then
  833. TweenService:Create(
  834. stroke,
  835. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  836. {Transparency = 0}
  837. ):Play()
  838. end
  839. if sound then
  840. tween.Completed:Connect(function()
  841. sound:Play()
  842. end)
  843. end
  844. tween:Play()
  845. task.wait(0.1)
  846. buttonAnimationTime = buttonAnimationTime + 0.1
  847. end
  848.  
  849. task.wait(0.2)
  850.  
  851. local mfTween = TweenService:Create(
  852. _mf,
  853. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  854. {BackgroundTransparency = 0}
  855. )
  856.  
  857. mfTween.Completed:Connect(function()
  858. local ti = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  859.  
  860. function fadeInChildren(obj)
  861. if obj:IsA("Frame") or obj:IsA("ScrollingFrame") then
  862. if obj.Name == "Content" then
  863. obj.BackgroundTransparency = 1
  864. return
  865. end
  866.  
  867. if obj.Name == "Content" and obj.Parent.Name ~= "ScrollingFrame" then
  868. obj.BackgroundTransparency = 1
  869. return
  870. end
  871.  
  872. if obj.Name == "Content" then
  873. obj.BackgroundTransparency = 1
  874. return
  875. end
  876.  
  877. if obj.Name == "Left" or obj.Name == "Right" or obj.Name == "Columns" then
  878. obj.BackgroundTransparency = 1
  879. end
  880.  
  881. if obj.BackgroundTransparency == 1 and not obj:GetAttribute("NoFade") then
  882. TweenService:Create(obj, ti, {BackgroundTransparency = 0}):Play()
  883. end
  884. end
  885.  
  886. if obj:IsA("TextLabel") or obj:IsA("TextButton") then
  887. if obj.TextTransparency == 1 and not obj:GetAttribute("NoFade") then
  888. TweenService:Create(obj, ti, {TextTransparency = 0}):Play()
  889. end
  890. end
  891.  
  892. if obj:IsA("ImageLabel") or obj:IsA("ImageButton") then
  893. if obj.ImageTransparency == 1 and not obj:GetAttribute("NoFade") then
  894. TweenService:Create(obj, ti, {ImageTransparency = 0}):Play()
  895. end
  896. end
  897.  
  898. if obj:IsA("UIStroke") then
  899. if obj.Transparency == 1 and not obj:GetAttribute("NoFade") then
  900. TweenService:Create(obj, ti, {Transparency = 0.5}):Play()
  901. end
  902. end
  903.  
  904. for _, child in ipairs(obj:GetChildren()) do
  905. fadeInChildren(child)
  906. end
  907. end
  908.  
  909. fadeInChildren(_scrlfrm)
  910. end)
  911.  
  912. mfTween:Play()
  913.  
  914. local titleTween = TweenService:Create(
  915. _title,
  916. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  917. {TextTransparency = 0}
  918. )
  919. titleTween.Completed:Connect(function()
  920. local nameWidth = _usernameLabel.TextBounds.X
  921. _leftBar.Size = UDim2.new(0, nameWidth + 20, 0, 40)
  922. end)
  923. titleTween.Completed:Connect(function()
  924. local executorWidth = _executorboxlabel.TextBounds.X
  925. _executorbox.Size = UDim2.new(0, executorWidth + 20, 0, 40)
  926. end)
  927. titleTween.Completed:Connect(function()
  928. local executorWidth = _timeboxlabel.TextBounds.X
  929. _timebox.Size = UDim2.new(0, executorWidth + 20, 0, 40)
  930. end)
  931. titleTween:Play()
  932.  
  933. TweenService:Create(
  934. _version,
  935. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  936. {TextTransparency = 0.25}
  937. ):Play()
  938.  
  939. TweenService:Create(
  940. _divider,
  941. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  942. {BackgroundTransparency = 0}
  943. ):Play()
  944.  
  945. task.wait(buttonAnimationTime)
  946. TweenService:Create(
  947. _timebox,
  948. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  949. {BackgroundTransparency = 0}
  950. ):Play()
  951. TweenService:Create(
  952. _timeboxStroke,
  953. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  954. {Transparency = 0}
  955. ):Play()
  956. TweenService:Create(
  957. _timeboxlabel,
  958. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  959. {TextTransparency = 0}
  960. ):Play()
  961. TweenService:Create(
  962. _executorbox,
  963. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  964. {BackgroundTransparency = 0}
  965. ):Play()
  966. TweenService:Create(
  967. _executorboxStroke,
  968. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  969. {Transparency = 0}
  970. ):Play()
  971. TweenService:Create(
  972. _executorboxlabel,
  973. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  974. {BackgroundTransparency = 0}
  975. ):Play()
  976. TweenService:Create(
  977. _fpsbox,
  978. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  979. {BackgroundTransparency = 0}
  980. ):Play()
  981. TweenService:Create(
  982. _fpsboxStroke,
  983. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  984. {Transparency = 0}
  985. ):Play()
  986. TweenService:Create(
  987. _fpslabel,
  988. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  989. {BackgroundTransparency = 0}
  990. ):Play()
  991.  
  992. TweenService:Create(
  993. _leftBar,
  994. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  995. {BackgroundTransparency = 0}
  996. ):Play()
  997.  
  998. TweenService:Create(
  999. _leftBarStroke,
  1000. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1001. {Transparency = 0}
  1002. ):Play()
  1003.  
  1004. TweenService:Create(
  1005. _usernameLabel,
  1006. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1007. {TextTransparency = 0}
  1008. ):Play()
  1009.  
  1010. task.delay(0.5, function()
  1011. _mf.BackgroundTransparency = 0
  1012. _title.TextTransparency = 0
  1013. _version.TextTransparency = 0.25
  1014. _divider.BackgroundTransparency = 0
  1015. _timebox.BackgroundTransparency = 0
  1016. _timeboxStroke.Transparency = 0
  1017. _timeboxlabel.TextTransparency = 0
  1018. _executorbox.BackgroundTransparency = 0
  1019. _executorboxStroke.Transparency = 0
  1020. _executorboxlabel.TextTransparency = 0
  1021. _fpsbox.BackgroundTransparency = 0
  1022. _fpsboxStroke.Transparency = 0
  1023. _fpslabel.TextTransparency = 0
  1024. _leftBar.BackgroundTransparency = 0
  1025. _leftBarStroke.Transparency = 0
  1026. _usernameLabel.TextTransparency = 0
  1027. _iconList.Parent = _topBar
  1028. for _, btn in ipairs(iconButtons) do
  1029. btn.Position = UDim2.new(0, 0, 0, 0)
  1030. btn.AnchorPoint = Vector2.new(0, 0)
  1031. end
  1032. end)
  1033. else
  1034. TweenService:Create(
  1035. _blurEffect,
  1036. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1037. {Size = 0}
  1038. ):Play()
  1039.  
  1040. TweenService:Create(
  1041. _blurFrame,
  1042. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1043. {BackgroundTransparency = 1}
  1044. ):Play()
  1045.  
  1046. TweenService:Create(
  1047. _topBar,
  1048. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1049. {BackgroundTransparency = 1}
  1050. ):Play()
  1051.  
  1052. TweenService:Create(
  1053. _strokeBar,
  1054. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1055. {Transparency = 1}
  1056. ):Play()
  1057. TweenService:Create(
  1058. _timebox,
  1059. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1060. {BackgroundTransparency = 1}
  1061. ):Play()
  1062. TweenService:Create(
  1063. _timeboxStroke,
  1064. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1065. {Transparency = 1}
  1066. ):Play()
  1067. TweenService:Create(
  1068. _timeboxlabel,
  1069. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1070. {TextTransparency = 1}
  1071. ):Play()
  1072. TweenService:Create(
  1073. _executorbox,
  1074. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1075. {BackgroundTransparency = 1}
  1076. ):Play()
  1077. TweenService:Create(
  1078. _executorboxStroke,
  1079. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1080. {Transparency = 1}
  1081. ):Play()
  1082. TweenService:Create(
  1083. _executorboxlabel,
  1084. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1085. {BackgroundTransparency = 1}
  1086. ):Play()
  1087. TweenService:Create(
  1088. _fpsbox,
  1089. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1090. {BackgroundTransparency = 1}
  1091. ):Play()
  1092. TweenService:Create(
  1093. _fpsboxStroke,
  1094. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1095. {Transparency = 1}
  1096. ):Play()
  1097. TweenService:Create(
  1098. _fpslabel,
  1099. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1100. {BackgroundTransparency = 1}
  1101. ):Play()
  1102.  
  1103. TweenService:Create(
  1104. _leftBar,
  1105. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1106. {BackgroundTransparency = 1}
  1107. ):Play()
  1108.  
  1109. TweenService:Create(
  1110. _leftBarStroke,
  1111. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1112. {Transparency = 1}
  1113. ):Play()
  1114.  
  1115. TweenService:Create(
  1116. _usernameLabel,
  1117. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1118. {TextTransparency = 1}
  1119. ):Play()
  1120.  
  1121. TweenService:Create(
  1122. _mf,
  1123. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1124. {BackgroundTransparency = 1}
  1125. ):Play()
  1126.  
  1127. TweenService:Create(
  1128. _title,
  1129. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1130. {TextTransparency = 1}
  1131. ):Play()
  1132.  
  1133. TweenService:Create(
  1134. _version,
  1135. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1136. {TextTransparency = 1}
  1137. ):Play()
  1138.  
  1139. TweenService:Create(
  1140. _divider,
  1141. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1142. {BackgroundTransparency = 1}
  1143. ):Play()
  1144.  
  1145. for i, btn in ipairs(iconButtons) do
  1146. local iconImg = btn:FindFirstChildOfClass("ImageLabel")
  1147. local stroke = btn:FindFirstChildOfClass("UIStroke")
  1148. if iconImg then
  1149. TweenService:Create(
  1150. iconImg,
  1151. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1152. {ImageTransparency = 1}
  1153. ):Play()
  1154. end
  1155. if stroke then
  1156. TweenService:Create(
  1157. stroke,
  1158. TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  1159. {Transparency = 1}
  1160. ):Play()
  1161. end
  1162. end
  1163. end
  1164. end
  1165.  
  1166. for _, tab in ipairs(tabIconsOrdered) do
  1167. createIconButton(tab.icon, tab.name)
  1168. end
  1169.  
  1170. if _visible then
  1171. playAnimations(true)
  1172. if #iconButtons > 0 then
  1173. local btn = iconButtons[1]
  1174. local iconImg = btn:FindFirstChildOfClass("ImageLabel")
  1175. if iconImg then
  1176. iconImg.ImageColor3 = hoverColor
  1177. end
  1178. currentTab = btn
  1179. tabFrames[1].Visible = true
  1180. end
  1181. end
  1182.  
  1183. local _dragging = false
  1184. local _dragInput, _dragStart, _startPos
  1185. local _dragTweenInfo = TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  1186. local _currentTween = nil
  1187. local _leftDragging = false
  1188. local _leftDragInput, _leftDragStart, _leftStartPos
  1189. local _leftCurrentTween = nil
  1190.  
  1191. _top.InputBegan:Connect(function(input)
  1192. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1193. _dragging = true
  1194. _dragStart = input.Position
  1195. _startPos = _mf.Position
  1196. if _currentTween then
  1197. _currentTween:Cancel()
  1198. _currentTween = nil
  1199. end
  1200. input.Changed:Connect(function()
  1201. if input.UserInputState == Enum.UserInputState.End then
  1202. _dragging = false
  1203. if _currentTween then
  1204. _currentTween:Cancel()
  1205. _currentTween = nil
  1206. end
  1207. end
  1208. end)
  1209. end
  1210. end)
  1211.  
  1212. _top.InputChanged:Connect(function(input)
  1213. if input.UserInputType == Enum.UserInputType.MouseMovement then
  1214. _dragInput = input
  1215. end
  1216. end)
  1217.  
  1218. _leftBar.InputBegan:Connect(function(input)
  1219. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1220. _leftDragging = true
  1221. _leftDragStart = input.Position
  1222. _leftStartPos = _leftBar.Position
  1223. if _leftCurrentTween then
  1224. _leftCurrentTween:Cancel()
  1225. _leftCurrentTween = nil
  1226. end
  1227. input.Changed:Connect(function()
  1228. if input.UserInputState == Enum.UserInputState.End then
  1229. _leftDragging = false
  1230. if _leftCurrentTween then
  1231. _leftCurrentTween:Cancel()
  1232. _leftCurrentTween = nil
  1233. end
  1234. end
  1235. end)
  1236. end
  1237. end)
  1238.  
  1239. _leftBar.InputChanged:Connect(function(input)
  1240. if input.UserInputType == Enum.UserInputType.MouseMovement then
  1241. _leftDragInput = input
  1242. end
  1243. end)
  1244.  
  1245. _uis.InputChanged:Connect(function(input)
  1246. if input == _dragInput and _dragging then
  1247. local delta = input.Position - _dragStart
  1248. local targetPos = UDim2.new(
  1249. _startPos.X.Scale,
  1250. _startPos.X.Offset + delta.X,
  1251. _startPos.Y.Scale,
  1252. _startPos.Y.Offset + delta.Y
  1253. )
  1254. if _currentTween then
  1255. _currentTween:Cancel()
  1256. end
  1257. _currentTween = TweenService:Create(_mf, _dragTweenInfo, {Position = targetPos})
  1258. _currentTween:Play()
  1259. elseif input == _leftDragInput and _leftDragging then
  1260. local delta = input.Position - _leftDragStart
  1261. local targetPos = UDim2.new(
  1262. _leftStartPos.X.Scale,
  1263. _leftStartPos.X.Offset + delta.X,
  1264. _leftStartPos.Y.Scale,
  1265. _leftStartPos.Y.Offset + delta.Y
  1266. )
  1267. if _leftCurrentTween then
  1268. _leftCurrentTween:Cancel()
  1269. end
  1270. _leftCurrentTween = TweenService:Create(_leftBar, _dragTweenInfo, {Position = targetPos})
  1271. _leftCurrentTween:Play()
  1272. end
  1273. end)
  1274.  
  1275. _uis.InputBegan:Connect(function(input, gpe)
  1276. if gpe then
  1277. return
  1278. end
  1279. if input.KeyCode == Enum.KeyCode.P then
  1280. _visible = not _visible
  1281. _scrlfrm.Visible = _visible
  1282. _blurFrame.Visible = _visible
  1283. _topBar.Visible = _visible
  1284. _timebox.Visible = _visible
  1285. _executorbox.Visible = _visible
  1286. _fpsbox.Visible = _visible
  1287. _leftBar.Visible = _visible
  1288. _mf.Visible = _visible
  1289. playAnimations(_visible)
  1290. end
  1291. end)
  1292.  
  1293. local lib = {}
  1294.  
  1295. local function getTabFrame(tabName)
  1296. for i, tab in ipairs(tabIconsOrdered) do
  1297. if tab.name == tabName then
  1298. return tabFrames[i]
  1299. end
  1300. end
  1301. return nil
  1302. end
  1303.  
  1304. local function fadeInElement(gui)
  1305. local ti = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  1306.  
  1307. local function recurse(obj)
  1308. if obj:IsA("Frame") or obj:IsA("ScrollingFrame") then
  1309. if obj.BackgroundTransparency == 1 and not obj:GetAttribute("NoFade") then
  1310. TweenService:Create(obj, ti, {BackgroundTransparency = 0}):Play()
  1311. end
  1312. end
  1313. if obj:IsA("TextLabel") or obj:IsA("TextButton") then
  1314. if obj.TextTransparency == 1 and not obj:GetAttribute("NoFade") then
  1315. TweenService:Create(obj, ti, {TextTransparency = 0}):Play()
  1316. end
  1317. end
  1318. if obj:IsA("ImageLabel") or obj:IsA("ImageButton") then
  1319. if obj.ImageTransparency == 1 and not obj:GetAttribute("NoFade") then
  1320. TweenService:Create(obj, ti, {ImageTransparency = 0}):Play()
  1321. end
  1322. end
  1323. for _, st in ipairs(obj:GetChildren()) do
  1324. if st:IsA("UIStroke") then
  1325. if st.Transparency == 1 and not st:GetAttribute("NoFade") then
  1326. TweenService:Create(st, ti, {Transparency = 0.5}):Play()
  1327. end
  1328. end
  1329. end
  1330. for _, child in ipairs(obj:GetChildren()) do
  1331. recurse(child)
  1332. end
  1333. end
  1334.  
  1335. recurse(gui)
  1336. end
  1337.  
  1338. local function createSection(tabName, side, sectionTitle, sizeType)
  1339. local tabFrame = getTabFrame(tabName)
  1340. if not tabFrame then return nil end
  1341.  
  1342. local columnName = side == "left" and "Left" or "Right"
  1343. local column = tabFrame.Columns:FindFirstChild(columnName)
  1344. if not column then return nil end
  1345.  
  1346. local sizes = {
  1347. LongBox = {Height = 200, ContentHeight = 170},
  1348. ShortBox = {Height = 100, ContentHeight = 100},
  1349. BigBox = {Height = 300, ContentHeight = 270},
  1350. SmallBox = {Height = 50, ContentHeight = 20}
  1351. }
  1352.  
  1353. local sizeConfig = sizes[sizeType] or {Height = 150, ContentHeight = 120}
  1354.  
  1355. local section = Instance.new("Frame")
  1356. section.Size = UDim2.new(1, 0, 0, sizeConfig.Height)
  1357. section.BackgroundColor3 = Color3.fromRGB(3, 3, 3)
  1358. section.BackgroundTransparency = 1
  1359. section.BorderSizePixel = 0
  1360. section.Parent = column
  1361.  
  1362. local gradient = Instance.new("UIGradient")
  1363. gradient.Color = ColorSequence.new({
  1364. ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)),
  1365. ColorSequenceKeypoint.new(1, config.accentcolor:Lerp(Color3.fromRGB(20, 20, 20), 0.7))
  1366. })
  1367. gradient.Rotation = 90
  1368. gradient.Transparency = NumberSequence.new({
  1369. NumberSequenceKeypoint.new(0, 0.8),
  1370. NumberSequenceKeypoint.new(1, 0.8)
  1371. })
  1372. gradient.Parent = section
  1373.  
  1374. local secCorner = Instance.new("UICorner")
  1375. secCorner.CornerRadius = UDim.new(0, 8)
  1376. secCorner.Parent = section
  1377.  
  1378. local secStroke = Instance.new("UIStroke")
  1379. secStroke.Color = config.accentcolor:Lerp(Color3.fromRGB(100, 100, 100), 0.5)
  1380. secStroke.Thickness = 1.5
  1381. secStroke.Transparency = 1
  1382. secStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  1383. secStroke.Parent = section
  1384.  
  1385. local title = Instance.new("TextLabel")
  1386. title.Size = UDim2.new(1, -10, 0, 20)
  1387. title.Position = UDim2.new(0, 5, 0, 5)
  1388. title.BackgroundTransparency = 1
  1389. title.Text = sectionTitle or ""
  1390. title.TextColor3 = Color3.new(1, 1, 1)
  1391. title.TextTransparency = 1
  1392. title.Font = Enum.Font.GothamBold
  1393. title.TextSize = 14
  1394. title.TextXAlignment = Enum.TextXAlignment.Left
  1395. title.Parent = section
  1396.  
  1397. local contentFrame = Instance.new("Frame")
  1398. contentFrame.Name = "Content"
  1399. contentFrame.Size = UDim2.new(1, -10, 0, sizeConfig.ContentHeight)
  1400. contentFrame.Position = UDim2.new(0, 5, 0, 30)
  1401. contentFrame.BackgroundTransparency = 1
  1402. contentFrame.BorderSizePixel = 0
  1403. contentFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  1404. contentFrame.Parent = section
  1405. contentFrame:SetAttribute("NoFade", true)
  1406.  
  1407. local contList = Instance.new("UIListLayout")
  1408. contList.SortOrder = Enum.SortOrder.LayoutOrder
  1409. contList.Padding = UDim.new(0, 8)
  1410. contList.Parent = contentFrame
  1411.  
  1412. local contPad = Instance.new("UIPadding")
  1413. contPad.PaddingLeft = UDim.new(0, 5)
  1414. contPad.PaddingRight = UDim.new(0, 5)
  1415. contPad.PaddingTop = UDim.new(0, 5)
  1416. contPad.PaddingBottom = UDim.new(0, 5)
  1417. contPad.Parent = contentFrame
  1418.  
  1419. fadeInElement(section)
  1420.  
  1421. return contentFrame
  1422. end
  1423.  
  1424. function lib:CreateLeftLongBox(tabName, sectionTitle)
  1425. return createSection(tabName, "left", sectionTitle, "LongBox")
  1426. end
  1427.  
  1428. function lib:CreateRightLongBox(tabName, sectionTitle)
  1429. return createSection(tabName, "right", sectionTitle, "LongBox")
  1430. end
  1431.  
  1432. function lib:CreateLeftShortBox(tabName, sectionTitle)
  1433. return createSection(tabName, "left", sectionTitle, "ShortBox")
  1434. end
  1435.  
  1436. function lib:CreateRightShortBox(tabName, sectionTitle)
  1437. return createSection(tabName, "right", sectionTitle, "ShortBox")
  1438. end
  1439.  
  1440. function lib:CreateLeftBigBox(tabName, sectionTitle)
  1441. return createSection(tabName, "left", sectionTitle, "BigBox")
  1442. end
  1443.  
  1444. function lib:CreateRightBigBox(tabName, sectionTitle)
  1445. return createSection(tabName, "right", sectionTitle, "BigBox")
  1446. end
  1447.  
  1448. function lib:CreateLeftSmallBox(tabName, sectionTitle)
  1449. return createSection(tabName, "left", sectionTitle, "SmallBox")
  1450. end
  1451.  
  1452. function lib:CreateRightSmallBox(tabName, sectionTitle)
  1453. return createSection(tabName, "right", sectionTitle, "SmallBox")
  1454. end
  1455.  
  1456. function lib:CreateToggle(parent, toggleText, default, callback)
  1457. local toggleFrame = Instance.new("Frame")
  1458. toggleFrame.Size = UDim2.new(1, -10, 0, 32)
  1459. toggleFrame.BackgroundTransparency = 1
  1460. toggleFrame.Parent = parent
  1461.  
  1462. local gradient = Instance.new("UIGradient")
  1463. gradient.Color = ColorSequence.new({
  1464. ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)),
  1465. ColorSequenceKeypoint.new(1, config.accentcolor:Lerp(Color3.fromRGB(20, 20, 20), 0.7))
  1466. })
  1467. gradient.Rotation = 90
  1468. gradient.Parent = toggleFrame
  1469.  
  1470. local togCorner = Instance.new("UICorner")
  1471. togCorner.CornerRadius = UDim.new(0, 8)
  1472. togCorner.Parent = toggleFrame
  1473.  
  1474. local togStroke = Instance.new("UIStroke")
  1475. togStroke.Color = config.accentcolor:Lerp(Color3.fromRGB(80, 80, 80), 0.6)
  1476. togStroke.Thickness = 1
  1477. togStroke.Transparency = 1
  1478. togStroke.Parent = toggleFrame
  1479.  
  1480. local switchBg = Instance.new("Frame")
  1481. switchBg.Size = UDim2.new(0, 46, 0, 24)
  1482. switchBg.Position = UDim2.new(1, -56, 0.5, -12)
  1483. switchBg.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1484. switchBg.BorderSizePixel = 0
  1485. switchBg.Parent = toggleFrame
  1486.  
  1487. local switchCorner = Instance.new("UICorner")
  1488. switchCorner.CornerRadius = UDim.new(1, 0)
  1489. switchCorner.Parent = switchBg
  1490.  
  1491. local switchStroke = Instance.new("UIStroke")
  1492. switchStroke.Color = Color3.fromRGB(60, 60, 60)
  1493. switchStroke.Thickness = 1
  1494. switchStroke.Parent = switchBg
  1495.  
  1496. local knob = Instance.new("Frame")
  1497. knob.Size = UDim2.new(0, 20, 0, 20)
  1498. knob.Position = UDim2.new(0, 2, 0.5, -10)
  1499. knob.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
  1500. knob.BorderSizePixel = 0
  1501. knob.Parent = switchBg
  1502.  
  1503. local knobCorner = Instance.new("UICorner")
  1504. knobCorner.CornerRadius = UDim.new(1, 0)
  1505. knobCorner.Parent = knob
  1506.  
  1507. local textLab = Instance.new("TextLabel")
  1508. textLab.Size = UDim2.new(1, -70, 1, 0)
  1509. textLab.Position = UDim2.new(0, 8, 0, 0)
  1510. textLab.BackgroundTransparency = 1
  1511. textLab.Text = toggleText
  1512. textLab.TextColor3 = Color3.new(1, 1, 1)
  1513. textLab.TextTransparency = 1
  1514. textLab.Font = Enum.Font.Gotham
  1515. textLab.TextSize = 14
  1516. textLab.TextXAlignment = Enum.TextXAlignment.Left
  1517. textLab.Parent = toggleFrame
  1518.  
  1519. local button = Instance.new("TextButton")
  1520. button.Size = UDim2.new(1, 0, 1, 0)
  1521. button.BackgroundTransparency = 1
  1522. button.Text = ""
  1523. button.Parent = toggleFrame
  1524.  
  1525. local state = default or false
  1526.  
  1527. local function updateToggle(instant)
  1528. local ti = instant and TweenInfo.new(0) or TweenInfo.new(0.25, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
  1529.  
  1530. if state then
  1531. TweenService:Create(switchBg, ti, {BackgroundColor3 = config.accentcolor}):Play()
  1532. TweenService:Create(knob, ti, {Position = UDim2.new(1, -22, 0.5, -10)}):Play()
  1533. TweenService:Create(knob, ti, {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  1534. else
  1535. TweenService:Create(switchBg, ti, {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}):Play()
  1536. TweenService:Create(knob, ti, {Position = UDim2.new(0, 2, 0.5, -10)}):Play()
  1537. TweenService:Create(knob, ti, {BackgroundColor3 = Color3.fromRGB(220, 220, 220)}):Play()
  1538. end
  1539.  
  1540. if callback then callback(state) end
  1541. end
  1542.  
  1543. updateToggle(true)
  1544.  
  1545. button.Activated:Connect(function()
  1546. state = not state
  1547. updateToggle()
  1548. end)
  1549.  
  1550. button.MouseEnter:Connect(function()
  1551. TweenService:Create(toggleFrame, TweenInfo.new(0.2), {BackgroundTransparency = 0.85}):Play()
  1552. end)
  1553. button.MouseLeave:Connect(function()
  1554. TweenService:Create(toggleFrame, TweenInfo.new(0.2), {BackgroundTransparency = 1}):Play()
  1555. end)
  1556.  
  1557. fadeInElement(toggleFrame)
  1558. return {
  1559. Element = toggleFrame,
  1560. Set = function(v)
  1561. state = v
  1562. updateToggle()
  1563. end
  1564. }
  1565. end
  1566.  
  1567. function lib:CreateButton(parent, buttonText, callback)
  1568. local buttonFrame = Instance.new("Frame")
  1569. buttonFrame.Size = UDim2.new(1, -10, 0, 32)
  1570. buttonFrame.BackgroundTransparency = 1
  1571. buttonFrame.Parent = parent
  1572.  
  1573. local gradient = Instance.new("UIGradient")
  1574. gradient.Color = ColorSequence.new({
  1575. ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)),
  1576. ColorSequenceKeypoint.new(1, config.accentcolor:Lerp(Color3.fromRGB(20, 20, 20), 0.7))
  1577. })
  1578. gradient.Rotation = 90
  1579. gradient.Parent = buttonFrame
  1580.  
  1581. local btnCorner = Instance.new("UICorner")
  1582. btnCorner.CornerRadius = UDim.new(0, 8)
  1583. btnCorner.Parent = buttonFrame
  1584.  
  1585. local btnStroke = Instance.new("UIStroke")
  1586. btnStroke.Color = config.accentcolor:Lerp(Color3.fromRGB(80, 80, 80), 0.6)
  1587. btnStroke.Thickness = 1
  1588. btnStroke.Transparency = 1
  1589. btnStroke.Parent = buttonFrame
  1590.  
  1591. local textLab = Instance.new("TextLabel")
  1592. textLab.Size = UDim2.new(1, -10, 1, 0)
  1593. textLab.Position = UDim2.new(0, 5, 0, 0)
  1594. textLab.BackgroundTransparency = 1
  1595. textLab.Text = buttonText
  1596. textLab.TextColor3 = Color3.new(1, 1, 1)
  1597. textLab.TextTransparency = 1
  1598. textLab.Font = Enum.Font.Gotham
  1599. textLab.TextSize = 14
  1600. textLab.TextXAlignment = Enum.TextXAlignment.Center
  1601. textLab.Parent = buttonFrame
  1602.  
  1603. local button = Instance.new("TextButton")
  1604. button.Size = UDim2.new(1, 0, 1, 0)
  1605. button.BackgroundTransparency = 1
  1606. button.Text = ""
  1607. button.Parent = buttonFrame
  1608.  
  1609. button.MouseEnter:Connect(function()
  1610. TweenService:Create(buttonFrame, TweenInfo.new(0.2), {BackgroundTransparency = 0.85}):Play()
  1611. end)
  1612. button.MouseLeave:Connect(function()
  1613. TweenService:Create(buttonFrame, TweenInfo.new(0.2), {BackgroundTransparency = 1}):Play()
  1614. end)
  1615.  
  1616. button.Activated:Connect(function()
  1617. if callback then
  1618. callback()
  1619. end
  1620. end)
  1621.  
  1622. fadeInElement(buttonFrame)
  1623. return {
  1624. Element = buttonFrame
  1625. }
  1626. end
  1627.  
  1628. function lib:CreateSlider(parent, sliderText, minValue, maxValue, defaultValue, callback)
  1629. local sliderFrame = Instance.new("Frame")
  1630. sliderFrame.Size = UDim2.new(1, -10, 0, 38)
  1631. sliderFrame.BackgroundTransparency = 1
  1632. sliderFrame.Parent = parent
  1633.  
  1634. local gradient = Instance.new("UIGradient")
  1635. gradient.Color = ColorSequence.new({
  1636. ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 20, 20)),
  1637. ColorSequenceKeypoint.new(1, config.accentcolor:Lerp(Color3.fromRGB(20, 20, 20), 0.7))
  1638. })
  1639. gradient.Rotation = 90
  1640. gradient.Parent = sliderFrame
  1641.  
  1642. local sldCorner = Instance.new("UICorner")
  1643. sldCorner.CornerRadius = UDim.new(0, 8)
  1644. sldCorner.Parent = sliderFrame
  1645.  
  1646. local sldStroke = Instance.new("UIStroke")
  1647. sldStroke.Color = config.accentcolor:Lerp(Color3.fromRGB(80, 80, 80), 0.6)
  1648. sldStroke.Thickness = 1
  1649. sldStroke.Transparency = 1
  1650. sldStroke.Parent = sliderFrame
  1651.  
  1652. local textLab = Instance.new("TextLabel")
  1653. textLab.Size = UDim2.new(0.5, 0, 0, 20)
  1654. textLab.Position = UDim2.new(0, 8, 0, 0)
  1655. textLab.BackgroundTransparency = 1
  1656. textLab.Text = sliderText
  1657. textLab.TextColor3 = Color3.new(1, 1, 1)
  1658. textLab.TextTransparency = 1
  1659. textLab.Font = Enum.Font.Gotham
  1660. textLab.TextSize = 14
  1661. textLab.TextXAlignment = Enum.TextXAlignment.Left
  1662. textLab.Parent = sliderFrame
  1663.  
  1664. local valueLab = Instance.new("TextLabel")
  1665. valueLab.Size = UDim2.new(0, 40, 0, 20)
  1666. valueLab.Position = UDim2.new(1, -48, 0, 0)
  1667. valueLab.BackgroundTransparency = 1
  1668. valueLab.Text = tostring(defaultValue or minValue)
  1669. valueLab.TextColor3 = config.accentcolor
  1670. valueLab.TextTransparency = 1
  1671. valueLab.Font = Enum.Font.GothamBold
  1672. valueLab.TextSize = 14
  1673. valueLab.TextXAlignment = Enum.TextXAlignment.Right
  1674. valueLab.Parent = sliderFrame
  1675.  
  1676. local barBg = Instance.new("Frame")
  1677. barBg.Size = UDim2.new(1, -16, 0, 6)
  1678. barBg.Position = UDim2.new(0, 8, 0, 26)
  1679. barBg.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  1680. barBg.BorderSizePixel = 0
  1681. barBg.Parent = sliderFrame
  1682.  
  1683. local barCorner = Instance.new("UICorner")
  1684. barCorner.CornerRadius = UDim.new(0, 3)
  1685. barCorner.Parent = barBg
  1686.  
  1687. local fillBar = Instance.new("Frame")
  1688. fillBar.Size = UDim2.new(0, 0, 1, 0)
  1689. fillBar.BackgroundColor3 = config.accentcolor
  1690. fillBar.BorderSizePixel = 0
  1691. fillBar.Parent = barBg
  1692.  
  1693. local fillCorner = Instance.new("UICorner")
  1694. fillCorner.CornerRadius = UDim.new(0, 3)
  1695. fillCorner.Parent = fillBar
  1696.  
  1697. local knob = Instance.new("Frame")
  1698. knob.Size = UDim2.new(0, 14, 0, 14)
  1699. knob.Position = UDim2.new(0, 0, 0.5, -7)
  1700. knob.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1701. knob.BorderSizePixel = 0
  1702. knob.ZIndex = 2
  1703. knob.Parent = barBg
  1704.  
  1705. local knobCorner = Instance.new("UICorner")
  1706. knobCorner.CornerRadius = UDim.new(1, 0)
  1707. knobCorner.Parent = knob
  1708.  
  1709. local knobStroke = Instance.new("UIStroke")
  1710. knobStroke.Color = config.accentcolor
  1711. knobStroke.Thickness = 2
  1712. knobStroke.Parent = knob
  1713.  
  1714. local button = Instance.new("TextButton")
  1715. button.Size = UDim2.new(1, 0, 1, 0)
  1716. button.BackgroundTransparency = 1
  1717. button.Text = ""
  1718. button.Parent = sliderFrame
  1719.  
  1720. local currentValue = defaultValue or minValue
  1721. local range = maxValue - minValue
  1722.  
  1723. local function updateSlider(value, noCallback)
  1724. currentValue = math.clamp(value, minValue, maxValue)
  1725. local ratio = (currentValue - minValue) / range
  1726.  
  1727. TweenService:Create(fillBar, TweenInfo.new(0.15, Enum.EasingStyle.Sine), {Size = UDim2.new(ratio, 0, 1, 0)}):Play()
  1728. TweenService:Create(knob, TweenInfo.new(0.15, Enum.EasingStyle.Sine), {Position = UDim2.new(ratio, -7, 0.5, -7)}):Play()
  1729.  
  1730. valueLab.Text = tostring(math.floor(currentValue))
  1731. if callback and not noCallback then
  1732. callback(currentValue)
  1733. end
  1734. end
  1735.  
  1736. updateSlider(currentValue, true)
  1737.  
  1738. local dragging = false
  1739. button.InputBegan:Connect(function(input)
  1740. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1741. dragging = true
  1742. local barPos = barBg.AbsolutePosition.X
  1743. local barWidth = barBg.AbsoluteSize.X
  1744. local ratio = math.clamp((input.Position.X - barPos) / barWidth, 0, 1)
  1745. updateSlider(minValue + ratio * range)
  1746. end
  1747. end)
  1748.  
  1749. button.InputEnded:Connect(function(input)
  1750. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1751. dragging = false
  1752. end
  1753. end)
  1754.  
  1755. _uis.InputChanged:Connect(function(input)
  1756. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  1757. local barPos = barBg.AbsolutePosition.X
  1758. local barWidth = barBg.AbsoluteSize.X
  1759. local ratio = math.clamp((input.Position.X - barPos) / barWidth, 0, 1)
  1760. updateSlider(minValue + ratio * range)
  1761. end
  1762. end)
  1763.  
  1764. fadeInElement(sliderFrame)
  1765.  
  1766. return {
  1767. Element = sliderFrame,
  1768. Set = function(newValue)
  1769. updateSlider(newValue)
  1770. end
  1771. }
  1772. end
  1773.  
  1774. return lib
  1775. end
  1776. return mys_custom_ui
RAW Paste Data Copied