Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // Thank you, Nurysium
- local nurysium = {}
- local tween_service = game:GetService("TweenService")
- local user_input = game:GetService("UserInputService")
- local ui = nil
- local search_table = {}
- local ui_data = {
- current_section = "nil"
- }
- local function animate_elements(speed: number)
- ui.Background["functions_frame"].UIListLayout.Padding = UDim.new(0.5, 0)
- tween_service:Create(ui.Background["functions_frame"].UIListLayout, TweenInfo.new(speed, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Padding = UDim.new(0.02, 0)
- }):Play()
- end
- function nurysium: open()
- task.delay(0.2, function()
- ui.Background["functions_frame"].Visible = true
- ui.Background.Sections.Visible = true
- ui.Background.Search.Visible = true
- end)
- tween_service:Create(ui.Background["functions_frame"].UIListLayout, TweenInfo.new(2, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Padding = UDim.new(0.02, 0)
- }):Play()
- tween_service:Create(ui.Background.Title, TweenInfo.new(1.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- TextTransparency = 0
- }):Play()
- tween_service:Create(ui.Background, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Size = UDim2.new(0, 655, 0, 325),
- Position = UDim2.new(0.4, 0, 0.3, 0),
- BackgroundTransparency = 0
- }):Play()
- end
- function nurysium: close()
- task.delay(0.35, function()
- ui.Background["functions_frame"].Visible = false
- ui.Background.Sections.Visible = false
- ui.Background.Search.Visible = false
- end)
- tween_service:Create(ui.Background["functions_frame"].UIListLayout, TweenInfo.new(0.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Padding = UDim.new(0.02, 0)
- }):Play()
- tween_service:Create(ui.Background.Title, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- TextTransparency = 1
- }):Play()
- tween_service:Create(ui.Background, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Size = UDim2.new(0, 0, 0, 0),
- Position = UDim2.new(0.510, 0, 1, 0),
- BackgroundTransparency = 1
- }):Play()
- end
- function nurysium: init(name: string, is_draggable: boolean, parent)
- if parent:FindFirstChild(name) then
- parent:FindFirstChild(name):Destroy()
- end
- ui = Instance.new("ScreenGui")
- local Background = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local Sections = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local CornerFix = Instance.new("Frame")
- local UIGradient = Instance.new("UIGradient")
- local real_sections = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- local UIGradient_2 = Instance.new("UIGradient")
- local logo = Instance.new("ImageButton")
- local UIGradient_3 = Instance.new("UIGradient")
- local Title = Instance.new("TextLabel")
- local functions_frame = Instance.new("ScrollingFrame")
- local UIPadding = Instance.new("UIPadding")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local Search = Instance.new("Frame")
- local UICorner_3 = Instance.new("UICorner")
- local ImageLabel = Instance.new("ImageLabel")
- local Bar = Instance.new("TextBox")
- local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
- local UIGradient_4 = Instance.new("UIGradient")
- ui.Name = name
- ui.Parent = parent
- ui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Background.Name = "Background"
- Background.Parent = ui
- Background.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Background.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Background.BorderSizePixel = 0
- Background.Position = UDim2.new(0.4, 0, 0.3, 0)
- Background.Size = UDim2.new(0, 655, 0, 325)
- Background.ZIndex = 5
- UICorner.CornerRadius = UDim.new(0, 15)
- UICorner.Parent = Background
- Sections.Name = "Sections"
- Sections.Parent = Background
- Sections.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Sections.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Sections.BorderSizePixel = 0
- Sections.Position = UDim2.new(-0.00157281861, 0, 0, 0)
- Sections.Size = UDim2.new(0.283998042, 0, 1, 0)
- UICorner_2.CornerRadius = UDim.new(0, 15)
- UICorner_2.Parent = Sections
- CornerFix.Name = "CornerFix"
- CornerFix.Parent = Sections
- CornerFix.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CornerFix.BorderColor3 = Color3.fromRGB(0, 0, 0)
- CornerFix.BorderSizePixel = 0
- CornerFix.Position = UDim2.new(0.918615103, 0, 0, 0)
- CornerFix.Size = UDim2.new(0.0813859329, 0, 1, 0)
- UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(37, 34, 45)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(35, 33, 43))}
- UIGradient.Rotation = -94
- UIGradient.Parent = CornerFix
- real_sections.Name = "real_sections"
- real_sections.Parent = Sections
- real_sections.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- real_sections.BackgroundTransparency = 1.000
- real_sections.BorderColor3 = Color3.fromRGB(0, 0, 0)
- real_sections.BorderSizePixel = 0
- real_sections.Position = UDim2.new(0.249553874, 0, 0.170943886, 0)
- real_sections.Size = UDim2.new(0, 107, 0, 230)
- real_sections.ZIndex = 5
- UIListLayout.Parent = real_sections
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0.0450000018, 0)
- UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(39, 36, 47)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(33, 31, 40))}
- UIGradient_2.Rotation = -113
- UIGradient_2.Parent = Sections
- logo.Name = "logo"
- logo.Parent = Sections
- logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- logo.BackgroundTransparency = 1.000
- logo.BorderColor3 = Color3.fromRGB(0, 0, 0)
- logo.BorderSizePixel = 0
- logo.Position = UDim2.new(0.710735202, 0, 0.664615393, 0)
- logo.Size = UDim2.new(0, 100, 0, 100)
- logo.ZIndex = 2
- logo.Image = "rbxassetid://17441779136"
- UIGradient_3.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(0.51, 1.00), NumberSequenceKeypoint.new(1.00, 1.00)}
- UIGradient_3.Parent = logo
- Title.Name = "Title"
- Title.Parent = Background
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Title.BorderSizePixel = 0
- Title.Position = UDim2.new(0.0269060303, 0, 0.035999544, 0)
- Title.Size = UDim2.new(0, 70, 0, 20)
- Title.Font = Enum.Font.GothamBold --// game:GetObjects('rbxassetid://11702779517')[1]
- Title.Text = name
- Title.TextColor3 = Color3.fromRGB(231, 231, 243)
- Title.TextScaled = true
- Title.TextSize = 14.000
- Title.TextWrapped = true
- local UIGradient = Instance.new("UIGradient")
- UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(141, 130, 170)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(208, 196, 252))}
- UIGradient.Offset = Vector2.new(0.00999999978, 0)
- UIGradient.Rotation = -113
- UIGradient.Parent = Title
- local function gradientMover()
- local script = Instance.new('LocalScript', UIGradient)
- local animation_done = true
- while animation_done do
- animation_done = false
- game:GetService('TweenService'):Create(UIGradient, TweenInfo.new(3, Enum.EasingStyle.Quad), {
- Rotation = 53
- }):Play()
- task.wait(3)
- game:GetService('TweenService'):Create(UIGradient, TweenInfo.new(3, Enum.EasingStyle.Quad), {
- Rotation = -180
- }):Play()
- task.wait(3)
- animation_done = true
- end
- end
- coroutine.wrap(gradientMover)()
- functions_frame.Name = "functions_frame"
- functions_frame.Parent = Background
- functions_frame.Active = true
- functions_frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- functions_frame.BackgroundTransparency = 1.000
- functions_frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- functions_frame.BorderSizePixel = 0
- functions_frame.Position = UDim2.new(0.31407398, 0, 0.170943886, 0)
- functions_frame.Size = UDim2.new(0, 397, 0, 254)
- functions_frame.ScrollBarThickness = 0
- UIPadding.Parent = functions_frame
- UIPadding.PaddingTop = UDim.new(0.00999999978, 0)
- UIListLayout_2.Parent = functions_frame
- UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout_2.Padding = UDim.new(0.0199999996, 0)
- Search.Name = "Search"
- Search.Parent = Background
- Search.BackgroundColor3 = Color3.fromRGB(33, 32, 40)
- Search.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Search.BorderSizePixel = 0
- Search.Position = UDim2.new(0.775426149, 0, 0.0338461548, 0)
- Search.Size = UDim2.new(0, 120, 0, 35)
- Search.ZIndex = 10
- UICorner_3.CornerRadius = UDim.new(0, 15)
- UICorner_3.Parent = Search
- ImageLabel.Parent = Search
- ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageLabel.BackgroundTransparency = 1.000
- ImageLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ImageLabel.BorderSizePixel = 0
- ImageLabel.Position = UDim2.new(0.0675648972, 0, 0.244624332, 0)
- ImageLabel.Size = UDim2.new(0, 17, 0, 17)
- ImageLabel.ZIndex = 12
- ImageLabel.Image = "rbxassetid://17441620727"
- ImageLabel.ImageTransparency = 0.450
- Bar.Name = "Bar"
- Bar.Parent = Search
- Bar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Bar.BackgroundTransparency = 1.000
- Bar.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Bar.BorderSizePixel = 0
- Bar.Position = UDim2.new(0.275000006, 0, 0.0199957713, 0)
- Bar.Size = UDim2.new(0, 87, 0, 34)
- Bar.SizeConstraint = Enum.SizeConstraint.RelativeXX
- Bar.ZIndex = 7
- Bar.ClearTextOnFocus = false
- Bar.Font = Enum.Font.GothamBold --// game:GetObjects('rbxassetid://11702779517')[1]
- Bar.PlaceholderText = "Search"
- Bar.Text = ""
- Bar.TextColor3 = Color3.fromRGB(231, 231, 243)
- Bar.TextSize = 14.000
- Bar.TextTransparency = 0.450
- Bar.TextWrapped = true
- Bar.TextXAlignment = Enum.TextXAlignment.Left
- local function bar_handler()
- local script = Instance.new('LocalScript', Bar)
- Bar:GetPropertyChangedSignal("Text"):Connect(function()
- if Bar.Text:len() > 1 then
- animate_elements(1.35)
- for _, element in functions_frame:GetDescendants() do
- if element:IsA("Frame") and element:FindFirstChild("Title") then
- if string.find(element.Title.Text:lower(), Bar.Text:lower()) then
- table.insert(search_table, element.Name)
- else
- if table.find(search_table, element.Name) then
- table.remove(search_table, table.find(search_table, element.Name))
- end
- end
- end
- end
- else
- table.clear(search_table)
- end
- end)
- end
- coroutine.wrap(bar_handler)()
- UIAspectRatioConstraint.Parent = Background
- UIAspectRatioConstraint.AspectRatio = 1.850
- UIGradient_4.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(30, 28, 39)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(24, 22, 31))}
- UIGradient_4.Rotation = -113
- UIGradient_4.Parent = Background
- tween_service:Create(UIAspectRatioConstraint, TweenInfo.new(1.65, Enum.EasingStyle.Exponential), {AspectRatio = 1.850}):Play()
- task.delay(0.25, function()
- tween_service:Create(Title, TweenInfo.new(1.85, Enum.EasingStyle.Exponential), {TextTransparency = 0}):Play()
- end)
- task.defer(function()
- if is_draggable then
- local function WOFUCY_fake_script() -- Background.drag
- local script = Instance.new('LocalScript', Background)
- local UserInputService = game:GetService("UserInputService")
- local runService = (game:GetService("RunService"));
- local gui = script.Parent
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function Lerp(a, b, m)
- return a + (b - a) * m
- end;
- local lastMousePos
- local lastGoalPos
- local DRAG_SPEED = (9);
- local function Update(dt)
- if not (startPos) then return end;
- if not (dragging) and (lastGoalPos) then
- 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))
- return
- end;
- local delta = (lastMousePos - UserInputService:GetMouseLocation())
- local xGoal = (startPos.X.Offset - delta.X);
- local yGoal = (startPos.Y.Offset - delta.Y);
- lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
- 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))
- end;
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- lastMousePos = UserInputService:GetMouseLocation()
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- runService.Heartbeat:Connect(Update)
- end
- coroutine.wrap(WOFUCY_fake_script)()
- end
- end)
- task.defer(function()
- user_input.InputEnded:Connect(function(input, is_event)
- if not is_event and (input.KeyCode == Enum.KeyCode.LeftControl or input.KeyCode == Enum.KeyCode.Insert) then
- if not ui.Enabled then
- nurysium:open()
- task.delay(0.15, function()
- ui.Enabled = true
- end)
- else
- nurysium:close()
- task.delay(1, function()
- ui.Enabled = false
- end)
- end
- end
- end)
- end)
- end
- function nurysium: create_section(name: string, imageID: number)
- task.wait(0.5)
- local Example = Instance.new("TextButton", ui.Background.Sections.real_sections)
- local ImageLabel = Instance.new("ImageLabel")
- Example.Name = name
- Example.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Example.BackgroundTransparency = 1.000
- Example.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Example.BorderSizePixel = 0
- Example.Size = UDim2.new(0, 85, 0, 16)
- Example.ZIndex = 6
- Example.Font = Enum.Font.GothamBold --// game:GetObjects('rbxassetid://11702779517')[1]
- Example.Text = name
- Example.TextColor3 = Color3.fromRGB(231, 231, 243)
- Example.TextScaled = true
- Example.TextSize = 14.000
- Example.TextWrapped = true
- Example.TextTransparency = 1
- Example.TextXAlignment = Enum.TextXAlignment.Left
- tween_service:Create(Example, TweenInfo.new(1.35, Enum.EasingStyle.Exponential), {TextTransparency = 0.45}):Play()
- Example.MouseButton1Up:Connect(function()
- ui_data.current_section = Example.Text
- for _, section in ui.Background.Sections.real_sections:GetChildren() do
- if section:IsA("TextButton") then
- if section.Text:match(name) then
- local click_sound = Instance.new("Sound", game:GetService("SoundService"))
- click_sound.SoundId = "rbxassetid://8816939097"
- click_sound:Play()
- animate_elements(1.65)
- tween_service:Create(section, TweenInfo.new(0.65, Enum.EasingStyle.Exponential), {TextTransparency = 0}):Play()
- tween_service:Create(section.ImageLabel, TweenInfo.new(0.65, Enum.EasingStyle.Exponential), {ImageTransparency = 0}):Play()
- else
- tween_service:Create(section, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {TextTransparency = 0.45}):Play()
- tween_service:Create(section.ImageLabel, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {ImageTransparency = 0.45}):Play()
- end
- end
- end
- end)
- Example.TouchTap:Connect(function()
- ui_data.current_section = Example.Text
- for _, section in ui.Background.Sections.real_sections:GetChildren() do
- if section:IsA("TextButton") then
- if section.Text:match(name) then
- local click_sound = Instance.new("Sound", game:GetService("SoundService"))
- click_sound.SoundId = "rbxassetid://8816939097"
- click_sound:Play()
- animate_elements(1.65)
- tween_service:Create(section, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {TextTransparency = 0}):Play()
- tween_service:Create(section.ImageLabel, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {ImageTransparency = 0}):Play()
- if section.Text:match("Settings") then
- tween_service:Create(section.ImageLabel, TweenInfo.new(1.45, Enum.EasingStyle.Exponential), {Rotation = 90}):Play()
- task.delay(4, function()
- tween_service:Create(section.ImageLabel, TweenInfo.new(1.45, Enum.EasingStyle.Exponential), {Rotation = 0}):Play()
- end)
- end
- else
- tween_service:Create(section, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {TextTransparency = 0.45}):Play()
- tween_service:Create(section.ImageLabel, TweenInfo.new(0.45, Enum.EasingStyle.Exponential), {ImageTransparency = 0.45}):Play()
- end
- end
- end
- end)
- ImageLabel.Parent = Example
- ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageLabel.BackgroundTransparency = 1.000
- ImageLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ImageLabel.BorderSizePixel = 0
- ImageLabel.Position = UDim2.new(-0.257435054, 0, 0.0446243286, 0)
- ImageLabel.Size = UDim2.new(0, 13, 0, 13)
- ImageLabel.ZIndex = 6
- ImageLabel.ImageTransparency = 1
- ImageLabel.Image = `rbxassetid://{imageID}`
- tween_service:Create(ImageLabel, TweenInfo.new(3, Enum.EasingStyle.Exponential), {ImageTransparency = 0.45}):Play()
- end
- function nurysium: create_toggle(name: string, section_name: string, callback)
- task.wait(0.15)
- callback = callback or function() end
- local toggled = false
- local Example = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- local UIGradient = Instance.new("UIGradient")
- local Hitbox = Instance.new("TextButton")
- local UIGradient_2 = Instance.new("UIGradient")
- local Title = Instance.new("TextLabel")
- local Toggle = Instance.new("Frame")
- local Dot = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local UIStroke_2 = Instance.new("UIStroke")
- local UICorner_3 = Instance.new("UICorner")
- Example.Name = name
- Example.Parent = ui.Background["functions_frame"]
- Example.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Example.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Example.BorderSizePixel = 0
- Example.Position = UDim2.new(0.0428211577, 0, 0.0157480314, 0)
- Example.Size = UDim2.new(0, 380, 0, 43)
- Example.ZIndex = 10
- UICorner.CornerRadius = UDim.new(0, 10)
- UICorner.Parent = Example
- UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- UIStroke.Color = Color3.fromRGB(255, 255, 255)
- UIStroke.Thickness = 4
- UIStroke.Parent = Example
- UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(39, 36, 47)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(46, 43, 56))}
- UIGradient.Rotation = 36
- UIGradient.Parent = UIStroke
- Hitbox.Name = "Hitbox"
- Hitbox.Parent = Example
- Hitbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Hitbox.BackgroundTransparency = 1.000
- Hitbox.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Hitbox.BorderSizePixel = 0
- Hitbox.Size = UDim2.new(1, 0, 1, 0)
- Hitbox.Font = Enum.Font.SourceSans
- Hitbox.TextColor3 = Color3.fromRGB(0, 0, 0)
- Hitbox.TextSize = 1.000
- Hitbox.TextTransparency = 1.000
- UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(39, 36, 47)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(33, 31, 40))}
- UIGradient_2.Rotation = -113
- UIGradient_2.Parent = Example
- Title.Name = "Title"
- Title.Parent = Example
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Title.BorderSizePixel = 0
- Title.Position = UDim2.new(0.0449240729, 0, 0.275129884, 0)
- Title.Size = UDim2.new(0, 140, 0, 20)
- Title.ZIndex = 10
- Title.Font = Enum.Font.GothamBold --// game:GetObjects('rbxassetid://11702779517')[1]
- Title.Text = name
- Title.TextColor3 = Color3.fromRGB(231, 231, 243)
- Title.TextScaled = true
- Title.TextSize = 14.000
- Title.TextWrapped = true
- Title.TextXAlignment = Enum.TextXAlignment.Left
- Toggle.Name = "Toggle"
- Toggle.Parent = Example
- Toggle.BackgroundColor3 = Color3.fromRGB(27, 24, 35)
- Toggle.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Toggle.BorderSizePixel = 0
- Toggle.Position = UDim2.new(0.841389358, 0, 0.279069781, 0)
- Toggle.Size = UDim2.new(0, 38, 0, 18)
- Toggle.ZIndex = 15
- Dot.Name = "Dot"
- Dot.Parent = Toggle
- Dot.BackgroundColor3 = Color3.fromRGB(37, 35, 48)
- Dot.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Dot.BorderSizePixel = 0
- Dot.Position = UDim2.new(0.149068192, 0, 0.22351414, 0)
- Dot.Size = UDim2.new(0, 10, 0, 10)
- Dot.ZIndex = 15
- UICorner_2.CornerRadius = UDim.new(1, 0)
- UICorner_2.Parent = Dot
- UIStroke_2.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- UIStroke_2.Color = Color3.fromRGB(40, 39, 45)
- UIStroke_2.Thickness = 1.7999999523162842
- UIStroke_2.Parent = Toggle
- UICorner_3.CornerRadius = UDim.new(0, 10)
- UICorner_3.Parent = Toggle
- game:GetService("RunService").Heartbeat:Connect(function()
- if not section_name:match(ui_data.current_section) and not table.find(search_table, name)then
- Example.Visible = false
- else
- Example.Visible = true
- end
- end)
- Hitbox.MouseButton1Up:Connect(function()
- toggled = not toggled
- callback(toggled)
- if toggled then
- tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Position = UDim2.new(0.600, 0, 0.224, 0),
- BackgroundColor3 = Color3.fromRGB(124, 120, 218)
- }):Play()
- tween_service:Create(UIStroke_2, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Transparency = 0.5,
- Color = Color3.fromRGB(59, 58, 151)
- }):Play()
- tween_service:Create(Toggle, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- BackgroundColor3 = Color3.fromRGB(62, 61, 174)
- }):Play()
- else
- tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Position = UDim2.new(0.149, 0, 0.224, 0)
- }):Play()
- tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- BackgroundColor3 = Color3.fromRGB(37, 35, 48)
- }):Play()
- tween_service:Create(UIStroke_2, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Transparency = 0,
- Color = Color3.fromRGB(40, 39, 45)
- }):Play()
- tween_service:Create(Toggle, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- BackgroundColor3 = Color3.fromRGB(27, 24, 35)
- }):Play()
- end
- end)
- Hitbox.TouchTap:Connect(function()
- toggled = not toggled
- callback(toggled)
- if toggled then
- tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Position = UDim2.new(0.600, 0, 0.224, 0),
- BackgroundColor3 = Color3.fromRGB(124, 120, 218)
- }):Play()
- tween_service:Create(UIStroke_2, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Transparency = 0.5,
- Color = Color3.fromRGB(59, 58, 151)
- }):Play()
- tween_service:Create(Toggle, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- BackgroundColor3 = Color3.fromRGB(62, 61, 174)
- }):Play()
- else
- tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Position = UDim2.new(0.149, 0, 0.224, 0)
- }):Play()
- tween_service:Create(Dot, TweenInfo.new(0.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- BackgroundColor3 = Color3.fromRGB(37, 35, 48)
- }):Play()
- tween_service:Create(UIStroke_2, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- Transparency = 0,
- Color = Color3.fromRGB(40, 39, 45)
- }):Play()
- tween_service:Create(Toggle, TweenInfo.new(0.35, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
- BackgroundColor3 = Color3.fromRGB(27, 24, 35)
- }):Play()
- end
- end)
- end
- return nurysium
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement