Advertisement
YoungAoS

UI-Old

Jul 7th, 2024 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.39 KB | None | 0 0
  1. -- // Thank you, Nurysium
  2.  
  3. local nurysium = {}
  4.  
  5. local tween_service = game:GetService("TweenService")
  6. local user_input = game:GetService("UserInputService")
  7.  
  8. local ui = nil
  9.  
  10. local search_table = {}
  11. local ui_data = {
  12. current_section = "nil"
  13. }
  14.  
  15. local function animate_elements(speed: number)
  16. ui.Background["functions_frame"].UIListLayout.Padding = UDim.new(0.5, 0)
  17.  
  18. tween_service:Create(ui.Background["functions_frame"].UIListLayout, TweenInfo.new(speed, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  19. Padding = UDim.new(0.02, 0)
  20. }):Play()
  21. end
  22.  
  23. function nurysium: open()
  24. task.delay(0.2, function()
  25. ui.Background["functions_frame"].Visible = true
  26. ui.Background.Sections.Visible = true
  27. ui.Background.Search.Visible = true
  28. end)
  29.  
  30. tween_service:Create(ui.Background["functions_frame"].UIListLayout, TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  31. Padding = UDim.new(0.02, 0)
  32. }):Play()
  33.  
  34. tween_service:Create(ui.Background.Title, TweenInfo.new(1.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  35. TextTransparency = 0
  36. }):Play()
  37.  
  38. tween_service:Create(ui.Background, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  39. Size = UDim2.new(0, 655, 0, 325),
  40. Position = UDim2.new(0.4, 0, 0.3, 0),
  41. BackgroundTransparency = 0
  42. }):Play()
  43. end
  44.  
  45.  
  46. function nurysium: close()
  47. task.delay(0.35, function()
  48. ui.Background["functions_frame"].Visible = false
  49. ui.Background.Sections.Visible = false
  50. ui.Background.Search.Visible = false
  51. end)
  52.  
  53. tween_service:Create(ui.Background["functions_frame"].UIListLayout, TweenInfo.new(0.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  54. Padding = UDim.new(0.02, 0)
  55. }):Play()
  56.  
  57. tween_service:Create(ui.Background.Title, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  58. TextTransparency = 1
  59. }):Play()
  60.  
  61. tween_service:Create(ui.Background, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  62. Size = UDim2.new(0, 0, 0, 0),
  63. Position = UDim2.new(0.510, 0, 1, 0),
  64. BackgroundTransparency = 1
  65. }):Play()
  66. end
  67.  
  68. function nurysium: init(name: string, is_draggable: boolean, parent)
  69. if parent:FindFirstChild(name) then
  70. parent:FindFirstChild(name):Destroy()
  71. end
  72.  
  73. ui = Instance.new("ScreenGui")
  74.  
  75. local Background = Instance.new("Frame")
  76. local UICorner = Instance.new("UICorner")
  77. local Sections = Instance.new("Frame")
  78. local UICorner_2 = Instance.new("UICorner")
  79. local CornerFix = Instance.new("Frame")
  80. local UIGradient = Instance.new("UIGradient")
  81. local real_sections = Instance.new("Frame")
  82. local UIListLayout = Instance.new("UIListLayout")
  83. local UIGradient_2 = Instance.new("UIGradient")
  84. local logo = Instance.new("ImageButton")
  85. local UIGradient_3 = Instance.new("UIGradient")
  86. local Title = Instance.new("TextLabel")
  87. local functions_frame = Instance.new("ScrollingFrame")
  88. local UIPadding = Instance.new("UIPadding")
  89. local UIListLayout_2 = Instance.new("UIListLayout")
  90. local Search = Instance.new("Frame")
  91. local UICorner_3 = Instance.new("UICorner")
  92. local ImageLabel = Instance.new("ImageLabel")
  93. local Bar = Instance.new("TextBox")
  94. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  95. local UIGradient_4 = Instance.new("UIGradient")
  96.  
  97. ui.Name = name
  98. ui.Parent = parent
  99. ui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  100.  
  101. Background.Name = "Background"
  102. Background.Parent = ui
  103. Background.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  104. Background.BorderColor3 = Color3.fromRGB(0, 0, 0)
  105. Background.BorderSizePixel = 0
  106. Background.Position = UDim2.new(0.4, 0, 0.3, 0)
  107. Background.Size = UDim2.new(0, 655, 0, 325)
  108. Background.ZIndex = 5
  109.  
  110. UICorner.CornerRadius = UDim.new(0, 15)
  111. UICorner.Parent = Background
  112.  
  113. Sections.Name = "Sections"
  114. Sections.Parent = Background
  115. Sections.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. Sections.BorderColor3 = Color3.fromRGB(0, 0, 0)
  117. Sections.BorderSizePixel = 0
  118. Sections.Position = UDim2.new(-0.00157281861, 0, 0, 0)
  119. Sections.Size = UDim2.new(0.283998042, 0, 1, 0)
  120.  
  121. UICorner_2.CornerRadius = UDim.new(0, 15)
  122. UICorner_2.Parent = Sections
  123.  
  124. CornerFix.Name = "CornerFix"
  125. CornerFix.Parent = Sections
  126. CornerFix.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  127. CornerFix.BorderColor3 = Color3.fromRGB(0, 0, 0)
  128. CornerFix.BorderSizePixel = 0
  129. CornerFix.Position = UDim2.new(0.918615103, 0, 0, 0)
  130. CornerFix.Size = UDim2.new(0.0813859329, 0, 1, 0)
  131.  
  132. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(37, 34, 45)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(35, 33, 43))}
  133. UIGradient.Rotation = -94
  134. UIGradient.Parent = CornerFix
  135.  
  136. real_sections.Name = "real_sections"
  137. real_sections.Parent = Sections
  138. real_sections.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  139. real_sections.BackgroundTransparency = 1.000
  140. real_sections.BorderColor3 = Color3.fromRGB(0, 0, 0)
  141. real_sections.BorderSizePixel = 0
  142. real_sections.Position = UDim2.new(0.249553874, 0, 0.170943886, 0)
  143. real_sections.Size = UDim2.new(0, 107, 0, 230)
  144. real_sections.ZIndex = 5
  145.  
  146. UIListLayout.Parent = real_sections
  147. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  148. UIListLayout.Padding = UDim.new(0.0450000018, 0)
  149.  
  150. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(39, 36, 47)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(33, 31, 40))}
  151. UIGradient_2.Rotation = -113
  152. UIGradient_2.Parent = Sections
  153.  
  154. logo.Name = "logo"
  155. logo.Parent = Sections
  156. logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  157. logo.BackgroundTransparency = 1.000
  158. logo.BorderColor3 = Color3.fromRGB(0, 0, 0)
  159. logo.BorderSizePixel = 0
  160. logo.Position = UDim2.new(0.710735202, 0, 0.664615393, 0)
  161. logo.Size = UDim2.new(0, 100, 0, 100)
  162. logo.ZIndex = 2
  163. logo.Image = "rbxassetid://17441779136"
  164.  
  165. UIGradient_3.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(0.51, 1.00), NumberSequenceKeypoint.new(1.00, 1.00)}
  166. UIGradient_3.Parent = logo
  167.  
  168. Title.Name = "Title"
  169. Title.Parent = Background
  170. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  171. Title.BackgroundTransparency = 1.000
  172. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  173. Title.BorderSizePixel = 0
  174. Title.Position = UDim2.new(0.0269060303, 0, 0.035999544, 0)
  175. Title.Size = UDim2.new(0, 70, 0, 20)
  176. Title.Font = Enum.Font.GothamBold --// game:GetObjects('rbxassetid://11702779517')[1]
  177. Title.Text = name
  178. Title.TextColor3 = Color3.fromRGB(231, 231, 243)
  179. Title.TextScaled = true
  180. Title.TextSize = 14.000
  181. Title.TextWrapped = true
  182.  
  183. local UIGradient = Instance.new("UIGradient")
  184.  
  185. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(141, 130, 170)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(208, 196, 252))}
  186. UIGradient.Offset = Vector2.new(0.00999999978, 0)
  187. UIGradient.Rotation = -113
  188. UIGradient.Parent = Title
  189.  
  190. local function gradientMover()
  191. local script = Instance.new('LocalScript', UIGradient)
  192. local animation_done = true
  193.  
  194. while animation_done do
  195. animation_done = false
  196.  
  197. game:GetService('TweenService'):Create(UIGradient, TweenInfo.new(3, Enum.EasingStyle.Quad), {
  198. Rotation = 53
  199. }):Play()
  200.  
  201. task.wait(3)
  202.  
  203. game:GetService('TweenService'):Create(UIGradient, TweenInfo.new(3, Enum.EasingStyle.Quad), {
  204. Rotation = -180
  205. }):Play()
  206.  
  207. task.wait(3)
  208. animation_done = true
  209. end
  210.  
  211. end
  212. coroutine.wrap(gradientMover)()
  213.  
  214. functions_frame.Name = "functions_frame"
  215. functions_frame.Parent = Background
  216. functions_frame.Active = true
  217. functions_frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  218. functions_frame.BackgroundTransparency = 1.000
  219. functions_frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  220. functions_frame.BorderSizePixel = 0
  221. functions_frame.Position = UDim2.new(0.31407398, 0, 0.170943886, 0)
  222. functions_frame.Size = UDim2.new(0, 397, 0, 254)
  223. functions_frame.ScrollBarThickness = 0
  224.  
  225. UIPadding.Parent = functions_frame
  226. UIPadding.PaddingTop = UDim.new(0.00999999978, 0)
  227.  
  228. UIListLayout_2.Parent = functions_frame
  229. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  230. UIListLayout_2.Padding = UDim.new(0.0199999996, 0)
  231.  
  232. Search.Name = "Search"
  233. Search.Parent = Background
  234. Search.BackgroundColor3 = Color3.fromRGB(33, 32, 40)
  235. Search.BorderColor3 = Color3.fromRGB(0, 0, 0)
  236. Search.BorderSizePixel = 0
  237. Search.Position = UDim2.new(0.775426149, 0, 0.0338461548, 0)
  238. Search.Size = UDim2.new(0, 120, 0, 35)
  239. Search.ZIndex = 10
  240.  
  241. UICorner_3.CornerRadius = UDim.new(0, 15)
  242. UICorner_3.Parent = Search
  243.  
  244. ImageLabel.Parent = Search
  245. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  246. ImageLabel.BackgroundTransparency = 1.000
  247. ImageLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  248. ImageLabel.BorderSizePixel = 0
  249. ImageLabel.Position = UDim2.new(0.0675648972, 0, 0.244624332, 0)
  250. ImageLabel.Size = UDim2.new(0, 17, 0, 17)
  251. ImageLabel.ZIndex = 12
  252. ImageLabel.Image = "rbxassetid://17441620727"
  253. ImageLabel.ImageTransparency = 0.450
  254.  
  255. Bar.Name = "Bar"
  256. Bar.Parent = Search
  257. Bar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  258. Bar.BackgroundTransparency = 1.000
  259. Bar.BorderColor3 = Color3.fromRGB(0, 0, 0)
  260. Bar.BorderSizePixel = 0
  261. Bar.Position = UDim2.new(0.275000006, 0, 0.0199957713, 0)
  262. Bar.Size = UDim2.new(0, 87, 0, 34)
  263. Bar.SizeConstraint = Enum.SizeConstraint.RelativeXX
  264. Bar.ZIndex = 7
  265. Bar.ClearTextOnFocus = false
  266. Bar.Font = Enum.Font.GothamBold --// game:GetObjects('rbxassetid://11702779517')[1]
  267. Bar.PlaceholderText = "Search"
  268. Bar.Text = ""
  269. Bar.TextColor3 = Color3.fromRGB(231, 231, 243)
  270. Bar.TextSize = 14.000
  271. Bar.TextTransparency = 0.450
  272. Bar.TextWrapped = true
  273. Bar.TextXAlignment = Enum.TextXAlignment.Left
  274.  
  275. local function bar_handler()
  276. local script = Instance.new('LocalScript', Bar)
  277.  
  278. Bar:GetPropertyChangedSignal("Text"):Connect(function()
  279. if Bar.Text:len() > 1 then
  280. animate_elements(1.35)
  281.  
  282. for _, element in functions_frame:GetDescendants() do
  283.  
  284. if element:IsA("Frame") and element:FindFirstChild("Title") then
  285.  
  286. if string.find(element.Title.Text:lower(), Bar.Text:lower()) then
  287. table.insert(search_table, element.Name)
  288. else
  289.  
  290. if table.find(search_table, element.Name) then
  291. table.remove(search_table, table.find(search_table, element.Name))
  292. end
  293.  
  294. end
  295. end
  296.  
  297. end
  298. else
  299. table.clear(search_table)
  300. end
  301. end)
  302. end
  303.  
  304. coroutine.wrap(bar_handler)()
  305.  
  306. UIAspectRatioConstraint.Parent = Background
  307. UIAspectRatioConstraint.AspectRatio = 1.850
  308.  
  309. UIGradient_4.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(30, 28, 39)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(24, 22, 31))}
  310. UIGradient_4.Rotation = -113
  311. UIGradient_4.Parent = Background
  312.  
  313. tween_service:Create(UIAspectRatioConstraint, TweenInfo.new(1.65, Enum.EasingStyle.Exponential), {AspectRatio = 1.850}):Play()
  314. task.delay(0.25, function()
  315. tween_service:Create(Title, TweenInfo.new(1.85, Enum.EasingStyle.Exponential), {TextTransparency = 0}):Play()
  316. end)
  317.  
  318. task.defer(function()
  319. if is_draggable then
  320. local function WOFUCY_fake_script() -- Background.drag
  321. local script = Instance.new('LocalScript', Background)
  322.  
  323. local UserInputService = game:GetService("UserInputService")
  324. local runService = (game:GetService("RunService"));
  325.  
  326. local gui = script.Parent
  327.  
  328. local dragging
  329. local dragInput
  330. local dragStart
  331. local startPos
  332.  
  333. local function Lerp(a, b, m)
  334. return a + (b - a) * m
  335. end;
  336.  
  337. local lastMousePos
  338. local lastGoalPos
  339. local DRAG_SPEED = (9);
  340.  
  341. local function Update(dt)
  342. if not (startPos) then return end;
  343. if not (dragging) and (lastGoalPos) then
  344. gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
  345. return
  346. end;
  347.  
  348. local delta = (lastMousePos - UserInputService:GetMouseLocation())
  349. local xGoal = (startPos.X.Offset - delta.X);
  350. local yGoal = (startPos.Y.Offset - delta.Y);
  351. lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
  352. gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
  353. end;
  354.  
  355. gui.InputBegan:Connect(function(input)
  356. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  357. dragging = true
  358. dragStart = input.Position
  359. startPos = gui.Position
  360. lastMousePos = UserInputService:GetMouseLocation()
  361.  
  362. input.Changed:Connect(function()
  363. if input.UserInputState == Enum.UserInputState.End then
  364. dragging = false
  365. end
  366. end)
  367. end
  368. end)
  369.  
  370. gui.InputChanged:Connect(function(input)
  371. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  372. dragInput = input
  373. end
  374. end)
  375.  
  376. runService.Heartbeat:Connect(Update)
  377. end
  378.  
  379. coroutine.wrap(WOFUCY_fake_script)()
  380. end
  381. end)
  382.  
  383. task.defer(function()
  384. user_input.InputEnded:Connect(function(input, is_event)
  385. if not is_event and (input.KeyCode == Enum.KeyCode.LeftControl or input.KeyCode == Enum.KeyCode.Insert) then
  386.  
  387. if not ui.Enabled then
  388. nurysium:open()
  389.  
  390. task.delay(0.15, function()
  391. ui.Enabled = true
  392. end)
  393. else
  394. nurysium:close()
  395.  
  396. task.delay(1, function()
  397. ui.Enabled = false
  398. end)
  399. end
  400. end
  401. end)
  402. end)
  403. end
  404.  
  405. function nurysium: create_section(name: string, imageID: number)
  406. task.wait(0.5)
  407.  
  408. local Example = Instance.new("TextButton", ui.Background.Sections.real_sections)
  409. local ImageLabel = Instance.new("ImageLabel")
  410.  
  411. Example.Name = name
  412. Example.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  413. Example.BackgroundTransparency = 1.000
  414. Example.BorderColor3 = Color3.fromRGB(0, 0, 0)
  415. Example.BorderSizePixel = 0
  416. Example.Size = UDim2.new(0, 85, 0, 16)
  417. Example.ZIndex = 6
  418. Example.Font = Enum.Font.GothamBold --// game:GetObjects('rbxassetid://11702779517')[1]
  419. Example.Text = name
  420. Example.TextColor3 = Color3.fromRGB(231, 231, 243)
  421. Example.TextScaled = true
  422. Example.TextSize = 14.000
  423. Example.TextWrapped = true
  424. Example.TextTransparency = 1
  425. Example.TextXAlignment = Enum.TextXAlignment.Left
  426.  
  427. tween_service:Create(Example, TweenInfo.new(1.35, Enum.EasingStyle.Exponential), {TextTransparency = 0.45}):Play()
  428.  
  429. Example.MouseButton1Up:Connect(function()
  430. ui_data.current_section = Example.Text
  431.  
  432. for _, section in ui.Background.Sections.real_sections:GetChildren() do
  433.  
  434. if section:IsA("TextButton") then
  435. if section.Text:match(name) then
  436.  
  437. local click_sound = Instance.new("Sound", game:GetService("SoundService"))
  438.  
  439. click_sound.SoundId = "rbxassetid://8816939097"
  440. click_sound:Play()
  441.  
  442. animate_elements(1.65)
  443.  
  444. tween_service:Create(section, TweenInfo.new(0.65, Enum.EasingStyle.Exponential), {TextTransparency = 0}):Play()
  445. tween_service:Create(section.ImageLabel, TweenInfo.new(0.65, Enum.EasingStyle.Exponential), {ImageTransparency = 0}):Play()
  446.  
  447. else
  448. tween_service:Create(section, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {TextTransparency = 0.45}):Play()
  449. tween_service:Create(section.ImageLabel, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {ImageTransparency = 0.45}):Play()
  450. end
  451. end
  452.  
  453. end
  454. end)
  455.  
  456. Example.TouchTap:Connect(function()
  457. ui_data.current_section = Example.Text
  458.  
  459. for _, section in ui.Background.Sections.real_sections:GetChildren() do
  460.  
  461. if section:IsA("TextButton") then
  462. if section.Text:match(name) then
  463.  
  464. local click_sound = Instance.new("Sound", game:GetService("SoundService"))
  465.  
  466. click_sound.SoundId = "rbxassetid://8816939097"
  467. click_sound:Play()
  468.  
  469. animate_elements(1.65)
  470.  
  471. tween_service:Create(section, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {TextTransparency = 0}):Play()
  472. tween_service:Create(section.ImageLabel, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {ImageTransparency = 0}):Play()
  473.  
  474. if section.Text:match("Settings") then
  475. tween_service:Create(section.ImageLabel, TweenInfo.new(1.45, Enum.EasingStyle.Exponential), {Rotation = 90}):Play()
  476.  
  477. task.delay(4, function()
  478. tween_service:Create(section.ImageLabel, TweenInfo.new(1.45, Enum.EasingStyle.Exponential), {Rotation = 0}):Play()
  479. end)
  480. end
  481. else
  482. tween_service:Create(section, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {TextTransparency = 0.45}):Play()
  483. tween_service:Create(section.ImageLabel, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {ImageTransparency = 0.45}):Play()
  484. end
  485. end
  486.  
  487. end
  488. end)
  489.  
  490. ImageLabel.Parent = Example
  491. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  492. ImageLabel.BackgroundTransparency = 1.000
  493. ImageLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  494. ImageLabel.BorderSizePixel = 0
  495. ImageLabel.Position = UDim2.new(-0.257435054, 0, 0.0446243286, 0)
  496. ImageLabel.Size = UDim2.new(0, 13, 0, 13)
  497. ImageLabel.ZIndex = 6
  498. ImageLabel.ImageTransparency = 1
  499. ImageLabel.Image = `rbxassetid://{imageID}`
  500.  
  501. tween_service:Create(ImageLabel, TweenInfo.new(3, Enum.EasingStyle.Exponential), {ImageTransparency = 0.45}):Play()
  502. end
  503.  
  504. function nurysium: create_toggle(name: string, section_name: string, callback)
  505. task.wait(0.15)
  506.  
  507. callback = callback or function() end
  508. local toggled = false
  509.  
  510. local Example = Instance.new("Frame")
  511. local UICorner = Instance.new("UICorner")
  512. local UIStroke = Instance.new("UIStroke")
  513. local UIGradient = Instance.new("UIGradient")
  514. local Hitbox = Instance.new("TextButton")
  515. local UIGradient_2 = Instance.new("UIGradient")
  516. local Title = Instance.new("TextLabel")
  517. local Toggle = Instance.new("Frame")
  518. local Dot = Instance.new("Frame")
  519. local UICorner_2 = Instance.new("UICorner")
  520. local UIStroke_2 = Instance.new("UIStroke")
  521. local UICorner_3 = Instance.new("UICorner")
  522.  
  523. Example.Name = name
  524. Example.Parent = ui.Background["functions_frame"]
  525. Example.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  526. Example.BorderColor3 = Color3.fromRGB(0, 0, 0)
  527. Example.BorderSizePixel = 0
  528. Example.Position = UDim2.new(0.0428211577, 0, 0.0157480314, 0)
  529. Example.Size = UDim2.new(0, 380, 0, 43)
  530. Example.ZIndex = 10
  531.  
  532. UICorner.CornerRadius = UDim.new(0, 10)
  533. UICorner.Parent = Example
  534.  
  535. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  536. UIStroke.Color = Color3.fromRGB(255, 255, 255)
  537. UIStroke.Thickness = 4
  538. UIStroke.Parent = Example
  539.  
  540. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(39, 36, 47)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(46, 43, 56))}
  541. UIGradient.Rotation = 36
  542. UIGradient.Parent = UIStroke
  543.  
  544. Hitbox.Name = "Hitbox"
  545. Hitbox.Parent = Example
  546. Hitbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  547. Hitbox.BackgroundTransparency = 1.000
  548. Hitbox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  549. Hitbox.BorderSizePixel = 0
  550. Hitbox.Size = UDim2.new(1, 0, 1, 0)
  551. Hitbox.Font = Enum.Font.SourceSans
  552. Hitbox.TextColor3 = Color3.fromRGB(0, 0, 0)
  553. Hitbox.TextSize = 1.000
  554. Hitbox.TextTransparency = 1.000
  555.  
  556. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(39, 36, 47)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(33, 31, 40))}
  557. UIGradient_2.Rotation = -113
  558. UIGradient_2.Parent = Example
  559.  
  560. Title.Name = "Title"
  561. Title.Parent = Example
  562. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  563. Title.BackgroundTransparency = 1.000
  564. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  565. Title.BorderSizePixel = 0
  566. Title.Position = UDim2.new(0.0449240729, 0, 0.275129884, 0)
  567. Title.Size = UDim2.new(0, 140, 0, 20)
  568. Title.ZIndex = 10
  569. Title.Font = Enum.Font.GothamBold --// game:GetObjects('rbxassetid://11702779517')[1]
  570. Title.Text = name
  571. Title.TextColor3 = Color3.fromRGB(231, 231, 243)
  572. Title.TextScaled = true
  573. Title.TextSize = 14.000
  574. Title.TextWrapped = true
  575. Title.TextXAlignment = Enum.TextXAlignment.Left
  576.  
  577. Toggle.Name = "Toggle"
  578. Toggle.Parent = Example
  579. Toggle.BackgroundColor3 = Color3.fromRGB(27, 24, 35)
  580. Toggle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  581. Toggle.BorderSizePixel = 0
  582. Toggle.Position = UDim2.new(0.841389358, 0, 0.279069781, 0)
  583. Toggle.Size = UDim2.new(0, 38, 0, 18)
  584. Toggle.ZIndex = 15
  585.  
  586. Dot.Name = "Dot"
  587. Dot.Parent = Toggle
  588. Dot.BackgroundColor3 = Color3.fromRGB(37, 35, 48)
  589. Dot.BorderColor3 = Color3.fromRGB(0, 0, 0)
  590. Dot.BorderSizePixel = 0
  591. Dot.Position = UDim2.new(0.149068192, 0, 0.22351414, 0)
  592. Dot.Size = UDim2.new(0, 10, 0, 10)
  593. Dot.ZIndex = 15
  594.  
  595. UICorner_2.CornerRadius = UDim.new(1, 0)
  596. UICorner_2.Parent = Dot
  597.  
  598. UIStroke_2.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  599. UIStroke_2.Color = Color3.fromRGB(40, 39, 45)
  600. UIStroke_2.Thickness = 1.7999999523162842
  601. UIStroke_2.Parent = Toggle
  602.  
  603. UICorner_3.CornerRadius = UDim.new(0, 10)
  604. UICorner_3.Parent = Toggle
  605.  
  606. game:GetService("RunService").Heartbeat:Connect(function()
  607. if not section_name:match(ui_data.current_section) and not table.find(search_table, name)then
  608. Example.Visible = false
  609. else
  610. Example.Visible = true
  611. end
  612. end)
  613.  
  614. Hitbox.MouseButton1Up:Connect(function()
  615. toggled = not toggled
  616.  
  617. callback(toggled)
  618.  
  619. if toggled then
  620.  
  621. tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  622. Position = UDim2.new(0.600, 0, 0.224, 0),
  623. BackgroundColor3 = Color3.fromRGB(124, 120, 218)
  624. }):Play()
  625.  
  626. tween_service:Create(UIStroke_2, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  627. Transparency = 0.5,
  628. Color = Color3.fromRGB(59, 58, 151)
  629. }):Play()
  630.  
  631. tween_service:Create(Toggle, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  632. BackgroundColor3 = Color3.fromRGB(62, 61, 174)
  633. }):Play()
  634.  
  635. else
  636.  
  637. tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  638. Position = UDim2.new(0.149, 0, 0.224, 0)
  639. }):Play()
  640.  
  641. tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  642. BackgroundColor3 = Color3.fromRGB(37, 35, 48)
  643. }):Play()
  644.  
  645. tween_service:Create(UIStroke_2, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  646. Transparency = 0,
  647. Color = Color3.fromRGB(40, 39, 45)
  648. }):Play()
  649.  
  650. tween_service:Create(Toggle, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  651. BackgroundColor3 = Color3.fromRGB(27, 24, 35)
  652. }):Play()
  653. end
  654. end)
  655.  
  656. Hitbox.TouchTap:Connect(function()
  657. toggled = not toggled
  658.  
  659. callback(toggled)
  660.  
  661. if toggled then
  662.  
  663. tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  664. Position = UDim2.new(0.600, 0, 0.224, 0),
  665. BackgroundColor3 = Color3.fromRGB(124, 120, 218)
  666. }):Play()
  667.  
  668. tween_service:Create(UIStroke_2, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  669. Transparency = 0.5,
  670. Color = Color3.fromRGB(59, 58, 151)
  671. }):Play()
  672.  
  673. tween_service:Create(Toggle, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  674. BackgroundColor3 = Color3.fromRGB(62, 61, 174)
  675. }):Play()
  676.  
  677. else
  678.  
  679. tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  680. Position = UDim2.new(0.149, 0, 0.224, 0)
  681. }):Play()
  682.  
  683. tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  684. BackgroundColor3 = Color3.fromRGB(37, 35, 48)
  685. }):Play()
  686.  
  687. tween_service:Create(UIStroke_2, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  688. Transparency = 0,
  689. Color = Color3.fromRGB(40, 39, 45)
  690. }):Play()
  691.  
  692. tween_service:Create(Toggle, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  693. BackgroundColor3 = Color3.fromRGB(27, 24, 35)
  694. }):Play()
  695. end
  696. end)
  697.  
  698. end
  699.  
  700. return nurysium
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement