local Flux = {RainbowColorValue = 0, HueSelectionPosition = 0, BlurEnabled = false} local PresetColor = Color3.fromRGB(255, 110, 48) local ColorElements = {} local CoreGui = game:GetService("CoreGui") local ReplicatedStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local RunService = game:GetService("RunService") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Mouse = LocalPlayer:GetMouse() local CloseBind = Enum.KeyCode.RightControl local UIBlur = nil local Lighting = game:GetService("Lighting") local HttpService = game:GetService("HttpService") local FluxLib = Instance.new("ScreenGui") FluxLib.Name = "FluxLib" FluxLib.Parent = game.CoreGui FluxLib.ZIndexBehavior = Enum.ZIndexBehavior.Sibling coroutine.wrap( function() while wait() do Flux.RainbowColorValue = Flux.RainbowColorValue + 1 / 255 Flux.HueSelectionPosition = Flux.HueSelectionPosition + 1 if Flux.RainbowColorValue >= 1 then Flux.RainbowColorValue = 0 end if Flux.HueSelectionPosition == 80 then Flux.HueSelectionPosition = 0 end end end )() local function MakeDraggable(topbarobject, object) local Dragging = nil local DragInput = nil local DragStart = nil local StartPosition = nil local function Update(input) local Delta = input.Position - DragStart local pos = UDim2.new( StartPosition.X.Scale, StartPosition.X.Offset + Delta.X, StartPosition.Y.Scale, StartPosition.Y.Offset + Delta.Y ) object.Position = pos end topbarobject.InputBegan:Connect( function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then Dragging = true DragStart = input.Position StartPosition = object.Position input.Changed:Connect( function() if input.UserInputState == Enum.UserInputState.End then Dragging = false end end ) end end ) topbarobject.InputChanged:Connect( function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then DragInput = input end end ) UserInputService.InputChanged:Connect( function(input) if input == DragInput and Dragging then Update(input) end end ) end function Flux:Window(text, bottom,mainclr,toclose) CloseBind = toclose or Enum.KeyCode.RightControl PresetColor = mainclr or Color3.fromRGB(255, 110, 48) UIBlur = Lighting:FindFirstChild("FluxUIBlur") if not UIBlur then UIBlur = Instance.new("BlurEffect") UIBlur.Name = "FluxUIBlur" UIBlur.Size = 0 UIBlur.Parent = Lighting end local fs = false local MainFrame = Instance.new("Frame") local MainCorner = Instance.new("UICorner") local LeftFrame = Instance.new("Frame") local LeftCorner = Instance.new("UICorner") local GlowTabHolder = Instance.new("ImageLabel") local Title = Instance.new("TextLabel") local BottomText = Instance.new("TextLabel") local TabHold = Instance.new("Frame") local TabLayout = Instance.new("UIListLayout") local Drag = Instance.new("Frame") local ContainerFolder = Instance.new("Folder") MainFrame.Name = "MainFrame" MainFrame.Parent = FluxLib MainFrame.AnchorPoint = Vector2.new(0.5, 0.5) MainFrame.BackgroundColor3 = Color3.fromRGB(50, 53, 59) MainFrame.ClipsDescendants = true MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0) MainFrame.Size = UDim2.new(0, 706, 0, 484) MainCorner.CornerRadius = UDim.new(0, 5) MainCorner.Name = "MainCorner" MainCorner.Parent = MainFrame LeftFrame.Name = "LeftFrame" LeftFrame.Parent = MainFrame LeftFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54) LeftFrame.Size = UDim2.new(0, 205, 0, 484) LeftCorner.CornerRadius = UDim.new(0, 5) LeftCorner.Name = "LeftCorner" LeftCorner.Parent = LeftFrame GlowTabHolder.Name = "GlowTabHolder" GlowTabHolder.Parent = LeftFrame GlowTabHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255) GlowTabHolder.BackgroundTransparency = 1.000 GlowTabHolder.BorderSizePixel = 0 GlowTabHolder.Position = UDim2.new(0, -15, 0, -15) GlowTabHolder.Size = UDim2.new(1, 30, 1, 30) GlowTabHolder.ZIndex = 0 GlowTabHolder.Image = "rbxassetid://4996891970" GlowTabHolder.ImageColor3 = Color3.fromRGB(15, 15, 15) GlowTabHolder.ScaleType = Enum.ScaleType.Slice GlowTabHolder.SliceCenter = Rect.new(20, 20, 280, 280) Title.Name = "Title" Title.Parent = LeftFrame Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundTransparency = 1.000 Title.Position = UDim2.new(0.097560972, 0, 0.0475206636, 0) Title.Size = UDim2.new(0, 111, 0, 34) Title.Font = Enum.Font.GothamBold Title.Text = text Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 25.000 Title.TextXAlignment = Enum.TextXAlignment.Left BottomText.Name = "BottomText" BottomText.Parent = LeftFrame BottomText.BackgroundColor3 = Color3.fromRGB(255, 255, 255) BottomText.BackgroundTransparency = 1.000 BottomText.Position = UDim2.new(0.097560972, 0, 0.0889999792, 0) BottomText.Size = UDim2.new(0, 113, 0, 28) BottomText.Font = Enum.Font.Gotham BottomText.Text = bottom BottomText.TextColor3 = Color3.fromRGB(255, 255, 255) BottomText.TextSize = 14.000 BottomText.TextTransparency = 0.300 BottomText.TextXAlignment = Enum.TextXAlignment.Left TabHold.Name = "TabHold" TabHold.Parent = LeftFrame TabHold.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TabHold.BackgroundTransparency = 1.000 TabHold.Position = UDim2.new(0, 0, 0.167355374, 0) TabHold.Size = UDim2.new(0, 205, 0, 403) TabLayout.Name = "TabLayout" TabLayout.Parent = TabHold TabLayout.SortOrder = Enum.SortOrder.LayoutOrder TabLayout.Padding = UDim.new(0, 3) Drag.Name = "Drag" Drag.Parent = MainFrame Drag.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Drag.BackgroundTransparency = 1.000 Drag.Position = UDim2.new(0.290368259, 0, 0, 0) Drag.Size = UDim2.new(0, 501, 0, 23) ContainerFolder.Name = "ContainerFolder" ContainerFolder.Parent = MainFrame MakeDraggable(Drag,MainFrame) MakeDraggable(LeftFrame,MainFrame) MainFrame:TweenSize(UDim2.new(0, 706, 0, 484), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) local uitoggled = false local function UpdateBlur() if UIBlur then if Flux.BlurEnabled and not uitoggled then TweenService:Create(UIBlur, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = 14}):Play() else TweenService:Create(UIBlur, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = 0}):Play() end end end -- Shared toggle function for both keybind and button local function ToggleUI() if uitoggled == false then MainFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) uitoggled = true UpdateBlur() wait(.5) FluxLib.Enabled = false else FluxLib.Enabled = true MainFrame:TweenSize(UDim2.new(0, 706, 0, 484), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) uitoggled = false UpdateBlur() end end UserInputService.InputBegan:Connect( function(io, p) if io.KeyCode == CloseBind then ToggleUI() end end ) function Flux:Notification(desc,buttontitle) for i, v in next, MainFrame:GetChildren() do if v.Name == "NotificationBase" then v:Destroy() end end local NotificationBase = Instance.new("TextButton") local NotificationBaseCorner = Instance.new("UICorner") local NotificationFrame = Instance.new("Frame") local NotificationFrameCorner = Instance.new("UICorner") local NotificationFrameGlow = Instance.new("ImageLabel") local NotificationTitle = Instance.new("TextLabel") local CloseBtn = Instance.new("TextButton") local CloseBtnCorner = Instance.new("UICorner") local NotificationDesc = Instance.new("TextLabel") NotificationBase.Name = "NotificationBase" NotificationBase.Parent = MainFrame NotificationBase.BackgroundColor3 = Color3.fromRGB(0, 0, 0) NotificationBase.BackgroundTransparency = 1 NotificationBase.Size = UDim2.new(0, 706, 0, 484) NotificationBase.AutoButtonColor = false NotificationBase.Font = Enum.Font.SourceSans NotificationBase.Text = "" NotificationBase.TextColor3 = Color3.fromRGB(0, 0, 0) NotificationBase.TextSize = 14.000 NotificationBase.Visible = true NotificationBaseCorner.CornerRadius = UDim.new(0, 5) NotificationBaseCorner.Name = "NotificationBaseCorner" NotificationBaseCorner.Parent = NotificationBase NotificationFrame.Name = "NotificationFrame" NotificationFrame.Parent = NotificationBase NotificationFrame.AnchorPoint = Vector2.new(0.5, 0.5) NotificationFrame.BackgroundColor3 = Color3.fromRGB(50, 53, 59) NotificationFrame.ClipsDescendants = true NotificationFrame.Position = UDim2.new(0.5, 0, 0.5, 0) NotificationFrame.Size = UDim2.new(0, 0, 0, 0) NotificationFrameCorner.CornerRadius = UDim.new(0, 5) NotificationFrameCorner.Name = "NotificationFrameCorner" NotificationFrameCorner.Parent = NotificationFrame NotificationFrameGlow.Name = "NotificationFrameGlow" NotificationFrameGlow.Parent = NotificationFrame NotificationFrameGlow.BackgroundColor3 = Color3.fromRGB(255, 255, 255) NotificationFrameGlow.BackgroundTransparency = 1.000 NotificationFrameGlow.BorderSizePixel = 0 NotificationFrameGlow.Position = UDim2.new(0, -15, 0, -15) NotificationFrameGlow.Size = UDim2.new(1, 30, 1, 30) NotificationFrameGlow.ZIndex = 0 NotificationFrameGlow.Image = "rbxassetid://4996891970" NotificationFrameGlow.ImageColor3 = Color3.fromRGB(15, 15, 15) NotificationFrameGlow.ScaleType = Enum.ScaleType.Slice NotificationFrameGlow.SliceCenter = Rect.new(20, 20, 280, 280) NotificationTitle.Name = "NotificationTitle" NotificationTitle.Parent = NotificationFrame NotificationTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255) NotificationTitle.BackgroundTransparency = 1.000 NotificationTitle.Position = UDim2.new(0.0400609747, 0, 0.0761325806, 0) NotificationTitle.Size = UDim2.new(0, 111, 0, 34) NotificationTitle.Font = Enum.Font.GothamBold NotificationTitle.Text = Title.Text .. " | NOTIFICATION" NotificationTitle.TextColor3 = Color3.fromRGB(255, 255, 255) NotificationTitle.TextSize = 24.000 NotificationTitle.TextXAlignment = Enum.TextXAlignment.Left NotificationTitle.TextTransparency = 1 CloseBtn.Name = "CloseBtn" CloseBtn.Parent = NotificationFrame CloseBtn.BackgroundColor3 = Color3.fromRGB(64, 68, 75) CloseBtn.ClipsDescendants = true CloseBtn.Position = UDim2.new(0.0403124988, 0, 0.720855951, 0) CloseBtn.Size = UDim2.new(0, 366, 0, 43) CloseBtn.AutoButtonColor = false CloseBtn.Font = Enum.Font.Gotham CloseBtn.Text = buttontitle CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255) CloseBtn.TextSize = 15.000 CloseBtn.TextTransparency = 1 CloseBtn.BackgroundTransparency = 1 CloseBtnCorner.CornerRadius = UDim.new(0, 4) CloseBtnCorner.Name = "CloseBtnCorner" CloseBtnCorner.Parent = CloseBtn NotificationDesc.Name = "NotificationDesc" NotificationDesc.Parent = NotificationFrame NotificationDesc.BackgroundColor3 = Color3.fromRGB(255, 255, 255) NotificationDesc.BackgroundTransparency = 1.000 NotificationDesc.Position = UDim2.new(0.112499997, 0, 0.266355127, 0) NotificationDesc.Size = UDim2.new(0, 309, 0, 82) NotificationDesc.Font = Enum.Font.Gotham NotificationDesc.Text = desc NotificationDesc.TextColor3 = Color3.fromRGB(255, 255, 255) NotificationDesc.TextSize = 15.000 NotificationDesc.TextWrapped = true NotificationDesc.TextTransparency = 1 CloseBtn.MouseEnter:Connect(function() TweenService:Create( CloseBtn, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() end) CloseBtn.MouseLeave:Connect(function() TweenService:Create( CloseBtn, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() end) CloseBtn.MouseButton1Click:Connect(function() TweenService:Create( NotificationDesc, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1} ):Play() TweenService:Create( CloseBtn, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1} ):Play() TweenService:Create( NotificationTitle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1} ):Play() TweenService:Create( CloseBtn, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1} ):Play() wait(.4) CloseBtn.Visible = false NotificationFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) wait(.2) TweenService:Create( NotificationBase, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1} ):Play() wait(.2) NotificationBase.Visible = false end) TweenService:Create( NotificationBase, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0.550} ):Play() wait(.1) NotificationFrame:TweenSize(UDim2.new(0, 400, 0, 214), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) wait(.4) TweenService:Create( NotificationDesc, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = .3} ):Play() TweenService:Create( CloseBtn, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = .3} ):Play() TweenService:Create( NotificationTitle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() TweenService:Create( CloseBtn, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0} ):Play() end local function UpdatePresetColor(newColor) PresetColor = newColor for _, elementData in ipairs(ColorElements) do if elementData.element and elementData.element.Parent then -- Skip toggle/dropdown elements that are in the "off" state if (elementData.isToggle or elementData.isDropdown) and elementData.getToggled and not elementData.getToggled() then continue end if elementData.type == "BackgroundColor3" then elementData.element.BackgroundColor3 = newColor elseif elementData.type == "ImageColor3" then elementData.element.ImageColor3 = newColor elseif elementData.type == "TextColor3" then elementData.element.TextColor3 = newColor end end end end local Tabs = {} function Tabs:Tab(text,ico) local Tab = Instance.new("TextButton") local TabIcon = Instance.new("ImageLabel") local TabTitle = Instance.new("TextLabel") Tab.Name = "Tab" Tab.Parent = TabHold Tab.BackgroundColor3 = PresetColor Tab.BorderSizePixel = 0 Tab.Size = UDim2.new(0, 205, 0, 40) Tab.AutoButtonColor = false Tab.Font = Enum.Font.SourceSans Tab.Text = "" Tab.TextColor3 = Color3.fromRGB(0, 0, 0) Tab.TextSize = 14.000 Tab.BackgroundTransparency = 1 table.insert(ColorElements, {element = Tab, type = "BackgroundColor3"}) TabIcon.Name = "TabIcon" TabIcon.Parent = Tab TabIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TabIcon.BackgroundTransparency = 1.000 TabIcon.Position = UDim2.new(0.0634146333, 0, 0.25, 0) TabIcon.Size = UDim2.new(0, 20, 0, 20) TabIcon.Image = ico TabIcon.ImageTransparency = .3 TabTitle.Name = "TabTitle" TabTitle.Parent = Tab TabTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TabTitle.BackgroundTransparency = 1.000 TabTitle.Position = UDim2.new(0.1902439, 0, 0.25, 0) TabTitle.Size = UDim2.new(0, 113, 0, 19) TabTitle.Font = Enum.Font.Gotham TabTitle.Text = text TabTitle.TextColor3 = Color3.fromRGB(255, 255, 255) TabTitle.TextSize = 15.000 TabTitle.TextXAlignment = Enum.TextXAlignment.Left TabTitle.TextTransparency = .3 local Container = Instance.new("ScrollingFrame") local ContainerLayout = Instance.new("UIListLayout") Container.Name = "Container" Container.Parent = ContainerFolder Container.Active = true Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Container.BackgroundTransparency = 1.000 Container.BorderSizePixel = 0 Container.Position = UDim2.new(0.321529746, 0, 0.0475206599, 0) Container.Size = UDim2.new(0, 470, 0, 438) Container.CanvasSize = UDim2.new(0, 0, 0, 0) Container.ScrollBarThickness = 5 Container.Visible = false Container.ScrollBarImageColor3 = Color3.fromRGB(71, 76, 84) ContainerLayout.Name = "ContainerLayout" ContainerLayout.Parent = Container ContainerLayout.SortOrder = Enum.SortOrder.LayoutOrder ContainerLayout.Padding = UDim.new(0, 15) if fs == false then fs = true TabTitle.TextTransparency = 0 TabIcon.ImageTransparency = 0 Tab.BackgroundTransparency = 0 Container.Visible = true end Tab.MouseButton1Click:Connect(function() for i, v in next, ContainerFolder:GetChildren() do if v.Name == "Container" then v.Visible = false end Container.Visible = true end for i, v in next, TabHold:GetChildren() do if v.Name == "Tab" then TweenService:Create( v, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1} ):Play() TweenService:Create( v.TabIcon, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = .3} ):Play() TweenService:Create( v.TabTitle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = .3} ):Play() TweenService:Create( Tab, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0} ):Play() TweenService:Create( TabIcon, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = 0} ):Play() TweenService:Create( TabTitle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() end end end) local ContainerContent = {} function ContainerContent:Button(text, desc, callback) if desc == "" then desc = "There is no description for this button." end local BtnDescToggled = false local Button = Instance.new("TextButton") local ButtonCorner = Instance.new("UICorner") local Title = Instance.new("TextLabel") local Circle = Instance.new("Frame") local CircleCorner = Instance.new("UICorner") local CircleSmall = Instance.new("Frame") local CircleSmallCorner = Instance.new("UICorner") local Description = Instance.new("TextLabel") local ArrowBtn = Instance.new("ImageButton") local ArrowIco = Instance.new("ImageLabel") Button.Name = "Button" Button.Parent = Container Button.BackgroundColor3 = Color3.fromRGB(64, 68, 75) Button.ClipsDescendants = true Button.Position = UDim2.new(0.370312512, 0, 0.552631557, 0) Button.Size = UDim2.new(0, 457, 0, 43) Button.AutoButtonColor = false Button.Font = Enum.Font.SourceSans Button.Text = "" Button.TextColor3 = Color3.fromRGB(0, 0, 0) Button.TextSize = 14.000 ButtonCorner.CornerRadius = UDim.new(0, 4) ButtonCorner.Name = "ButtonCorner" ButtonCorner.Parent = Button Title.Name = "Title" Title.Parent = Button Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundTransparency = 1.000 Title.Position = UDim2.new(0.0822437406, 0, 0, 0) Title.Size = UDim2.new(0, 113, 0, 42) Title.Font = Enum.Font.Gotham Title.Text = text Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 15.000 Title.TextTransparency = 0.300 Title.TextXAlignment = Enum.TextXAlignment.Left Circle.Name = "Circle" Circle.Parent = Title Circle.Active = true Circle.AnchorPoint = Vector2.new(0.5, 0.5) Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211) Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0) Circle.Size = UDim2.new(0, 11, 0, 11) CircleCorner.CornerRadius = UDim.new(2, 6) CircleCorner.Name = "CircleCorner" CircleCorner.Parent = Circle CircleSmall.Name = "CircleSmall" CircleSmall.Parent = Circle CircleSmall.Active = true CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5) CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75) CircleSmall.BackgroundTransparency = 1.000 CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0) CircleSmall.Size = UDim2.new(0, 9, 0, 9) CircleSmallCorner.CornerRadius = UDim.new(2, 6) CircleSmallCorner.Name = "CircleSmallCorner" CircleSmallCorner.Parent = CircleSmall Description.Name = "Description" Description.Parent = Title Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Description.BackgroundTransparency = 1.000 Description.Position = UDim2.new(-0.200942323, 0, 0.785714269, 0) Description.Size = UDim2.new(0, 432, 0, 31) Description.Font = Enum.Font.Gotham Description.Text = desc Description.TextColor3 = Color3.fromRGB(255, 255, 255) Description.TextSize = 15.000 Description.TextTransparency = 1 Description.TextWrapped = true Description.TextXAlignment = Enum.TextXAlignment.Left ArrowBtn.Name = "ArrowBtn" ArrowBtn.Parent = Button ArrowBtn.BackgroundColor3 = Color3.fromRGB(86, 86, 86) ArrowBtn.BackgroundTransparency = 1.000 ArrowBtn.Position = UDim2.new(0.903719902, 0, 0, 0) ArrowBtn.Size = UDim2.new(0, 33, 0, 37) ArrowBtn.SliceCenter = Rect.new(30, 30, 30, 30) ArrowBtn.SliceScale = 7.000 ArrowIco.Name = "ArrowIco" ArrowIco.Parent = ArrowBtn ArrowIco.AnchorPoint = Vector2.new(0.5, 0.5) ArrowIco.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ArrowIco.BackgroundTransparency = 1 ArrowIco.Position = UDim2.new(0.495753437, 0, 0.554054081, 0) ArrowIco.Selectable = true ArrowIco.Size = UDim2.new(0, 28, 0, 24) ArrowIco.Image = "http://www.roblox.com/asset/?id=16898613353" ArrowIco.ImageTransparency = 0.3 ArrowIco.ImageRectSize = Vector2.new(48, 48) ArrowIco.ImageRectOffset = Vector2.new(771, 49) Button.MouseEnter:Connect(function() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() end) Button.MouseLeave:Connect(function() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() end) Button.MouseButton1Click:Connect(function() pcall(callback) end) ArrowBtn.MouseButton1Click:Connect(function() if BtnDescToggled == false then Button:TweenSize(UDim2.new(0, 457, 0, 74), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = PresetColor} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageColor3 = PresetColor} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = 0} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Rotation = 180} ):Play() TweenService:Create( Circle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = PresetColor} ):Play() TweenService:Create( CircleSmall, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0} ):Play() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() TweenService:Create( Description, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() wait(.4) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) else Button:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageColor3 = Color3.fromRGB(255,255,255)} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = .3} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Rotation = 0} ):Play() TweenService:Create( Circle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(211, 211, 211)} ):Play() TweenService:Create( CircleSmall, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1} ):Play() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() TweenService:Create( Description, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1} ):Play() wait(.4) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end BtnDescToggled = not BtnDescToggled end) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end function ContainerContent:Toggle(text, desc, default, callback) local ToggleDescToggled = false local Toggled = default or false local lastClick = 0 if desc == "" or desc == nil then desc = "There is no description for this toggle." end local Toggle = Instance.new("TextButton") local ToggleCorner = Instance.new("UICorner") local Title = Instance.new("TextLabel") local Circle = Instance.new("Frame") local CircleCorner = Instance.new("UICorner") local CircleSmall = Instance.new("Frame") local CircleSmallCorner = Instance.new("UICorner") local ToggleFrame = Instance.new("Frame") local ToggleFrameCorner = Instance.new("UICorner") local ToggleCircle = Instance.new("Frame") local ToggleCircleCorner = Instance.new("UICorner") local Description = Instance.new("TextLabel") local ArrowBtn = Instance.new("ImageButton") local ArrowIco = Instance.new("ImageLabel") Toggle.Name = "Toggle" Toggle.Parent = Container Toggle.BackgroundColor3 = Color3.fromRGB(64, 68, 75) Toggle.ClipsDescendants = true Toggle.Size = UDim2.new(0, 457, 0, 43) Toggle.AutoButtonColor = false Toggle.Font = Enum.Font.SourceSans Toggle.Text = "" Toggle.TextColor3 = Color3.fromRGB(0, 0, 0) ToggleCorner.CornerRadius = UDim.new(0, 4) ToggleCorner.Parent = Toggle Title.Name = "Title" Title.Parent = Toggle Title.BackgroundTransparency = 1.000 Title.Position = UDim2.new(0.082, 0, 0, 0) Title.Size = UDim2.new(0, 113, 0, 42) Title.Font = Enum.Font.Gotham Title.Text = text Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 15.000 Title.TextTransparency = 0.300 Title.TextXAlignment = Enum.TextXAlignment.Left Circle.Name = "Circle" Circle.Parent = Title Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211) Circle.Position = UDim2.new(-0.151, 0, 0.503, 0) Circle.Size = UDim2.new(0, 11, 0, 11) Circle.AnchorPoint = Vector2.new(0.5, 0.5) CircleCorner.CornerRadius = UDim.new(2, 6) CircleCorner.Parent = Circle CircleSmall.Name = "CircleSmall" CircleSmall.Parent = Circle CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75) CircleSmall.BackgroundTransparency = 1.000 CircleSmall.Size = UDim2.new(0, 9, 0, 9) CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5) CircleSmall.Position = UDim2.new(0.486, 0, 0.503, 0) CircleSmallCorner.CornerRadius = UDim.new(2, 6) CircleSmallCorner.Parent = CircleSmall ToggleFrame.Name = "ToggleFrame" ToggleFrame.Parent = Circle ToggleFrame.BackgroundColor3 = Color3.fromRGB(226, 227, 227) ToggleFrame.Position = UDim2.new(33.086, 0, 0, 0) ToggleFrame.Size = UDim2.new(0, 27, 0, 11) ToggleFrameCorner.Parent = ToggleFrame ToggleCircle.Name = "ToggleCircle" ToggleCircle.Parent = ToggleFrame ToggleCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ToggleCircle.Position = UDim2.new(0, 0, -0.273, 0) ToggleCircle.Size = UDim2.new(0, 17, 0, 17) table.insert(ColorElements, {element = ToggleCircle, type = "BackgroundColor3", isToggle = true, getToggled = function() return Toggled end}) ToggleCircleCorner.CornerRadius = UDim.new(2, 8) ToggleCircleCorner.Parent = ToggleCircle Description.Name = "Description" Description.Parent = Title Description.BackgroundTransparency = 1.000 Description.Position = UDim2.new(-0.201, 0, 0.786, 0) Description.Size = UDim2.new(0, 432, 0, 31) Description.Font = Enum.Font.Gotham Description.Text = desc Description.TextColor3 = Color3.fromRGB(255, 255, 255) Description.TextSize = 15.000 Description.TextTransparency = 1 Description.TextWrapped = true Description.TextXAlignment = Enum.TextXAlignment.Left ArrowBtn.Name = "ArrowBtn" ArrowBtn.Parent = Toggle ArrowBtn.BackgroundTransparency = 1.000 ArrowBtn.Position = UDim2.new(0.904, 0, 0, 0) ArrowBtn.Size = UDim2.new(0, 33, 0, 37) ArrowIco.Name = "ArrowIco" ArrowIco.Parent = ArrowBtn ArrowIco.BackgroundTransparency = 1 ArrowIco.Position = UDim2.new(0.496, 0, 0.554, 0) ArrowIco.AnchorPoint = Vector2.new(0.5, 0.5) ArrowIco.Size = UDim2.new(0, 28, 0, 24) ArrowIco.Image = "http://www.roblox.com/asset/?id=16898613353" ArrowIco.ImageTransparency = 0.3 ArrowIco.ImageRectSize = Vector2.new(48, 48) ArrowIco.ImageRectOffset = Vector2.new(771, 49) local function UpdateVisuals(state) if state then ToggleCircle:TweenPosition(UDim2.new(0.37, 0, -0.273, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true) TweenService:Create(ToggleCircle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = PresetColor}):Play() else ToggleCircle:TweenPosition(UDim2.new(0, 0, -0.273, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true) TweenService:Create(ToggleCircle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}):Play() end end UpdateVisuals(Toggled) Toggle.MouseButton1Click:Connect(function() if tick() - lastClick < 0.5 then return end lastClick = tick() Toggled = not Toggled UpdateVisuals(Toggled) pcall(callback, Toggled) end) ArrowBtn.MouseButton1Click:Connect(function() ToggleDescToggled = not ToggleDescToggled local size = ToggleDescToggled and UDim2.new(0, 457, 0, 74) or UDim2.new(0, 457, 0, 43) Toggle:TweenSize(size, Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) TweenService:Create(Title, TweenInfo.new(.3), {TextColor3 = ToggleDescToggled and PresetColor or Color3.fromRGB(255,255,255)}):Play() TweenService:Create(ArrowIco, TweenInfo.new(.3), {Rotation = ToggleDescToggled and 180 or 0, ImageTransparency = ToggleDescToggled and 0 or 0.3}):Play() TweenService:Create(Description, TweenInfo.new(.3), {TextTransparency = ToggleDescToggled and 0.3 or 1}):Play() task.wait(0.4) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end) local ToggleController = {} function ToggleController:Set(bool) Toggled = bool UpdateVisuals(bool) pcall(callback, bool) end if default == true then task.spawn(function() pcall(callback, true) end) end Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) return ToggleController end function ContainerContent:Slider(text,desc,min,max,start,callback) local SliderFunc = {} local SliderDescToggled = false local dragging = false if desc == "" then desc = "There is no description for this slider." end local Slider = Instance.new("TextButton") local SliderCorner = Instance.new("UICorner") local Title = Instance.new("TextLabel") local Circle = Instance.new("Frame") local CircleCorner = Instance.new("UICorner") local CircleSmall = Instance.new("Frame") local CircleSmallCorner = Instance.new("UICorner") local Description = Instance.new("TextLabel") local SlideFrame = Instance.new("Frame") local CurrentValueFrame = Instance.new("Frame") local SlideCircle = Instance.new("ImageButton") local ArrowBtn = Instance.new("ImageButton") local ArrowIco = Instance.new("ImageLabel") local Value = Instance.new("TextLabel") Slider.Name = "Slider" Slider.Parent = Container Slider.BackgroundColor3 = Color3.fromRGB(64, 68, 75) Slider.ClipsDescendants = true Slider.Position = UDim2.new(0.189062506, 0, 0.648612201, 0) Slider.Size = UDim2.new(0, 457, 0, 60) Slider.AutoButtonColor = false Slider.Font = Enum.Font.SourceSans Slider.Text = "" Slider.TextColor3 = Color3.fromRGB(0, 0, 0) Slider.TextSize = 14.000 SliderCorner.CornerRadius = UDim.new(0, 4) SliderCorner.Name = "SliderCorner" SliderCorner.Parent = Slider Title.Name = "Title" Title.Parent = Slider Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundTransparency = 1.000 Title.Position = UDim2.new(0.0822437406, 0, 0, 0) Title.Size = UDim2.new(0, 113, 0, 42) Title.Font = Enum.Font.Gotham Title.Text = text Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 15.000 Title.TextTransparency = 0.300 Title.TextXAlignment = Enum.TextXAlignment.Left Circle.Name = "Circle" Circle.Parent = Title Circle.Active = true Circle.AnchorPoint = Vector2.new(0.5, 0.5) Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211) Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0) Circle.Size = UDim2.new(0, 11, 0, 11) CircleCorner.CornerRadius = UDim.new(2, 6) CircleCorner.Name = "CircleCorner" CircleCorner.Parent = Circle CircleSmall.Name = "CircleSmall" CircleSmall.Parent = Circle CircleSmall.Active = true CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5) CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75) CircleSmall.BackgroundTransparency = 1.000 CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0) CircleSmall.Size = UDim2.new(0, 9, 0, 9) CircleSmallCorner.CornerRadius = UDim.new(2, 6) CircleSmallCorner.Name = "CircleSmallCorner" CircleSmallCorner.Parent = CircleSmall Description.Name = "Description" Description.Parent = Title Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Description.BackgroundTransparency = 1.000 Description.Position = UDim2.new(-0.201000005, 0, 1.38600004, 0) Description.Size = UDim2.new(0, 432, 0, 31) Description.Font = Enum.Font.Gotham Description.Text = desc Description.TextColor3 = Color3.fromRGB(255, 255, 255) Description.TextSize = 15.000 Description.TextTransparency = 0.300 Description.TextWrapped = true Description.TextXAlignment = Enum.TextXAlignment.Left SlideFrame.Name = "SlideFrame" SlideFrame.Parent = Title SlideFrame.BackgroundColor3 = Color3.fromRGB(235, 234, 235) SlideFrame.BorderSizePixel = 0 SlideFrame.Position = UDim2.new(-0.197140202, 0, 0.986091495, 0) SlideFrame.Size = UDim2.new(0, 426, 0, 3) CurrentValueFrame.Name = "CurrentValueFrame" CurrentValueFrame.Parent = SlideFrame CurrentValueFrame.BackgroundColor3 = PresetColor CurrentValueFrame.BorderSizePixel = 0 CurrentValueFrame.Size = UDim2.new((start or 0) / max, 0, 0, 3) table.insert(ColorElements, {element = CurrentValueFrame, type = "BackgroundColor3"}) SlideCircle.Name = "SlideCircle" SlideCircle.Parent = SlideFrame SlideCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255) SlideCircle.BackgroundTransparency = 1.000 SlideCircle.Position = UDim2.new((start or 0)/max, -6,-1.30499995, 0) SlideCircle.Size = UDim2.new(0, 11, 0, 11) SlideCircle.Image = "rbxassetid://3570695787" SlideCircle.ImageColor3 = PresetColor table.insert(ColorElements, {element = SlideCircle, type = "ImageColor3"}) ArrowBtn.Name = "ArrowBtn" ArrowBtn.Parent = Slider ArrowBtn.BackgroundColor3 = Color3.fromRGB(86, 86, 86) ArrowBtn.BackgroundTransparency = 1.000 ArrowBtn.Position = UDim2.new(0.903719902, 0, 0, 0) ArrowBtn.Size = UDim2.new(0, 33, 0, 37) ArrowBtn.SliceCenter = Rect.new(30, 30, 30, 30) ArrowBtn.SliceScale = 7.000 ArrowIco.Name = "ArrowIco" ArrowIco.Parent = ArrowBtn ArrowIco.AnchorPoint = Vector2.new(0.5, 0.5) ArrowIco.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ArrowIco.BackgroundTransparency = 1.000 ArrowIco.Position = UDim2.new(0.495753437, 0, 0.554054081, 0) ArrowIco.Selectable = true ArrowIco.Size = UDim2.new(0, 28, 0, 24) ArrowIco.Image = "http://www.roblox.com/asset/?id=16898613353" ArrowIco.ImageTransparency = 0.3 ArrowIco.ImageRectSize = Vector2.new(48, 48) ArrowIco.ImageRectOffset = Vector2.new(771, 49) Value.Name = "Value" Value.Parent = Title Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Value.BackgroundTransparency = 1.000 Value.Position = UDim2.new(2.27693367, 0, 0, 0) Value.Size = UDim2.new(0, 113, 0, 41) Value.Font = Enum.Font.Gotham Value.Text = tostring(start and math.floor((start / max) * (max - min) + min) or 0) Value.TextColor3 = Color3.fromRGB(255, 255, 255) Value.TextSize = 15.000 Value.TextTransparency = 0.300 Value.TextXAlignment = Enum.TextXAlignment.Right ArrowBtn.MouseButton1Click:Connect(function() if SliderDescToggled == false then Slider:TweenSize(UDim2.new(0, 457, 0, 101), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = PresetColor} ):Play() TweenService:Create( Value, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = PresetColor} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageColor3 = PresetColor} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = 0} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Rotation = 180} ):Play() TweenService:Create( Circle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 =PresetColor} ):Play() TweenService:Create( CircleSmall, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0} ):Play() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() TweenService:Create( Description, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() wait(.4) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) else Slider:TweenSize(UDim2.new(0, 457, 0, 60), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)} ):Play() TweenService:Create( Value, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageColor3 = Color3.fromRGB(255,255,255)} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = .3} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Rotation = 0} ):Play() TweenService:Create( Circle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(211, 211, 211)} ):Play() TweenService:Create( CircleSmall, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1} ):Play() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() TweenService:Create( Description, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1} ):Play() wait(.4) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end SliderDescToggled = not SliderDescToggled end) local function move(input) local pos = UDim2.new( math.clamp((input.Position.X - SlideFrame.AbsolutePosition.X) / SlideFrame.AbsoluteSize.X, 0, 1), -6, -1.30499995, 0 ) local pos1 = UDim2.new( math.clamp((input.Position.X - SlideFrame.AbsolutePosition.X) / SlideFrame.AbsoluteSize.X, 0, 1), 0, 0, 3 ) CurrentValueFrame:TweenSize(pos1, "Out", "Sine", 0.1, true) SlideCircle:TweenPosition(pos, "Out", "Sine", 0.1, true) local value = math.floor(((pos.X.Scale * max) / max) * (max - min) + min) Value.Text = tostring(value) pcall(callback, value) end SlideCircle.InputBegan:Connect( function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true end end ) SlideCircle.InputEnded:Connect( function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end ) game:GetService("UserInputService").InputChanged:Connect( function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then move(input) end end ) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) function SliderFunc:Change(tochange) CurrentValueFrame.Size = UDim2.new((tochange or 0) / max, 0, 0, 3) SlideCircle.Position = UDim2.new((tochange or 0)/max, -6,-1.30499995, 0) Value.Text = tostring(tochange and math.floor((tochange / max) * (max - min) + min) or 0) pcall(callback,tochange) end SlideFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true move(input) end end) SlideCircle.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true end end) SlideCircle.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) game:GetService("UserInputService").InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) game:GetService("UserInputService").InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then move(input) end end) return SliderFunc end function ContainerContent:Dropdown(text, list, callback) local DropFunc = {} local Selected = text local FrameSize = 43 local ItemCount = 0 local DropToggled = false local Dropdown = Instance.new("TextButton") local DropdownCorner = Instance.new("UICorner") local Title = Instance.new("TextLabel") local Circle = Instance.new("Frame") local CircleCorner = Instance.new("UICorner") local CircleSmall = Instance.new("Frame") local CircleSmallCorner = Instance.new("UICorner") local ArrowIco = Instance.new("ImageLabel") local DropItemHolder = Instance.new("ScrollingFrame") local DropLayout = Instance.new("UIListLayout") Dropdown.Name = "Dropdown" Dropdown.Parent = Container Dropdown.BackgroundColor3 = Color3.fromRGB(64, 68, 75) Dropdown.ClipsDescendants = true Dropdown.Size = UDim2.new(0, 457, 0, 43) Dropdown.AutoButtonColor = false Dropdown.Text = "" DropdownCorner.CornerRadius = UDim.new(0, 4) DropdownCorner.Parent = Dropdown Title.Name = "Title" Title.Parent = Dropdown Title.BackgroundTransparency = 1.000 Title.Position = UDim2.new(0.082, 0, 0, 0) Title.Size = UDim2.new(0, 350, 0, 43) Title.Font = Enum.Font.Gotham Title.Text = text Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 15.000 Title.TextTransparency = 0.300 Title.TextXAlignment = Enum.TextXAlignment.Left ArrowIco.Name = "ArrowIco" ArrowIco.Parent = Dropdown ArrowIco.AnchorPoint = Vector2.new(0.5, 0.5) ArrowIco.BackgroundTransparency = 1.000 ArrowIco.Position = UDim2.new(0.93, 0, 0, 21) ArrowIco.Size = UDim2.new(0, 28, 0, 24) ArrowIco.Image = "http://www.roblox.com/asset/?id=16898613353" ArrowIco.ImageTransparency = 0.3 ArrowIco.ImageRectSize = Vector2.new(48, 48) ArrowIco.ImageRectOffset = Vector2.new(771, 49) Circle.Name = "Circle" Circle.Parent = Dropdown Circle.AnchorPoint = Vector2.new(0.5, 0.5) Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211) Circle.Position = UDim2.new(0.04, 0, 0, 21) Circle.Size = UDim2.new(0, 11, 0, 11) CircleCorner.CornerRadius = UDim.new(1, 0) CircleCorner.Parent = Circle CircleSmall.Name = "CircleSmall" CircleSmall.Parent = Circle CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5) CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75) CircleSmall.BackgroundTransparency = 1.000 CircleSmall.Position = UDim2.new(0.5, 0, 0.5, 0) CircleSmall.Size = UDim2.new(0, 9, 0, 9) table.insert(ColorElements, {element = CircleSmall, type = "BackgroundColor3", isDropdown = true, getToggled = function() return DropToggled end}) CircleSmallCorner.CornerRadius = UDim.new(1, 0) CircleSmallCorner.Parent = CircleSmall DropItemHolder.Name = "DropItemHolder" DropItemHolder.Parent = Dropdown DropItemHolder.BackgroundTransparency = 1.000 DropItemHolder.BorderSizePixel = 0 DropItemHolder.Position = UDim2.new(0, 0, 0, 43) DropItemHolder.Size = UDim2.new(1, 0, 0, 100) DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, 0) DropItemHolder.ScrollBarThickness = 3 DropLayout.Parent = DropItemHolder DropLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center DropLayout.SortOrder = Enum.SortOrder.LayoutOrder DropLayout.Padding = UDim.new(0, 3) local function Toggle(State) DropToggled = State local TargetSize = State and UDim2.new(0, 457, 0, FrameSize) or UDim2.new(0, 457, 0, 43) Dropdown:TweenSize(TargetSize, "Out", "Quart", .5, true) TweenService:Create(ArrowIco, TweenInfo.new(.3), {Rotation = State and 180 or 0, ImageTransparency = State and 0 or 0.3}):Play() TweenService:Create(CircleSmall, TweenInfo.new(.3), {BackgroundTransparency = State and 0 or 1}):Play() Title.Text = Selected wait(0.5) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end Dropdown.MouseButton1Click:Connect(function() Toggle(not DropToggled) end) local function CreateItem(v) ItemCount = ItemCount + 1 FrameSize = math.clamp(43 + (ItemCount * 28) + 10, 43, 180) local Item = Instance.new("TextButton") local ItemCorner = Instance.new("UICorner") Item.Name = "Item" Item.Parent = DropItemHolder Item.BackgroundColor3 = Color3.fromRGB(75, 78, 85) Item.Size = UDim2.new(0, 420, 0, 25) Item.Font = Enum.Font.Gotham Item.Text = v Item.TextColor3 = Color3.fromRGB(255, 255, 255) Item.TextSize = 14.000 Item.TextTransparency = 0.4 ItemCorner.CornerRadius = UDim.new(0, 4) ItemCorner.Parent = Item Item.MouseButton1Click:Connect(function() Selected = v pcall(callback, v) Toggle(false) end) Item.MouseEnter:Connect(function() TweenService:Create(Item, TweenInfo.new(.2), {TextTransparency = 0}):Play() end) Item.MouseLeave:Connect(function() TweenService:Create(Item, TweenInfo.new(.2), {TextTransparency = 0.4}):Play() end) DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, DropLayout.AbsoluteContentSize.Y) end for _, v in next, list do CreateItem(v) end function DropFunc:Add(addtext) CreateItem(addtext) end function DropFunc:Clear() Selected = text Title.Text = text for _, v in next, DropItemHolder:GetChildren() do if v:IsA("TextButton") then v:Destroy() end end ItemCount = 0 FrameSize = 43 Toggle(false) end return DropFunc end function ContainerContent:Colorpicker(text,preset,callback) local ColorPickerToggled = false local OldToggleColor = Color3.fromRGB(0, 0, 0) local OldColor = Color3.fromRGB(0, 0, 0) local OldColorSelectionPosition = nil local OldHueSelectionPosition = nil local ColorH, ColorS, ColorV = 1, 1, 1 local RainbowColorPicker = false local ColorPickerInput = nil local ColorInput = nil local HueInput = nil local Colorpicker = Instance.new("Frame") local ColorpickerCorner = Instance.new("UICorner") local Title = Instance.new("TextLabel") local Circle = Instance.new("Frame") local CircleCorner = Instance.new("UICorner") local CircleSmall = Instance.new("Frame") local CircleSmallCorner = Instance.new("UICorner") local Hue = Instance.new("ImageLabel") local HueCorner = Instance.new("UICorner") local HueGradient = Instance.new("UIGradient") local HueSelection = Instance.new("ImageLabel") local Color = Instance.new("ImageLabel") local ColorCorner = Instance.new("UICorner") local ColorSelection = Instance.new("ImageLabel") local Toggle = Instance.new("TextLabel") local ToggleFrame = Instance.new("Frame") local ToggleFrameCorner = Instance.new("UICorner") local ToggleCircle = Instance.new("Frame") local ToggleCircleCorner = Instance.new("UICorner") local Confirm = Instance.new("TextButton") local ConfirmCorner = Instance.new("UICorner") local ConfirmTitle = Instance.new("TextLabel") local BoxColor = Instance.new("Frame") local BoxColorCorner = Instance.new("UICorner") local ColorpickerBtn = Instance.new("TextButton") local ToggleBtn = Instance.new("TextButton") Colorpicker.Name = "Colorpicker" Colorpicker.Parent = Container Colorpicker.BackgroundColor3 = Color3.fromRGB(64, 68, 75) Colorpicker.ClipsDescendants = true Colorpicker.Position = UDim2.new(0.110937499, 0, 0.67653507, 0) Colorpicker.Size = UDim2.new(0, 457, 0, 43) ColorpickerCorner.CornerRadius = UDim.new(0, 4) ColorpickerCorner.Name = "ColorpickerCorner" ColorpickerCorner.Parent = Colorpicker Title.Name = "Title" Title.Parent = Colorpicker Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundTransparency = 1.000 Title.Position = UDim2.new(0.0822437406, 0, 0, 0) Title.Size = UDim2.new(0, 113, 0, 42) Title.Font = Enum.Font.Gotham Title.Text = text or "Colorpicker" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 15.000 Title.TextTransparency = 0.300 Title.TextXAlignment = Enum.TextXAlignment.Left ColorpickerBtn.Name = "ColorpickerBtn" ColorpickerBtn.Parent = Title ColorpickerBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ColorpickerBtn.BackgroundTransparency = 1.000 ColorpickerBtn.Position = UDim2.new(-0.336283177, 0, 0, 0) ColorpickerBtn.Size = UDim2.new(0, 457, 0, 42) ColorpickerBtn.Font = Enum.Font.SourceSans ColorpickerBtn.Text = "" ColorpickerBtn.TextColor3 = Color3.fromRGB(0, 0, 0) ColorpickerBtn.TextSize = 14.000 Circle.Name = "Circle" Circle.Parent = Title Circle.Active = true Circle.AnchorPoint = Vector2.new(0.5, 0.5) Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211) Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0) Circle.Size = UDim2.new(0, 11, 0, 11) CircleCorner.CornerRadius = UDim.new(2, 6) CircleCorner.Name = "CircleCorner" CircleCorner.Parent = Circle CircleSmall.Name = "CircleSmall" CircleSmall.Parent = Circle CircleSmall.Active = true CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5) CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75) CircleSmall.BackgroundTransparency = 1.000 CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0) CircleSmall.Size = UDim2.new(0, 9, 0, 9) CircleSmallCorner.CornerRadius = UDim.new(2, 6) CircleSmallCorner.Name = "CircleSmallCorner" CircleSmallCorner.Parent = CircleSmall Hue.Name = "Hue" Hue.Parent = Title Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Hue.Position = UDim2.new(0, 229, 0, 46) Hue.Size = UDim2.new(0, 25, 0, 80) HueCorner.CornerRadius = UDim.new(0, 3) HueCorner.Name = "HueCorner" HueCorner.Parent = Hue HueGradient.Color = ColorSequence.new { ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)), ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)), ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)), ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)), ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)), ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4)) } HueGradient.Rotation = 270 HueGradient.Name = "HueGradient" HueGradient.Parent = Hue HueSelection.Name = "HueSelection" HueSelection.Parent = Hue HueSelection.AnchorPoint = Vector2.new(0.5, 0.5) HueSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255) HueSelection.BackgroundTransparency = 1.000 HueSelection.Position = UDim2.new(0.48, 0, 1 - select(1, Color3.toHSV(preset))) HueSelection.Size = UDim2.new(0, 18, 0, 18) HueSelection.Image = "http://www.roblox.com/asset/?id=4805639000" HueSelection.Visible = false Color.Name = "Color" Color.Parent = Title Color.BackgroundColor3 = Color3.fromRGB(255, 0, 4) Color.Position = UDim2.new(0, -23, 0, 46) Color.Size = UDim2.new(0, 246, 0, 80) Color.ZIndex = 10 Color.Image = "rbxassetid://4155801252" ColorCorner.CornerRadius = UDim.new(0, 3) ColorCorner.Name = "ColorCorner" ColorCorner.Parent = Color ColorSelection.Name = "ColorSelection" ColorSelection.Parent = Color ColorSelection.AnchorPoint = Vector2.new(0.5, 0.5) ColorSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ColorSelection.BackgroundTransparency = 1.000 ColorSelection.Position = (function() local h, s, v = Color3.toHSV(preset) return UDim2.new(s, 0, 1 - v, 0) end)() ColorSelection.Size = UDim2.new(0, 18, 0, 18) ColorSelection.Image = "http://www.roblox.com/asset/?id=4805639000" ColorSelection.ScaleType = Enum.ScaleType.Fit ColorSelection.Visible = false Toggle.Name = "Toggle" Toggle.Parent = Title Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Toggle.BackgroundTransparency = 1.000 Toggle.Position = UDim2.new(2.37430048, 0, 1.07157099, 0) Toggle.Size = UDim2.new(0, 137, 0, 38) Toggle.Font = Enum.Font.Gotham Toggle.Text = "Rainbow" Toggle.TextColor3 = Color3.fromRGB(255, 255, 255) Toggle.TextSize = 15.000 Toggle.TextTransparency = 0.300 Toggle.TextXAlignment = Enum.TextXAlignment.Left ToggleFrame.Name = "ToggleFrame" ToggleFrame.Parent = Toggle ToggleFrame.BackgroundColor3 = Color3.fromRGB(226, 227, 227) ToggleFrame.Position = UDim2.new(0.778387249, 0, 0.357142866, 0) ToggleFrame.Size = UDim2.new(0, 27, 0, 11) ToggleFrameCorner.Name = "ToggleFrameCorner" ToggleFrameCorner.Parent = ToggleFrame ToggleCircle.Name = "ToggleCircle" ToggleCircle.Parent = ToggleFrame ToggleCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ToggleCircle.Position = UDim2.new(0, 0, -0.273000002, 0) ToggleCircle.Selectable = true ToggleCircle.Size = UDim2.new(0, 17, 0, 17) ToggleCircleCorner.CornerRadius = UDim.new(2, 8) ToggleCircleCorner.Name = "ToggleCircleCorner" ToggleCircleCorner.Parent = ToggleCircle BoxColor.Name = "BoxColor" BoxColor.Parent = Title BoxColor.BackgroundColor3 = Color3.fromRGB(255, 255, 255) BoxColor.Position = UDim2.new(3.26915574, 0, 0.261904776, 0) BoxColor.Size = UDim2.new(0, 35, 0, 19) BoxColorCorner.CornerRadius = UDim.new(0, 4) BoxColorCorner.Name = "BoxColorCorner" BoxColorCorner.Parent = BoxColor ToggleBtn.Name = "ToggleBtn" ToggleBtn.Parent = Toggle ToggleBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ToggleBtn.BackgroundTransparency = 1.000 ToggleBtn.Size = UDim2.new(0, 137, 0, 38) ToggleBtn.Font = Enum.Font.SourceSans ToggleBtn.Text = "" ToggleBtn.TextColor3 = Color3.fromRGB(0, 0, 0) ToggleBtn.TextSize = 14.000 ColorpickerBtn.MouseEnter:Connect(function() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() end) ColorpickerBtn.MouseLeave:Connect(function() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() end) ColorpickerBtn.MouseButton1Click:Connect(function() if ColorPickerToggled == false then ColorSelection.Visible = true HueSelection.Visible = true Colorpicker:TweenSize(UDim2.new(0, 457, 0, 138), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = PresetColor} ):Play() TweenService:Create( Circle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = PresetColor} ):Play() TweenService:Create( CircleSmall, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0} ):Play() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() wait(.4) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) else ColorSelection.Visible = false HueSelection.Visible = false Colorpicker:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)} ):Play() TweenService:Create( Circle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(211, 211, 211)} ):Play() TweenService:Create( CircleSmall, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1} ):Play() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() wait(.4) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end ColorPickerToggled = not ColorPickerToggled end) local function UpdateColorPicker(nope) BoxColor.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV) Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1) pcall(callback, BoxColor.BackgroundColor3) end -- Initialize HSV values from preset color ColorH, ColorS, ColorV = Color3.toHSV(preset) BoxColor.BackgroundColor3 = preset Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1) pcall(callback, BoxColor.BackgroundColor3) Color.InputBegan:Connect( function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then if RainbowColorPicker then return end if ColorInput then ColorInput:Disconnect() end ColorInput = RunService.RenderStepped:Connect( function() local ColorX = (math.clamp(Mouse.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) / Color.AbsoluteSize.X) local ColorY = (math.clamp(Mouse.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) / Color.AbsoluteSize.Y) ColorSelection.Position = UDim2.new(ColorX, 0, ColorY, 0) ColorS = ColorX ColorV = 1 - ColorY UpdateColorPicker(true) end ) end end ) Color.InputEnded:Connect( function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then if ColorInput then ColorInput:Disconnect() end end end ) Hue.InputBegan:Connect( function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then if RainbowColorPicker then return end if HueInput then HueInput:Disconnect() end HueInput = RunService.RenderStepped:Connect( function() local HueY = (math.clamp(Mouse.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) / Hue.AbsoluteSize.Y) HueSelection.Position = UDim2.new(0.48, 0, HueY, 0) ColorH = 1 - HueY UpdateColorPicker(true) end ) end end ) Hue.InputEnded:Connect( function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then if HueInput then HueInput:Disconnect() end end end ) ToggleBtn.MouseButton1Down:Connect( function() RainbowColorPicker = not RainbowColorPicker if ColorInput then ColorInput:Disconnect() end if HueInput then HueInput:Disconnect() end if RainbowColorPicker then ToggleCircle:TweenPosition(UDim2.new(0.37, 0,-0.273, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true) TweenService:Create( ToggleCircle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 =PresetColor} ):Play() OldToggleColor = BoxColor.BackgroundColor3 OldColor = Color.BackgroundColor3 OldColorSelectionPosition = ColorSelection.Position OldHueSelectionPosition = HueSelection.Position while RainbowColorPicker do BoxColor.BackgroundColor3 = Color3.fromHSV(Flux.RainbowColorValue, 1, 1) Color.BackgroundColor3 = Color3.fromHSV(Flux.RainbowColorValue, 1, 1) ColorSelection.Position = UDim2.new(1, 0, 0, 0) HueSelection.Position = UDim2.new(0.48, 0, 0, Flux.HueSelectionPosition) pcall(callback, BoxColor.BackgroundColor3) wait() end elseif not RainbowColorPicker then ToggleCircle:TweenPosition(UDim2.new(0, 0,-0.273, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true) TweenService:Create( ToggleCircle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(255,255,255)} ):Play() BoxColor.BackgroundColor3 = OldToggleColor Color.BackgroundColor3 = OldColor ColorSelection.Position = OldColorSelectionPosition HueSelection.Position = OldHueSelectionPosition pcall(callback, BoxColor.BackgroundColor3) end end ) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end function ContainerContent:Line() local Line = Instance.new("TextButton") local LineCorner = Instance.new("UICorner") Line.Name = "Line" Line.Parent = Container Line.BackgroundColor3 = Color3.fromRGB(64, 68, 75) Line.ClipsDescendants = true Line.Position = UDim2.new(0, 0, 0.70091325, 0) Line.Size = UDim2.new(0, 457, 0, 4) Line.AutoButtonColor = false Line.Font = Enum.Font.SourceSans Line.Text = "" Line.TextColor3 = Color3.fromRGB(0, 0, 0) Line.TextSize = 14.000 LineCorner.CornerRadius = UDim.new(0, 4) LineCorner.Name = "LineCorner" LineCorner.Parent = Line Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end function ContainerContent:Label(text) local LabelFunc = {} local Label = Instance.new("TextButton") local LabelCorner = Instance.new("UICorner") local Title = Instance.new("TextLabel") Label.Name = "Label" Label.Parent = Container Label.BackgroundColor3 = Color3.fromRGB(64, 68, 75) Label.ClipsDescendants = true Label.Position = UDim2.new(0.370312512, 0, 0.552631557, 0) Label.Size = UDim2.new(0, 457, 0, 43) Label.AutoButtonColor = false Label.Font = Enum.Font.SourceSans Label.Text = "" Label.TextColor3 = Color3.fromRGB(0, 0, 0) Label.TextSize = 14.000 LabelCorner.CornerRadius = UDim.new(0, 4) LabelCorner.Name = "LabelCorner" LabelCorner.Parent = Label Title.Name = "Title" Title.Parent = Label Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundTransparency = 1.000 Title.Position = UDim2.new(0.038480062, 0, 0, 0) Title.Size = UDim2.new(0, 421, 0, 42) Title.Font = Enum.Font.Gotham Title.Text = text Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 15.000 Title.TextTransparency = 0.300 Title.TextXAlignment = Enum.TextXAlignment.Left Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) function LabelFunc:Set(newText) Title.Text = newText end return LabelFunc end function ContainerContent:Textbox(text,desc,disapper,callback) if desc == "" then desc = "There is no description for this textbox." end local TextboxDescToggled = false local Textbox = Instance.new("TextButton") local TextboxCorner = Instance.new("UICorner") local Title = Instance.new("TextLabel") local Circle = Instance.new("Frame") local CircleCorner = Instance.new("UICorner") local CircleSmall = Instance.new("Frame") local CircleSmallCorner = Instance.new("UICorner") local Description = Instance.new("TextLabel") local TextboxFrame = Instance.new("Frame") local TextboxFrameCorner = Instance.new("UICorner") local TextBox = Instance.new("TextBox") local ArrowBtn = Instance.new("ImageButton") local ArrowIco = Instance.new("ImageLabel") Textbox.Name = "Textbox" Textbox.Parent = Container Textbox.BackgroundColor3 = Color3.fromRGB(64, 68, 75) Textbox.ClipsDescendants = true Textbox.Position = UDim2.new(0.0459499061, 0, 0.734449744, 0) Textbox.Size = UDim2.new(0, 457, 0, 43) Textbox.AutoButtonColor = false Textbox.Font = Enum.Font.SourceSans Textbox.Text = "" Textbox.TextColor3 = Color3.fromRGB(0, 0, 0) Textbox.TextSize = 14.000 TextboxCorner.CornerRadius = UDim.new(0, 4) TextboxCorner.Name = "TextboxCorner" TextboxCorner.Parent = Textbox Title.Name = "Title" Title.Parent = Textbox Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundTransparency = 1.000 Title.Position = UDim2.new(0.0822437406, 0, 0, 0) Title.Size = UDim2.new(0, 113, 0, 42) Title.Font = Enum.Font.Gotham Title.Text = text Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 15.000 Title.TextTransparency = 0.300 Title.TextXAlignment = Enum.TextXAlignment.Left Circle.Name = "Circle" Circle.Parent = Title Circle.Active = true Circle.AnchorPoint = Vector2.new(0.5, 0.5) Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211) Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0) Circle.Size = UDim2.new(0, 11, 0, 11) CircleCorner.CornerRadius = UDim.new(2, 6) CircleCorner.Name = "CircleCorner" CircleCorner.Parent = Circle CircleSmall.Name = "CircleSmall" CircleSmall.Parent = Circle CircleSmall.Active = true CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5) CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75) CircleSmall.BackgroundTransparency = 1.000 CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0) CircleSmall.Size = UDim2.new(0, 9, 0, 9) CircleSmallCorner.CornerRadius = UDim.new(2, 6) CircleSmallCorner.Name = "CircleSmallCorner" CircleSmallCorner.Parent = CircleSmall Description.Name = "Description" Description.Parent = Title Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Description.BackgroundTransparency = 1.000 Description.Position = UDim2.new(-0.200942323, 0, 0.985714269, 0) Description.Size = UDim2.new(0, 432, 0, 31) Description.Font = Enum.Font.Gotham Description.Text = desc Description.TextColor3 = Color3.fromRGB(255, 255, 255) Description.TextSize = 15.000 Description.TextTransparency = 1 Description.TextWrapped = true Description.TextXAlignment = Enum.TextXAlignment.Left TextboxFrame.Name = "TextboxFrame" TextboxFrame.Parent = Title TextboxFrame.BackgroundColor3 = Color3.fromRGB(50, 53, 59) TextboxFrame.Position = UDim2.new(1.82300889, 0, 0.202380955, 0) TextboxFrame.Size = UDim2.new(0, 161, 0, 26) TextboxFrameCorner.CornerRadius = UDim.new(0, 4) TextboxFrameCorner.Name = "TextboxFrameCorner" TextboxFrameCorner.Parent = TextboxFrame TextBox.Parent = TextboxFrame TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextBox.BackgroundTransparency = 1.000 TextBox.Size = UDim2.new(0, 161, 0, 26) TextBox.Font = Enum.Font.Gotham TextBox.Text = "" TextBox.TextColor3 = Color3.fromRGB(255, 255, 255) TextBox.TextSize = 15.000 TextBox.TextTransparency = 0.300 ArrowBtn.Name = "ArrowBtn" ArrowBtn.Parent = Textbox ArrowBtn.BackgroundColor3 = Color3.fromRGB(86, 86, 86) ArrowBtn.BackgroundTransparency = 1.000 ArrowBtn.Position = UDim2.new(0.903719902, 0, 0, 0) ArrowBtn.Size = UDim2.new(0, 33, 0, 37) ArrowBtn.SliceCenter = Rect.new(30, 30, 30, 30) ArrowBtn.SliceScale = 7.000 ArrowIco.Name = "ArrowIco" ArrowIco.Parent = ArrowBtn ArrowIco.AnchorPoint = Vector2.new(0.5, 0.5) ArrowIco.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ArrowIco.BackgroundTransparency = 1.000 ArrowIco.Position = UDim2.new(0.495753437, 0, 0.554054081, 0) ArrowIco.Selectable = true ArrowIco.Size = UDim2.new(0, 28, 0, 24) ArrowIco.Image = "http://www.roblox.com/asset/?id=16898613353" ArrowIco.ImageTransparency = 0.3 ArrowIco.ImageRectSize = Vector2.new(48, 48) ArrowIco.ImageRectOffset = Vector2.new(771, 49) TextBox.FocusLost:Connect( function(ep) if ep then if #TextBox.Text > 0 then pcall(callback, TextBox.Text) if disapper then TextBox.Text = "" end end end end ) ArrowBtn.MouseButton1Click:Connect(function() if TextboxDescToggled == false then Textbox:TweenSize(UDim2.new(0, 457, 0, 81), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = PresetColor} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageColor3 = PresetColor} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = 0} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Rotation = 180} ):Play() TweenService:Create( Circle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = PresetColor} ):Play() TweenService:Create( CircleSmall, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0} ):Play() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() TweenService:Create( Description, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() wait(.4) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) else Textbox:TweenSize(UDim2.new(0, 457, 0, 43), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true) TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageColor3 = Color3.fromRGB(255,255,255)} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageTransparency = .3} ):Play() TweenService:Create( ArrowIco, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Rotation = 0} ):Play() TweenService:Create( Circle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(211, 211, 211)} ):Play() TweenService:Create( CircleSmall, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1} ):Play() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() TweenService:Create( Description, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1} ):Play() wait(.4) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end TextboxDescToggled = not TextboxDescToggled end) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end function ContainerContent:Bind(text,presetbind,callback) local Key = presetbind.Name local Bind = Instance.new("TextButton") local BindCorner = Instance.new("UICorner") local Title = Instance.new("TextLabel") local Circle = Instance.new("Frame") local CircleCorner = Instance.new("UICorner") local CircleSmall = Instance.new("Frame") local CircleSmallCorner = Instance.new("UICorner") local BindLabel = Instance.new("TextLabel") Bind.Name = "Bind" Bind.Parent = Container Bind.BackgroundColor3 = Color3.fromRGB(64, 68, 75) Bind.ClipsDescendants = true Bind.Position = UDim2.new(0.40625, 0, 0.828947306, 0) Bind.Size = UDim2.new(0, 457, 0, 43) Bind.AutoButtonColor = false Bind.Font = Enum.Font.SourceSans Bind.Text = "" Bind.TextColor3 = Color3.fromRGB(0, 0, 0) Bind.TextSize = 14.000 BindCorner.CornerRadius = UDim.new(0, 4) BindCorner.Name = "BindCorner" BindCorner.Parent = Bind Title.Name = "Title" Title.Parent = Bind Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundTransparency = 1.000 Title.Position = UDim2.new(0.0822437406, 0, 0, 0) Title.Size = UDim2.new(0, 113, 0, 42) Title.Font = Enum.Font.Gotham Title.Text = text Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 15.000 Title.TextTransparency = 0.300 Title.TextXAlignment = Enum.TextXAlignment.Left Circle.Name = "Circle" Circle.Parent = Title Circle.Active = true Circle.AnchorPoint = Vector2.new(0.5, 0.5) Circle.BackgroundColor3 = Color3.fromRGB(211, 211, 211) Circle.Position = UDim2.new(-0.150690272, 0, 0.503000021, 0) Circle.Size = UDim2.new(0, 11, 0, 11) CircleCorner.CornerRadius = UDim.new(2, 6) CircleCorner.Name = "CircleCorner" CircleCorner.Parent = Circle CircleSmall.Name = "CircleSmall" CircleSmall.Parent = Circle CircleSmall.Active = true CircleSmall.AnchorPoint = Vector2.new(0.5, 0.5) CircleSmall.BackgroundColor3 = Color3.fromRGB(64, 68, 75) CircleSmall.BackgroundTransparency = 1.000 CircleSmall.Position = UDim2.new(0.485673368, 0, 0.503000021, 0) CircleSmall.Size = UDim2.new(0, 9, 0, 9) CircleSmallCorner.CornerRadius = UDim.new(2, 6) CircleSmallCorner.Name = "CircleSmallCorner" CircleSmallCorner.Parent = CircleSmall BindLabel.Name = "BindLabel" BindLabel.Parent = Title BindLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) BindLabel.BackgroundTransparency = 1.000 BindLabel.Position = UDim2.new(2.56011987, 0, 0, 0) BindLabel.Size = UDim2.new(0, 113, 0, 42) BindLabel.Font = Enum.Font.Gotham BindLabel.Text = Key BindLabel.TextColor3 = Color3.fromRGB(255, 255, 255) BindLabel.TextSize = 15.000 BindLabel.TextTransparency = 0.300 BindLabel.TextXAlignment = Enum.TextXAlignment.Right Bind.MouseEnter:Connect(function() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() end) Bind.MouseLeave:Connect(function() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() end) Bind.MouseButton1Click:connect( function() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = PresetColor} ):Play() TweenService:Create( BindLabel, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = PresetColor} ):Play() TweenService:Create( Circle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = PresetColor} ):Play() TweenService:Create( CircleSmall, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0} ):Play() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() TweenService:Create( BindLabel, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0} ):Play() BindLabel.Text = "..." local inputwait = game:GetService("UserInputService").InputBegan:wait() if inputwait.KeyCode.Name ~= "Unknown" then BindLabel.Text = inputwait.KeyCode.Name Key = inputwait.KeyCode.Name pcall(callback, inputwait.KeyCode) end TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)} ):Play() TweenService:Create( BindLabel, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)} ):Play() TweenService:Create( Circle, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(211, 211, 211)} ):Play() TweenService:Create( CircleSmall, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1} ):Play() TweenService:Create( Title, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() TweenService:Create( BindLabel, TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 0.3} ):Play() end ) game:GetService("UserInputService").InputBegan:connect( function(current, pressed) if not pressed then if current.KeyCode.Name == Key then pcall(callback, current.KeyCode) end end end ) Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y) end return ContainerContent end task.spawn(function() task.wait(0.1) local SettingsTab = Tabs:Tab("UI Settings", "http://www.roblox.com/asset/?id=7059346373") SettingsTab:Toggle("Background Blur", "Blurs the game background when menu is open.", false, function(Value) Flux.BlurEnabled = Value UpdateBlur() end) SettingsTab:Bind("Menu Toggle Keybind", Enum.KeyCode.K, function(Value) CloseBind = Value end) SettingsTab:Colorpicker("Menu Color", Color3.fromRGB(255, 110, 48), function(Value) UpdatePresetColor(Value) end) end) local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "GUIToggleButton" ScreenGui.Parent = CoreGui ScreenGui.DisplayOrder = 100 local MainButton = Instance.new("TextButton") MainButton.Name = "ToggleButton" MainButton.Parent = ScreenGui MainButton.BackgroundColor3 = Color3.fromRGB(57, 57, 65) MainButton.BorderSizePixel = 0 MainButton.Position = UDim2.new(0.5, -40, 0, 5) MainButton.Size = UDim2.new(0, 80, 0, 32) MainButton.AutoButtonColor = true MainButton.Font = Enum.Font.GothamBold MainButton.Text = "Close" MainButton.TextColor3 = Color3.fromRGB(255, 255, 255) MainButton.TextSize = 13 local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(1, 0) UICorner.Parent = MainButton local function updateButtonState() MainButton.Text = uitoggled and "Open" or "Close" end MainButton.MouseButton1Click:Connect(function() ToggleUI() updateButtonState() end) task.spawn(function() while task.wait(0.5) do updateButtonState() end end) return Tabs end return Flux