Advertisement
YoungAoS

NewUIVisualise

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