--// leak repeat wait() until game:IsLoaded() game:GetService("CorePackages").Packages:Destroy() assert(getrawmetatable) grm = getrawmetatable(game) setreadonly(grm, false) old = grm.__namecall grm.__namecall = newcclosure(function(self, ...) local args = {...} if tostring(args[1]) == "TeleportDetect" then return elseif tostring(args[1]) == "CHECKER_1" then return elseif tostring(args[1]) == "CHECKER" then return elseif tostring(args[1]) == "GUI_CHECK" then return elseif tostring(args[1]) == "OneMoreTime" then return elseif tostring(args[1]) == "checkingSPEED" then return elseif tostring(args[1]) == "BANREMOTE" then return elseif tostring(args[1]) == "PERMAIDBAN" then return elseif tostring(args[1]) == "KICKREMOTE" then return elseif tostring(args[1]) == "BR_KICKPC" then return elseif tostring(args[1]) == "BR_KICKMOBILE" then return end return old(self, ...) end) local library = { flags = { }, items = { } } local players = game:GetService("Players") local uis = game:GetService("UserInputService") local runservice = game:GetService("RunService") local tweenservice = game:GetService("TweenService") local marketplaceservice = game:GetService("MarketplaceService") local textservice = game:GetService("TextService") local coregui = game:GetService("CoreGui") local httpservice = game:GetService("HttpService") local player = players.LocalPlayer local mouse = player:GetMouse() local camera = game.Workspace.CurrentCamera library.theme = { fontsize = 17, titlesize = 18, font = Enum.Font.Code, background = "rbxassetid://0", tilesize = 90, cursor = false, cursorimg = "https://t0.rbxcdn.com/42f66da98c40252ee151326a82aab51f", backgroundcolor = Color3.fromRGB(20, 20, 20), tabstextcolor = Color3.fromRGB(168,122,207), bordercolor = Color3.fromRGB(75, 207, 255), accentcolor = Color3.fromRGB(168,122,207), accentcolor2 = Color3.fromRGB(88,65,108), outlinecolor = Color3.fromRGB(20,20,20), outlinecolor2 = Color3.fromRGB(30,30,30),--119, 64, 167 sectorcolor = Color3.fromRGB(30, 30, 30), toptextcolor = Color3.fromRGB(255, 255, 255), topheight = 48, topcolor = Color3.fromRGB(30, 30, 30), topcolor2 = Color3.fromRGB(12,12,12), -- Color3.fromRGB(12, 12, 12), buttoncolor = Color3.fromRGB(49, 49, 49), buttoncolor2 = Color3.fromRGB(29,29,29), itemscolor = Color3.fromRGB(170, 170, 170), itemscolor2 = Color3.fromRGB(255,255,255) } if library.theme.cursor and Drawing then local success = pcall(function() library.cursor = Drawing.new("Image") library.cursor.Data = game:HttpGet(library.theme.cursorimg) library.cursor.Size = Vector2.new(64, 64) library.cursor.Visible = uis.MouseEnabled library.cursor.Rounding = 0 library.cursor.Position = Vector2.new(mouse.X - 32, mouse.Y + 6) end) if success and library.cursor then uis.InputChanged:Connect(function(input) if uis.MouseEnabled then if input.UserInputType == Enum.UserInputType.MouseMovement then library.cursor.Position = Vector2.new(input.Position.X - 32, input.Position.Y + 7) end end end) game:GetService("RunService").RenderStepped:Connect(function() uis.OverrideMouseIconBehavior = Enum.OverrideMouseIconBehavior.ForceHide library.cursor.Visible = uis.MouseEnabled and (uis.MouseIconEnabled or game:GetService("GuiService").MenuIsOpen) end) elseif not success and library.cursor then library.cursor:Remove() end end function library:CreateWatermark(name, position) local gamename = marketplaceservice:GetProductInfo(game.PlaceId).Name local watermark = { } watermark.Visible = true watermark.text = " " .. name:gsub("{game}", gamename):gsub("{fps}", "0 FPS") .. " " watermark.main = Instance.new("ScreenGui", coregui) watermark.main.Name = "Watermark" if syn then syn.protect_gui(watermark.main) end if getgenv().watermark then getgenv().watermark:Remove() end getgenv().watermark = watermark.main watermark.mainbar = Instance.new("Frame", watermark.main) watermark.mainbar.Name = "Main" watermark.mainbar.BorderColor3 = Color3.fromRGB(80, 80, 80) watermark.mainbar.Visible = watermark.Visible watermark.mainbar.BorderSizePixel = 0 watermark.mainbar.ZIndex = 5 watermark.mainbar.Position = UDim2.new(0, position and position.X or 10, 0, position and position.Y or 10) watermark.mainbar.Size = UDim2.new(0, 0, 0, 25) watermark.Gradient = Instance.new("UIGradient", watermark.mainbar) watermark.Gradient.Rotation = 90 watermark.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(40, 40, 40)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(10, 10, 10)) }) watermark.Outline = Instance.new("Frame", watermark.mainbar) watermark.Outline.Name = "outline" watermark.Outline.ZIndex = 4 watermark.Outline.BorderSizePixel = 0 watermark.Outline.Visible = watermark.Visible watermark.Outline.BackgroundColor3 = library.theme.outlinecolor watermark.Outline.Position = UDim2.fromOffset(-1, -1) watermark.BlackOutline = Instance.new("Frame", watermark.mainbar) watermark.BlackOutline.Name = "blackline" watermark.BlackOutline.ZIndex = 3 watermark.BlackOutline.BorderSizePixel = 0 watermark.BlackOutline.BackgroundColor3 = library.theme.outlinecolor2 watermark.BlackOutline.Visible = watermark.Visible watermark.BlackOutline.Position = UDim2.fromOffset(-2, -2) watermark.label = Instance.new("TextLabel", watermark.mainbar) watermark.label.Name = "FPSLabel" watermark.label.BackgroundColor3 = Color3.fromRGB(255, 255, 255) watermark.label.BackgroundTransparency = 1.000 watermark.label.Position = UDim2.new(0, 0, 0, 0) watermark.label.Size = UDim2.new(0, 238, 0, 25) watermark.label.Font = library.theme.font watermark.label.ZIndex = 6 watermark.label.Visible = watermark.Visible watermark.label.Text = watermark.text watermark.label.TextColor3 = Color3.fromRGB(255, 255, 255) watermark.label.TextSize = 15 watermark.label.TextStrokeTransparency = 0.000 watermark.label.TextXAlignment = Enum.TextXAlignment.Left watermark.label.Size = UDim2.new(0, watermark.label.TextBounds.X+10, 0, 25) watermark.topbar = Instance.new("Frame", watermark.mainbar) watermark.topbar.Name = "TopBar" watermark.topbar.ZIndex = 6 watermark.topbar.BackgroundColor3 = library.theme.accentcolor watermark.topbar.BorderSizePixel = 0 watermark.topbar.Visible = watermark.Visible watermark.topbar.Size = UDim2.new(0, 0, 0, 1) watermark.mainbar.Size = UDim2.new(0, watermark.label.TextBounds.X, 0, 25) watermark.topbar.Size = UDim2.new(0, watermark.label.TextBounds.X+6, 0, 1) watermark.Outline.Size = watermark.mainbar.Size + UDim2.fromOffset(2, 2) watermark.BlackOutline.Size = watermark.mainbar.Size + UDim2.fromOffset(4, 4) watermark.mainbar.Size = UDim2.new(0, watermark.label.TextBounds.X+4, 0, 25) watermark.label.Size = UDim2.new(0, watermark.label.TextBounds.X+4, 0, 25) watermark.topbar.Size = UDim2.new(0, watermark.label.TextBounds.X+6, 0, 1) watermark.Outline.Size = watermark.mainbar.Size + UDim2.fromOffset(2, 2) watermark.BlackOutline.Size = watermark.mainbar.Size + UDim2.fromOffset(4, 4) local startTime, counter, oldfps = os.clock(), 0, nil runservice.Heartbeat:Connect(function() watermark.label.Visible = watermark.Visible watermark.mainbar.Visible = watermark.Visible watermark.topbar.Visible = watermark.Visible watermark.Outline.Visible = watermark.Visible watermark.BlackOutline.Visible = watermark.Visible if not name:find("{fps}") then watermark.label.Text = " " .. name:gsub("{game}", gamename):gsub("{fps}", "0 FPS") .. " " end if name:find("{fps}") then local currentTime = os.clock() counter = counter + 1 if currentTime - startTime >= 1 then local fps = math.floor(counter / (currentTime - startTime)) counter = 0 startTime = currentTime if fps ~= oldfps then watermark.label.Text = " " .. name:gsub("{game}", gamename):gsub("{fps}", fps .. " FPS") .. " " watermark.label.Size = UDim2.new(0, watermark.label.TextBounds.X+10, 0, 25) watermark.mainbar.Size = UDim2.new(0, watermark.label.TextBounds.X, 0, 25) watermark.topbar.Size = UDim2.new(0, watermark.label.TextBounds.X, 0, 1) watermark.Outline.Size = watermark.mainbar.Size + UDim2.fromOffset(2, 2) watermark.BlackOutline.Size = watermark.mainbar.Size + UDim2.fromOffset(4, 4) end oldfps = fps end end end) watermark.mainbar.MouseEnter:Connect(function() tweenservice:Create(watermark.mainbar, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 1, Active = false }):Play() tweenservice:Create(watermark.topbar, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 1, Active = false }):Play() tweenservice:Create(watermark.label, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { TextTransparency = 1, Active = false }):Play() tweenservice:Create(watermark.Outline, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 1, Active = false }):Play() tweenservice:Create(watermark.BlackOutline, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 1, Active = false }):Play() end) watermark.mainbar.MouseLeave:Connect(function() tweenservice:Create(watermark.mainbar, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 0, Active = true }):Play() tweenservice:Create(watermark.topbar, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 0, Active = true }):Play() tweenservice:Create(watermark.label, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { TextTransparency = 0, Active = true }):Play() tweenservice:Create(watermark.Outline, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 0, Active = true }):Play() tweenservice:Create(watermark.BlackOutline, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { BackgroundTransparency = 0, Active = true }):Play() end) function watermark:UpdateTheme(theme) theme = theme or library.theme watermark.Outline.BackgroundColor3 = theme.outlinecolor watermark.BlackOutline.BackgroundColor3 = theme.outlinecolor2 watermark.label.Font = theme.font watermark.topbar.BackgroundColor3 = theme.accentcolor end return watermark end function library:CreateWindow(name, size, hidebutton) local window = { } window.name = name or "" window.size = UDim2.fromOffset(size.X, size.Y) or UDim2.fromOffset(492, 598) window.hidebutton = hidebutton or Enum.KeyCode.RightShift window.theme = library.theme local updateevent = Instance.new("BindableEvent") function window:UpdateTheme(theme) updateevent:Fire(theme or library.theme) window.theme = (theme or library.theme) end window.Main = Instance.new("ScreenGui", coregui) window.Main.Name = name window.Main.DisplayOrder = 15 if syn then syn.protect_gui(window.Main) end if getgenv().uilib then getgenv().uilib:Remove() end getgenv().uilib = window.Main local dragging, dragInput, dragStart, startPos uis.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart window.Frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) local dragstart = function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = window.Frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end local dragend = function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end window.Frame = Instance.new("TextButton", window.Main) window.Frame.Name = "main" window.Frame.Position = UDim2.fromScale(0.5, 0.5) window.Frame.BorderSizePixel = 0 window.Frame.Size = window.size window.Frame.AutoButtonColor = false window.Frame.Text = "" window.Frame.BackgroundColor3 = window.theme.backgroundcolor window.Frame.AnchorPoint = Vector2.new(0.5, 0.5) updateevent.Event:Connect(function(theme) window.Frame.BackgroundColor3 = theme.backgroundcolor end) uis.InputBegan:Connect(function(key) if key.KeyCode == window.hidebutton then window.Frame.Visible = not window.Frame.Visible end end) local function checkIfGuiInFront(Pos) local objects = coregui:GetGuiObjectsAtPosition(Pos.X, Pos.Y) for i,v in pairs(objects) do if not string.find(v:GetFullName(), window.name) then table.remove(objects, i) end end return (#objects ~= 0 and objects[1].AbsolutePosition ~= Pos) end window.BlackOutline = Instance.new("Frame", window.Frame) window.BlackOutline.Name = "outline" window.BlackOutline.ZIndex = 1 window.BlackOutline.Size = window.size + UDim2.fromOffset(2, 2) window.BlackOutline.BorderSizePixel = 0 window.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 window.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) window.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) window.Outline = Instance.new("Frame", window.Frame) window.Outline.Name = "outline" window.Outline.ZIndex = 0 window.Outline.Size = window.size + UDim2.fromOffset(4, 4) window.Outline.BorderSizePixel = 0 window.Outline.BackgroundColor3 = window.theme.outlinecolor window.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) window.Outline.BackgroundColor3 = theme.outlinecolor end) window.BlackOutline2 = Instance.new("Frame", window.Frame) window.BlackOutline2.Name = "outline" window.BlackOutline2.ZIndex = -1 window.BlackOutline2.Size = window.size + UDim2.fromOffset(6, 6) window.BlackOutline2.BorderSizePixel = 0 window.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 window.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) window.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) window.TopBar = Instance.new("Frame", window.Frame) window.TopBar.Name = "top" window.TopBar.Size = UDim2.fromOffset(window.size.X.Offset, window.theme.topheight) window.TopBar.BorderSizePixel = 0 window.TopBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255) window.TopBar.InputBegan:Connect(dragstart) window.TopBar.InputChanged:Connect(dragend) updateevent.Event:Connect(function(theme) window.TopBar.Size = UDim2.fromOffset(window.size.X.Offset, theme.topheight) end) window.TopGradient = Instance.new("UIGradient", window.TopBar) window.TopGradient.Rotation = 90 window.TopGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, window.theme.topcolor), ColorSequenceKeypoint.new(1.00, window.theme.topcolor2) }) updateevent.Event:Connect(function(theme) window.TopGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, theme.topcolor), ColorSequenceKeypoint.new(1.00, theme.topcolor2) }) end) window.NameLabel = Instance.new("TextLabel", window.TopBar) window.NameLabel.TextColor3 = window.theme.toptextcolor window.NameLabel.Text = window.name window.NameLabel.TextXAlignment = Enum.TextXAlignment.Left window.NameLabel.Font = window.theme.font window.NameLabel.Name = "title" window.NameLabel.Position = UDim2.fromOffset(4, -2) window.NameLabel.BackgroundTransparency = 1 window.NameLabel.Size = UDim2.fromOffset(190, window.TopBar.AbsoluteSize.Y / 2 - 2) window.NameLabel.TextSize = window.theme.titlesize updateevent.Event:Connect(function(theme) window.NameLabel.TextColor3 = theme.toptextcolor window.NameLabel.Font = theme.font window.NameLabel.TextSize = theme.titlesize end) window.Line2 = Instance.new("Frame", window.TopBar) window.Line2.Name = "line" window.Line2.Position = UDim2.fromOffset(0, window.TopBar.AbsoluteSize.Y / 2.1) window.Line2.Size = UDim2.fromOffset(window.size.X.Offset, 1) window.Line2.BorderSizePixel = 0 window.Line2.BackgroundColor3 = window.theme.accentcolor updateevent.Event:Connect(function(theme) window.Line2.BackgroundColor3 = theme.accentcolor end) window.TabList = Instance.new("Frame", window.TopBar) window.TabList.Name = "tablist" window.TabList.BackgroundTransparency = 1 window.TabList.Position = UDim2.fromOffset(0, window.TopBar.AbsoluteSize.Y / 2 + 1) window.TabList.Size = UDim2.fromOffset(window.size.X.Offset, window.TopBar.AbsoluteSize.Y / 2) window.TabList.BorderSizePixel = 0 window.TabList.BackgroundColor3 = Color3.fromRGB(255, 255, 255) window.TabList.InputBegan:Connect(dragstart) window.TabList.InputChanged:Connect(dragend) window.BlackLine = Instance.new("Frame", window.Frame) window.BlackLine.Name = "blackline" window.BlackLine.Size = UDim2.fromOffset(window.size.X.Offset, 1) window.BlackLine.BorderSizePixel = 0 window.BlackLine.ZIndex = 9 window.BlackLine.BackgroundColor3 = window.theme.outlinecolor2 window.BlackLine.Position = UDim2.fromOffset(0, window.TopBar.AbsoluteSize.Y) updateevent.Event:Connect(function(theme) window.BlackLine.BackgroundColor3 = theme.outlinecolor2 end) window.BackgroundImage = Instance.new("ImageLabel", window.Frame) window.BackgroundImage.Name = "background" window.BackgroundImage.BorderSizePixel = 0 window.BackgroundImage.ScaleType = Enum.ScaleType.Tile window.BackgroundImage.Position = window.BlackLine.Position + UDim2.fromOffset(0, 1) window.BackgroundImage.Size = UDim2.fromOffset(window.size.X.Offset, window.size.Y.Offset - window.TopBar.AbsoluteSize.Y - 1) window.BackgroundImage.Image = window.theme.background or "" window.BackgroundImage.ImageTransparency = window.BackgroundImage.Image ~= "" and 0 or 1 window.BackgroundImage.ImageColor3 = Color3.new() window.BackgroundImage.BackgroundColor3 = window.theme.backgroundcolor window.BackgroundImage.TileSize = UDim2.new(0, window.theme.tilesize, 0, window.theme.tilesize) updateevent.Event:Connect(function(theme) window.BackgroundImage.Image = theme.background or "" window.BackgroundImage.ImageTransparency = window.BackgroundImage.Image ~= "" and 0 or 1 window.BackgroundImage.BackgroundColor3 = theme.backgroundcolor window.BackgroundImage.TileSize = UDim2.new(0, theme.tilesize, 0, theme.tilesize) end) window.Line = Instance.new("Frame", window.Frame) window.Line.Name = "line" window.Line.Position = UDim2.fromOffset(0, 0) window.Line.Size = UDim2.fromOffset(60, 1) window.Line.BorderSizePixel = 0 window.Line.BackgroundColor3 = window.theme.accentcolor updateevent.Event:Connect(function(theme) window.Line.BackgroundColor3 = theme.accentcolor end) window.ListLayout = Instance.new("UIListLayout", window.TabList) window.ListLayout.FillDirection = Enum.FillDirection.Horizontal window.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder window.OpenedColorPickers = { } window.Tabs = { } function window:CreateTab(name) local tab = { } tab.name = name or "" local textservice = game:GetService("TextService") local size = textservice:GetTextSize(tab.name, window.theme.fontsize, window.theme.font, Vector2.new(200,300)) tab.TabButton = Instance.new("TextButton", window.TabList) tab.TabButton.TextColor3 = window.theme.tabstextcolor tab.TabButton.Text = tab.name tab.TabButton.AutoButtonColor = false tab.TabButton.Font = window.theme.font tab.TabButton.TextYAlignment = Enum.TextYAlignment.Center tab.TabButton.BackgroundTransparency = 1 tab.TabButton.BorderSizePixel = 0 tab.TabButton.Size = UDim2.fromOffset(size.X + 15, window.TabList.AbsoluteSize.Y - 1) tab.TabButton.Name = tab.name tab.TabButton.TextSize = window.theme.fontsize updateevent.Event:Connect(function(theme) local size = textservice:GetTextSize(tab.name, theme.fontsize, theme.font, Vector2.new(200,300)) tab.TabButton.TextColor3 = tab.TabButton.Name == "SelectedTab" and theme.accentcolor or theme.tabstextcolor tab.TabButton.Font = theme.font tab.TabButton.Size = UDim2.fromOffset(size.X + 15, window.TabList.AbsoluteSize.Y - 1) tab.TabButton.TextSize = theme.fontsize end) tab.Left = Instance.new("ScrollingFrame", window.Frame) tab.Left.Name = "leftside" tab.Left.BorderSizePixel = 0 tab.Left.Size = UDim2.fromOffset(window.size.X.Offset / 2, window.size.Y.Offset - (window.TopBar.AbsoluteSize.Y + 1)) tab.Left.BackgroundTransparency = 1 tab.Left.Visible = false tab.Left.ScrollBarThickness = 0 tab.Left.ScrollingDirection = "Y" tab.Left.Position = window.BlackLine.Position + UDim2.fromOffset(0, 1) tab.LeftListLayout = Instance.new("UIListLayout", tab.Left) tab.LeftListLayout.FillDirection = Enum.FillDirection.Vertical tab.LeftListLayout.SortOrder = Enum.SortOrder.LayoutOrder tab.LeftListLayout.Padding = UDim.new(0, 12) tab.LeftListPadding = Instance.new("UIPadding", tab.Left) tab.LeftListPadding.PaddingTop = UDim.new(0, 12) tab.LeftListPadding.PaddingLeft = UDim.new(0, 12) tab.LeftListPadding.PaddingRight = UDim.new(0, 12) tab.Right = Instance.new("ScrollingFrame", window.Frame) tab.Right.Name = "rightside" tab.Right.ScrollBarThickness = 0 tab.Right.ScrollingDirection = "Y" tab.Right.Visible = false tab.Right.BorderSizePixel = 0 tab.Right.Size = UDim2.fromOffset(window.size.X.Offset / 2, window.size.Y.Offset - (window.TopBar.AbsoluteSize.Y + 1)) tab.Right.BackgroundTransparency = 1 tab.Right.Position = tab.Left.Position + UDim2.fromOffset(tab.Left.AbsoluteSize.X, 0) tab.RightListLayout = Instance.new("UIListLayout", tab.Right) tab.RightListLayout.FillDirection = Enum.FillDirection.Vertical tab.RightListLayout.SortOrder = Enum.SortOrder.LayoutOrder tab.RightListLayout.Padding = UDim.new(0, 12) tab.RightListPadding = Instance.new("UIPadding", tab.Right) tab.RightListPadding.PaddingTop = UDim.new(0, 12) tab.RightListPadding.PaddingLeft = UDim.new(0, 6) tab.RightListPadding.PaddingRight = UDim.new(0, 12) local block = false function tab:SelectTab() repeat wait() until block == false block = true for i,v in pairs(window.Tabs) do if v ~= tab then v.TabButton.TextColor3 = Color3.fromRGB(230, 230, 230) v.TabButton.Name = "Tab" v.Left.Visible = false v.Right.Visible = false end end tab.TabButton.TextColor3 = window.theme.accentcolor tab.TabButton.Name = "SelectedTab" tab.Right.Visible = true tab.Left.Visible = true window.Line:TweenSizeAndPosition(UDim2.fromOffset(size.X + 15, 1), UDim2.new(0, (tab.TabButton.AbsolutePosition.X - window.Frame.AbsolutePosition.X), 0, 0) + (window.BlackLine.Position - UDim2.fromOffset(0, 1)), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.15) wait(0.2) block = false end if #window.Tabs == 0 then tab:SelectTab() end tab.TabButton.MouseButton1Down:Connect(function() tab:SelectTab() end) tab.SectorsLeft = { } tab.SectorsRight = { } function tab:CreateSector(name,side) local sector = { } sector.name = name or "" sector.side = side:lower() or "left" sector.Main = Instance.new("Frame", sector.side == "left" and tab.Left or tab.Right) sector.Main.Name = sector.name:gsub(" ", "") .. "Sector" sector.Main.BorderSizePixel = 0 sector.Main.ZIndex = 4 sector.Main.Size = UDim2.fromOffset(window.size.X.Offset / 2 - 17, 20) sector.Main.BackgroundColor3 = window.theme.sectorcolor --sector.Main.Position = sector.side == "left" and UDim2.new(0, 11, 0, 12) or UDim2.new(0, window.size.X.Offset - sector.Main.AbsoluteSize.X - 11, 0, 12) updateevent.Event:Connect(function(theme) sector.Main.BackgroundColor3 = theme.sectorcolor end) sector.Line = Instance.new("Frame", sector.Main) sector.Line.Name = "line" sector.Line.ZIndex = 4 sector.Line.Size = UDim2.fromOffset(sector.Main.Size.X.Offset + 4, 1) sector.Line.BorderSizePixel = 0 sector.Line.Position = UDim2.fromOffset(-2, -2) sector.Line.BackgroundColor3 = window.theme.accentcolor updateevent.Event:Connect(function(theme) sector.Line.BackgroundColor3 = theme.accentcolor end) sector.BlackOutline = Instance.new("Frame", sector.Main) sector.BlackOutline.Name = "outline" sector.BlackOutline.ZIndex = 3 sector.BlackOutline.Size = sector.Main.Size + UDim2.fromOffset(2, 2) sector.BlackOutline.BorderSizePixel = 0 sector.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 sector.BlackOutline.Position = UDim2.fromOffset(-1, -1) sector.Main:GetPropertyChangedSignal("Size"):Connect(function() sector.BlackOutline.Size = sector.Main.Size + UDim2.fromOffset(2, 2) end) updateevent.Event:Connect(function(theme) sector.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) sector.Outline = Instance.new("Frame", sector.Main) sector.Outline.Name = "outline" sector.Outline.ZIndex = 2 sector.Outline.Size = sector.Main.Size + UDim2.fromOffset(4, 4) sector.Outline.BorderSizePixel = 0 sector.Outline.BackgroundColor3 = window.theme.outlinecolor sector.Outline.Position = UDim2.fromOffset(-2, -2) sector.Main:GetPropertyChangedSignal("Size"):Connect(function() sector.Outline.Size = sector.Main.Size + UDim2.fromOffset(4, 4) end) updateevent.Event:Connect(function(theme) sector.Outline.BackgroundColor3 = theme.outlinecolor end) sector.BlackOutline2 = Instance.new("Frame", sector.Main) sector.BlackOutline2.Name = "outline" sector.BlackOutline2.ZIndex = 1 sector.BlackOutline2.Size = sector.Main.Size + UDim2.fromOffset(6, 6) sector.BlackOutline2.BorderSizePixel = 0 sector.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 sector.BlackOutline2.Position = UDim2.fromOffset(-3, -3) sector.Main:GetPropertyChangedSignal("Size"):Connect(function() sector.BlackOutline2.Size = sector.Main.Size + UDim2.fromOffset(6, 6) end) updateevent.Event:Connect(function(theme) sector.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) local size = textservice:GetTextSize(sector.name, 15, window.theme.font, Vector2.new(2000, 2000)) sector.Label = Instance.new("TextLabel", sector.Main) sector.Label.AnchorPoint = Vector2.new(0,0.5) sector.Label.Position = UDim2.fromOffset(12, -1) sector.Label.Size = UDim2.fromOffset(math.clamp(textservice:GetTextSize(sector.name, 15, window.theme.font, Vector2.new(200,300)).X + 13, 0, sector.Main.Size.X.Offset), size.Y) sector.Label.BackgroundTransparency = 1 sector.Label.BorderSizePixel = 0 sector.Label.ZIndex = 6 sector.Label.Text = sector.name sector.Label.TextColor3 = Color3.new(1,1,2552/255) sector.Label.TextStrokeTransparency = 1 sector.Label.Font = window.theme.font sector.Label.TextSize = 15 updateevent.Event:Connect(function(theme) local size = textservice:GetTextSize(sector.name, 15, theme.font, Vector2.new(2000, 2000)) sector.Label.Size = UDim2.fromOffset(math.clamp(textservice:GetTextSize(sector.name, 15, theme.font, Vector2.new(200,300)).X + 13, 0, sector.Main.Size.X.Offset), size.Y) sector.Label.Font = theme.font end) sector.LabelBackFrame = Instance.new("Frame", sector.Main) sector.LabelBackFrame.Name = "labelframe" sector.LabelBackFrame.ZIndex = 5 sector.LabelBackFrame.Size = UDim2.fromOffset(sector.Label.Size.X.Offset, 10) sector.LabelBackFrame.BorderSizePixel = 0 sector.LabelBackFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) sector.LabelBackFrame.Position = UDim2.fromOffset(sector.Label.Position.X.Offset, sector.BlackOutline2.Position.Y.Offset) sector.Items = Instance.new("Frame", sector.Main) sector.Items.Name = "items" sector.Items.ZIndex = 2 sector.Items.BackgroundTransparency = 1 sector.Items.Size = UDim2.fromOffset(170, 140) sector.Items.AutomaticSize = Enum.AutomaticSize.Y sector.Items.BorderSizePixel = 0 sector.ListLayout = Instance.new("UIListLayout", sector.Items) sector.ListLayout.FillDirection = Enum.FillDirection.Vertical sector.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder sector.ListLayout.Padding = UDim.new(0, 12) sector.ListPadding = Instance.new("UIPadding", sector.Items) sector.ListPadding.PaddingTop = UDim.new(0, 15) sector.ListPadding.PaddingLeft = UDim.new(0, 6) sector.ListPadding.PaddingRight = UDim.new(0, 6) table.insert(sector.side:lower() == "left" and tab.SectorsLeft or tab.SectorsRight, sector) function sector:FixSize() sector.Main.Size = UDim2.fromOffset(window.size.X.Offset / 2 - 17, sector.ListLayout.AbsoluteContentSize.Y + 22) local sizeleft, sizeright = 0, 0 for i,v in pairs(tab.SectorsLeft) do sizeleft = sizeleft + v.Main.AbsoluteSize.Y end for i,v in pairs(tab.SectorsRight) do sizeright = sizeright + v.Main.AbsoluteSize.Y end tab.Left.CanvasSize = UDim2.fromOffset(tab.Left.AbsoluteSize.X, sizeleft + ((#tab.SectorsLeft - 1) * tab.LeftListPadding.PaddingTop.Offset) + 20) tab.Right.CanvasSize = UDim2.fromOffset(tab.Right.AbsoluteSize.X, sizeright + ((#tab.SectorsRight - 1) * tab.RightListPadding.PaddingTop.Offset) + 20) end function sector:AddButton(text, callback) local button = { } button.text = text or "" button.callback = callback or function() end button.Main = Instance.new("TextButton", sector.Items) button.Main.BorderSizePixel = 0 button.Main.Text = "" button.Main.AutoButtonColor = false button.Main.Name = "button" button.Main.ZIndex = 5 button.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 14) button.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255) button.Gradient = Instance.new("UIGradient", button.Main) button.Gradient.Rotation = 90 button.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, window.theme.buttoncolor), ColorSequenceKeypoint.new(1.00, window.theme.buttoncolor2) }) updateevent.Event:Connect(function(theme) button.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, theme.buttoncolor), ColorSequenceKeypoint.new(1.00, theme.buttoncolor2) }) end) button.BlackOutline2 = Instance.new("Frame", button.Main) button.BlackOutline2.Name = "blackline" button.BlackOutline2.ZIndex = 4 button.BlackOutline2.Size = button.Main.Size + UDim2.fromOffset(6, 6) button.BlackOutline2.BorderSizePixel = 0 button.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 button.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) button.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) button.Outline = Instance.new("Frame", button.Main) button.Outline.Name = "blackline" button.Outline.ZIndex = 4 button.Outline.Size = button.Main.Size + UDim2.fromOffset(4, 4) button.Outline.BorderSizePixel = 0 button.Outline.BackgroundColor3 = window.theme.outlinecolor button.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) button.Outline.BackgroundColor3 = theme.outlinecolor end) button.BlackOutline = Instance.new("Frame", button.Main) button.BlackOutline.Name = "blackline" button.BlackOutline.ZIndex = 4 button.BlackOutline.Size = button.Main.Size + UDim2.fromOffset(2, 2) button.BlackOutline.BorderSizePixel = 0 button.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 button.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) button.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) button.Label = Instance.new("TextLabel", button.Main) button.Label.Name = "Label" button.Label.BackgroundTransparency = 1 button.Label.Position = UDim2.new(0, -1, 0, 0) button.Label.ZIndex = 5 button.Label.Size = button.Main.Size button.Label.Font = window.theme.font button.Label.Text = button.text button.Label.TextColor3 = window.theme.itemscolor2 button.Label.TextSize = 15 button.Label.TextStrokeTransparency = 1 button.Label.TextXAlignment = Enum.TextXAlignment.Center button.Main.MouseButton1Down:Connect(button.callback) updateevent.Event:Connect(function(theme) button.Label.Font = theme.font button.Label.TextColor3 = theme.itemscolor end) button.BlackOutline2.MouseEnter:Connect(function() button.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end) button.BlackOutline2.MouseLeave:Connect(function() button.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end) sector:FixSize() return button end function sector:AddLabel(text) local label = { } label.Main = Instance.new("TextLabel", sector.Items) label.Main.Name = "Label" label.Main.BackgroundTransparency = 1 label.Main.Position = UDim2.new(0, -1, 0, 0) label.Main.ZIndex = 4 label.Main.AutomaticSize = Enum.AutomaticSize.XY label.Main.Font = window.theme.font label.Main.Text = text label.Main.TextColor3 = window.theme.itemscolor label.Main.TextSize = 15 label.Main.TextStrokeTransparency = 1 label.Main.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) label.Main.Font = theme.font label.Main.TextColor3 = theme.itemscolor end) function label:Set(value) label.Main.Text = value end sector:FixSize() return label end function sector:AddToggle(text, default, callback, flag) local toggle = { } toggle.text = text or "" toggle.default = default or false toggle.callback = callback or function(value) end toggle.flag = flag or text or "" toggle.value = toggle.default toggle.Main = Instance.new("TextButton", sector.Items) toggle.Main.Name = "toggle" toggle.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255) toggle.Main.BorderColor3 = window.theme.outlinecolor toggle.Main.BorderSizePixel = 0 toggle.Main.Size = UDim2.fromOffset(8, 8) toggle.Main.AutoButtonColor = false toggle.Main.ZIndex = 5 toggle.Main.Font = Enum.Font.SourceSans toggle.Main.Text = "" toggle.Main.TextColor3 = Color3.fromRGB(0, 0, 0) toggle.Main.TextSize = 15 updateevent.Event:Connect(function(theme) toggle.Main.BorderColor3 = theme.outlinecolor end) toggle.BlackOutline2 = Instance.new("Frame", toggle.Main) toggle.BlackOutline2.Name = "blackline" toggle.BlackOutline2.ZIndex = 4 toggle.BlackOutline2.Size = toggle.Main.Size + UDim2.fromOffset(6, 6) toggle.BlackOutline2.BorderSizePixel = 0 toggle.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 toggle.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) toggle.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) toggle.Outline = Instance.new("Frame", toggle.Main) toggle.Outline.Name = "blackline" toggle.Outline.ZIndex = 4 toggle.Outline.Size = toggle.Main.Size + UDim2.fromOffset(4, 4) toggle.Outline.BorderSizePixel = 0 toggle.Outline.BackgroundColor3 = window.theme.outlinecolor toggle.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) toggle.Outline.BackgroundColor3 = theme.outlinecolor end) toggle.BlackOutline = Instance.new("Frame", toggle.Main) toggle.BlackOutline.Name = "blackline" toggle.BlackOutline.ZIndex = 4 toggle.BlackOutline.Size = toggle.Main.Size + UDim2.fromOffset(2, 2) toggle.BlackOutline.BorderSizePixel = 0 toggle.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 toggle.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) toggle.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) toggle.Gradient = Instance.new("UIGradient", toggle.Main) toggle.Gradient.Rotation = (22.5 * 13) toggle.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(30, 30, 30)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(45, 45, 45)) }) toggle.Label = Instance.new("TextButton", toggle.Main) toggle.Label.Name = "Label" toggle.Label.AutoButtonColor = false toggle.Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255) toggle.Label.BackgroundTransparency = 1 toggle.Label.Position = UDim2.fromOffset(toggle.Main.AbsoluteSize.X + 10, -2) toggle.Label.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 71, toggle.BlackOutline.Size.Y.Offset) toggle.Label.Font = window.theme.font toggle.Label.ZIndex = 5 toggle.Label.Text = toggle.text toggle.Label.TextColor3 = window.theme.itemscolor toggle.Label.TextSize = 15 toggle.Label.TextStrokeTransparency = 1 toggle.Label.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) toggle.Label.Font = theme.font toggle.Label.TextColor3 = toggle.value and window.theme.itemscolor2 or theme.itemscolor end) toggle.CheckedFrame = Instance.new("Frame", toggle.Main) toggle.CheckedFrame.ZIndex = 5 toggle.CheckedFrame.BorderSizePixel = 0 toggle.CheckedFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) -- Color3.fromRGB(204, 0, 102) toggle.CheckedFrame.Size = toggle.Main.Size toggle.Gradient2 = Instance.new("UIGradient", toggle.CheckedFrame) toggle.Gradient2.Rotation = (22.5 * 13) toggle.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, window.theme.accentcolor2), ColorSequenceKeypoint.new(1.00, window.theme.accentcolor) }) updateevent.Event:Connect(function(theme) toggle.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, theme.accentcolor2), ColorSequenceKeypoint.new(1.00, theme.accentcolor) }) end) toggle.Items = Instance.new("Frame", toggle.Main) toggle.Items.Name = "\n" toggle.Items.ZIndex = 4 toggle.Items.Size = UDim2.fromOffset(60, toggle.BlackOutline.AbsoluteSize.Y) toggle.Items.BorderSizePixel = 0 toggle.Items.BackgroundTransparency = 1 toggle.Items.BackgroundColor3 = Color3.new(0, 0, 0) toggle.Items.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 71, 0) toggle.ListLayout = Instance.new("UIListLayout", toggle.Items) toggle.ListLayout.FillDirection = Enum.FillDirection.Horizontal toggle.ListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Right toggle.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder toggle.ListLayout.Padding = UDim.new(0.04, 6) if toggle.flag and toggle.flag ~= "" then library.flags[toggle.flag] = toggle.default or false end function toggle:Set(value) if value then toggle.Label.TextColor3 = window.theme.itemscolor2 else toggle.Label.TextColor3 = window.theme.itemscolor end toggle.value = value toggle.CheckedFrame.Visible = value if toggle.flag and toggle.flag ~= "" then library.flags[toggle.flag] = toggle.value end pcall(toggle.callback, value) end function toggle:Get() return toggle.value end toggle:Set(toggle.default) function toggle:AddKeybind(default, flag) local keybind = { } keybind.default = default or "None" keybind.value = keybind.default keybind.flag = flag or ( (toggle.text or "") .. tostring(#toggle.Items:GetChildren())) local shorter_keycodes = { ["LeftShift"] = "LSHIFT", ["RightShift"] = "RSHIFT", ["LeftControl"] = "LCTRL", ["RightControl"] = "RCTRL", ["LeftAlt"] = "LALT", ["RightAlt"] = "RALT" } local text = keybind.default == "None" and "[None]" or "[" .. (shorter_keycodes[keybind.default.Name] or keybind.default.Name) .. "]" local size = textservice:GetTextSize(text, 15, window.theme.font, Vector2.new(2000, 2000)) keybind.Main = Instance.new("TextButton", toggle.Items) keybind.Main.Name = "keybind" keybind.Main.BackgroundTransparency = 1 keybind.Main.BorderSizePixel = 0 keybind.Main.ZIndex = 5 keybind.Main.Size = UDim2.fromOffset(size.X + 2, size.Y - 7) keybind.Main.Text = text keybind.Main.Font = window.theme.font keybind.Main.TextColor3 = Color3.fromRGB(136, 136, 136) keybind.Main.TextSize = 15 keybind.Main.TextXAlignment = Enum.TextXAlignment.Right keybind.Main.MouseButton1Down:Connect(function() keybind.Main.Text = "[...]" keybind.Main.TextColor3 = window.theme.accentcolor end) updateevent.Event:Connect(function(theme) keybind.Main.Font = theme.font if keybind.Main.Text == "[...]" then keybind.Main.TextColor3 = theme.accentcolor else keybind.Main.TextColor3 = Color3.fromRGB(136, 136, 136) end end) if keybind.flag and keybind.flag ~= "" then library.flags[keybind.flag] = keybind.default end function keybind:Set(key) if key == "None" then keybind.Main.Text = "[" .. key .. "]" keybind.value = key if keybind.flag and keybind.flag ~= "" then library.flags[keybind.flag] = key end end keybind.Main.Text = "[" .. (shorter_keycodes[key.Name] or key.Name) .. "]" keybind.value = key if keybind.flag and keybind.flag ~= "" then library.flags[keybind.flag] = keybind.value end end function keybind:Get() return keybind.value end uis.InputBegan:Connect(function(input, gameProcessed) if not gameProcessed then if keybind.Main.Text == "[...]" then keybind.Main.TextColor3 = Color3.fromRGB(136, 136, 136) if input.UserInputType == Enum.UserInputType.Keyboard then keybind:Set(input.KeyCode) else keybind:Set("None") end else if keybind.value ~= "None" and input.KeyCode == keybind.value then toggle:Set(not toggle.CheckedFrame.Visible) end end end end) table.insert(library.items, keybind) return keybind end function toggle:AddDropdown(items, default, multichoice, callback, flag) local dropdown = { } dropdown.defaultitems = items or { } dropdown.default = default dropdown.callback = callback or function() end dropdown.multichoice = multichoice or false dropdown.values = { } dropdown.flag = flag or ( (toggle.text or "") .. tostring(#(sector.Items:GetChildren())) .. "a") dropdown.Main = Instance.new("TextButton", sector.Items) dropdown.Main.Name = "dropdown" dropdown.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255) dropdown.Main.BorderSizePixel = 0 dropdown.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 16) dropdown.Main.Position = UDim2.fromOffset(0, 0) dropdown.Main.ZIndex = 5 dropdown.Main.AutoButtonColor = false dropdown.Main.Font = window.theme.font dropdown.Main.Text = "" dropdown.Main.TextColor3 = Color3.fromRGB(255, 255, 255) dropdown.Main.TextSize = 15 dropdown.Main.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) dropdown.Main.Font = theme.font end) dropdown.Gradient = Instance.new("UIGradient", dropdown.Main) dropdown.Gradient.Rotation = 90 dropdown.Gradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39))} dropdown.SelectedLabel = Instance.new("TextLabel", dropdown.Main) dropdown.SelectedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) dropdown.SelectedLabel.BackgroundTransparency = 1 dropdown.SelectedLabel.Position = UDim2.fromOffset(5, 2) dropdown.SelectedLabel.Size = UDim2.fromOffset(130, 13) dropdown.SelectedLabel.Font = window.theme.font dropdown.SelectedLabel.Text = toggle.text dropdown.SelectedLabel.ZIndex = 5 dropdown.SelectedLabel.TextColor3 = Color3.fromRGB(255, 255, 255) dropdown.SelectedLabel.TextSize = 15 dropdown.SelectedLabel.TextStrokeTransparency = 1 dropdown.SelectedLabel.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) dropdown.SelectedLabel.Font = theme.font end) dropdown.Nav = Instance.new("ImageButton", dropdown.Main) dropdown.Nav.Name = "navigation" dropdown.Nav.BackgroundTransparency = 1 dropdown.Nav.LayoutOrder = 10 dropdown.Nav.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 26, 5) dropdown.Nav.Rotation = 90 dropdown.Nav.ZIndex = 5 dropdown.Nav.Size = UDim2.fromOffset(8, 8) dropdown.Nav.Image = "rbxassetid://4918373417" dropdown.Nav.ImageColor3 = Color3.fromRGB(210, 210, 210) dropdown.BlackOutline2 = Instance.new("Frame", dropdown.Main) dropdown.BlackOutline2.Name = "blackline" dropdown.BlackOutline2.ZIndex = 4 dropdown.BlackOutline2.Size = dropdown.Main.Size + UDim2.fromOffset(6, 6) dropdown.BlackOutline2.BorderSizePixel = 0 dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) dropdown.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) dropdown.Outline = Instance.new("Frame", dropdown.Main) dropdown.Outline.Name = "blackline" dropdown.Outline.ZIndex = 4 dropdown.Outline.Size = dropdown.Main.Size + UDim2.fromOffset(4, 4) dropdown.Outline.BorderSizePixel = 0 dropdown.Outline.BackgroundColor3 = window.theme.outlinecolor dropdown.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) dropdown.Outline.BackgroundColor3 = theme.outlinecolor end) dropdown.BlackOutline = Instance.new("Frame", dropdown.Main) dropdown.BlackOutline.Name = "blackline444" dropdown.BlackOutline.ZIndex = 4 dropdown.BlackOutline.Size = dropdown.Main.Size + UDim2.fromOffset(2, 2) dropdown.BlackOutline.BorderSizePixel = 0 dropdown.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) dropdown.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) dropdown.ItemsFrame = Instance.new("ScrollingFrame", dropdown.Main) dropdown.ItemsFrame.Name = "itemsframe" dropdown.ItemsFrame.BorderSizePixel = 0 dropdown.ItemsFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) dropdown.ItemsFrame.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8) dropdown.ItemsFrame.ScrollBarThickness = 2 dropdown.ItemsFrame.ZIndex = 8 dropdown.ItemsFrame.ScrollingDirection = "Y" dropdown.ItemsFrame.Visible = false dropdown.ItemsFrame.Size = UDim2.new(0, 0, 0, 0) dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.Main.AbsoluteSize.X, 0) dropdown.ListLayout = Instance.new("UIListLayout", dropdown.ItemsFrame) dropdown.ListLayout.FillDirection = Enum.FillDirection.Vertical dropdown.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder dropdown.ListPadding = Instance.new("UIPadding", dropdown.ItemsFrame) dropdown.ListPadding.PaddingTop = UDim.new(0, 2) dropdown.ListPadding.PaddingBottom = UDim.new(0, 2) dropdown.ListPadding.PaddingLeft = UDim.new(0, 2) dropdown.ListPadding.PaddingRight = UDim.new(0, 2) dropdown.BlackOutline2Items = Instance.new("Frame", dropdown.Main) dropdown.BlackOutline2Items.Name = "blackline3" dropdown.BlackOutline2Items.ZIndex = 7 dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6) dropdown.BlackOutline2Items.BorderSizePixel = 0 dropdown.BlackOutline2Items.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutline2Items.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-3, -3) dropdown.BlackOutline2Items.Visible = false updateevent.Event:Connect(function(theme) dropdown.BlackOutline2Items.BackgroundColor3 = theme.outlinecolor2 end) dropdown.OutlineItems = Instance.new("Frame", dropdown.Main) dropdown.OutlineItems.Name = "blackline8" dropdown.OutlineItems.ZIndex = 7 dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4) dropdown.OutlineItems.BorderSizePixel = 0 dropdown.OutlineItems.BackgroundColor3 = window.theme.outlinecolor dropdown.OutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-2, -2) dropdown.OutlineItems.Visible = false updateevent.Event:Connect(function(theme) dropdown.OutlineItems.BackgroundColor3 = theme.outlinecolor end) dropdown.BlackOutlineItems = Instance.new("Frame", dropdown.Main) dropdown.BlackOutlineItems.Name = "blackline3" dropdown.BlackOutlineItems.ZIndex = 7 dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(-2, -2) dropdown.BlackOutlineItems.BorderSizePixel = 0 dropdown.BlackOutlineItems.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-1, -1) dropdown.BlackOutlineItems.Visible = false updateevent.Event:Connect(function(theme) dropdown.BlackOutlineItems.BackgroundColor3 = theme.outlinecolor2 end) dropdown.IgnoreBackButtons = Instance.new("TextButton", dropdown.Main) dropdown.IgnoreBackButtons.BackgroundTransparency = 1 dropdown.IgnoreBackButtons.BorderSizePixel = 0 dropdown.IgnoreBackButtons.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8) dropdown.IgnoreBackButtons.Size = UDim2.new(0, 0, 0, 0) dropdown.IgnoreBackButtons.ZIndex = 7 dropdown.IgnoreBackButtons.Text = "" dropdown.IgnoreBackButtons.Visible = false dropdown.IgnoreBackButtons.AutoButtonColor = false if dropdown.flag and dropdown.flag ~= "" then library.flags[dropdown.flag] = dropdown.multichoice and { dropdown.default or dropdown.defaultitems[1] or "" } or (dropdown.default or dropdown.defaultitems[1] or "") end function dropdown:isSelected(item) for i, v in pairs(dropdown.values) do if v == item then return true end end return false end function dropdown:updateText(text) if #text >= 27 then text = text:sub(1, 25) .. ".." end dropdown.SelectedLabel.Text = text end dropdown.Changed = Instance.new("BindableEvent") function dropdown:Set(value) if type(value) == "table" then dropdown.values = value dropdown:updateText(table.concat(value, ", ")) pcall(dropdown.callback, value) else dropdown:updateText(value) dropdown.values = { value } pcall(dropdown.callback, value) end dropdown.Changed:Fire(value) if dropdown.flag and dropdown.flag ~= "" then library.flags[dropdown.flag] = dropdown.multichoice and dropdown.values or dropdown.values[1] end end function dropdown:Get() return dropdown.multichoice and dropdown.values or dropdown.values[1] end dropdown.items = { } function dropdown:Add(v) local Item = Instance.new("TextButton", dropdown.ItemsFrame) Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40) Item.TextColor3 = Color3.fromRGB(255, 255, 255) Item.BorderSizePixel = 0 Item.Position = UDim2.fromOffset(0, 0) Item.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset - 4, 20) Item.ZIndex = 9 Item.Text = v Item.Name = v Item.AutoButtonColor = false Item.Font = window.theme.font Item.TextSize = 15 Item.TextXAlignment = Enum.TextXAlignment.Left Item.TextStrokeTransparency = 1 dropdown.ItemsFrame.CanvasSize = dropdown.ItemsFrame.CanvasSize + UDim2.fromOffset(0, Item.AbsoluteSize.Y) Item.MouseButton1Down:Connect(function() if dropdown.multichoice then if dropdown:isSelected(v) then for i2, v2 in pairs(dropdown.values) do if v2 == v then table.remove(dropdown.values, i2) end end dropdown:Set(dropdown.values) else table.insert(dropdown.values, v) dropdown:Set(dropdown.values) end return else dropdown.Nav.Rotation = 90 dropdown.ItemsFrame.Visible = false dropdown.ItemsFrame.Active = false dropdown.OutlineItems.Visible = false dropdown.BlackOutlineItems.Visible = false dropdown.BlackOutline2Items.Visible = false dropdown.IgnoreBackButtons.Visible = false dropdown.IgnoreBackButtons.Active = false end dropdown:Set(v) return end) runservice.RenderStepped:Connect(function() if dropdown.multichoice and dropdown:isSelected(v) or dropdown.values[1] == v then Item.BackgroundColor3 = Color3.fromRGB(64, 64, 64) Item.TextColor3 = window.theme.accentcolor Item.Text = " " .. v else Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40) Item.TextColor3 = Color3.fromRGB(255, 255, 255) Item.Text = v end end) table.insert(dropdown.items, v) dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * Item.AbsoluteSize.Y, 20, 156) + 4) dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * Item.AbsoluteSize.Y) + 4) dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4) dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2) dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6) dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size end function dropdown:Remove(value) local item = dropdown.ItemsFrame:FindFirstChild(value) if item then for i,v in pairs(dropdown.items) do if v == value then table.remove(dropdown.items, i) end end dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * item.AbsoluteSize.Y, 20, 156) + 4) dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * item.AbsoluteSize.Y) + 4) dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2) dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4) dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6) dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size item:Remove() end end for i,v in pairs(dropdown.defaultitems) do dropdown:Add(v) end if dropdown.default then dropdown:Set(dropdown.default) end local MouseButton1Down = function() if dropdown.Nav.Rotation == 90 then tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = -90 }):Play() if dropdown.items and #dropdown.items ~= 0 then dropdown.ItemsFrame.ScrollingEnabled = true sector.Main.Parent.ScrollingEnabled = false dropdown.ItemsFrame.Visible = true dropdown.ItemsFrame.Active = true dropdown.IgnoreBackButtons.Visible = true dropdown.IgnoreBackButtons.Active = true dropdown.OutlineItems.Visible = true dropdown.BlackOutlineItems.Visible = true dropdown.BlackOutline2Items.Visible = true end else tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = 90 }):Play() dropdown.ItemsFrame.ScrollingEnabled = false sector.Main.Parent.ScrollingEnabled = true dropdown.ItemsFrame.Visible = false dropdown.ItemsFrame.Active = false dropdown.IgnoreBackButtons.Visible = false dropdown.IgnoreBackButtons.Active = false dropdown.OutlineItems.Visible = false dropdown.BlackOutlineItems.Visible = false dropdown.BlackOutline2Items.Visible = false end end dropdown.Main.MouseButton1Down:Connect(MouseButton1Down) dropdown.Nav.MouseButton1Down:Connect(MouseButton1Down) dropdown.BlackOutline2.MouseEnter:Connect(function() dropdown.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end) dropdown.BlackOutline2.MouseLeave:Connect(function() dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end) sector:FixSize() table.insert(library.items, dropdown) return dropdown end function toggle:AddTextbox(default, callback, flag) local textbox = { } textbox.callback = callback or function() end textbox.default = default textbox.value = "" textbox.flag = flag or ( (toggle.text or "") .. tostring(#(sector.Items:GetChildren())) .. "a") textbox.Holder = Instance.new("Frame", sector.Items) textbox.Holder.Name = "holder" textbox.Holder.ZIndex = 5 textbox.Holder.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 14) textbox.Holder.BorderSizePixel = 0 textbox.Holder.BackgroundColor3 = Color3.fromRGB(255, 255, 255) textbox.Gradient = Instance.new("UIGradient", textbox.Holder) textbox.Gradient.Rotation = 90 textbox.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39)) }) textbox.Main = Instance.new("TextBox", textbox.Holder) textbox.Main.PlaceholderText = "" textbox.Main.Text = "" textbox.Main.BackgroundTransparency = 1 textbox.Main.Font = window.theme.font textbox.Main.Name = "textbox" textbox.Main.MultiLine = false textbox.Main.ClearTextOnFocus = false textbox.Main.ZIndex = 5 textbox.Main.TextScaled = true textbox.Main.Size = textbox.Holder.Size textbox.Main.TextSize = 15 textbox.Main.TextColor3 = Color3.fromRGB(255, 255, 255) textbox.Main.BorderSizePixel = 0 textbox.Main.BackgroundColor3 = Color3.fromRGB(30, 30, 30) textbox.Main.TextXAlignment = Enum.TextXAlignment.Left if textbox.flag and textbox.flag ~= "" then library.flags[textbox.flag] = textbox.default or "" end function textbox:Set(text) textbox.value = text textbox.Main.Text = text if textbox.flag and textbox.flag ~= "" then library.flags[textbox.flag] = text end pcall(textbox.callback, text) end updateevent.Event:Connect(function(theme) textbox.Main.Font = theme.font end) function textbox:Get() return textbox.value end if textbox.default then textbox:Set(textbox.default) end textbox.Main.FocusLost:Connect(function() textbox:Set(textbox.Main.Text) end) textbox.BlackOutline2 = Instance.new("Frame", textbox.Main) textbox.BlackOutline2.Name = "blackline" textbox.BlackOutline2.ZIndex = 4 textbox.BlackOutline2.Size = textbox.Main.Size + UDim2.fromOffset(6, 6) textbox.BlackOutline2.BorderSizePixel = 0 textbox.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 textbox.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) textbox.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) textbox.Outline = Instance.new("Frame", textbox.Main) textbox.Outline.Name = "blackline" textbox.Outline.ZIndex = 4 textbox.Outline.Size = textbox.Main.Size + UDim2.fromOffset(4, 4) textbox.Outline.BorderSizePixel = 0 textbox.Outline.BackgroundColor3 = window.theme.outlinecolor textbox.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) textbox.Outline.BackgroundColor3 = theme.outlinecolor end) textbox.BlackOutline = Instance.new("Frame", textbox.Main) textbox.BlackOutline.Name = "blackline" textbox.BlackOutline.ZIndex = 4 textbox.BlackOutline.Size = textbox.Main.Size + UDim2.fromOffset(2, 2) textbox.BlackOutline.BorderSizePixel = 0 textbox.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 textbox.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) textbox.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) textbox.BlackOutline2.MouseEnter:Connect(function() textbox.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end) textbox.BlackOutline2.MouseLeave:Connect(function() textbox.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end) sector:FixSize() table.insert(library.items, textbox) return textbox end function toggle:AddColorpicker(default, callback, flag) local colorpicker = { } colorpicker.callback = callback or function() end colorpicker.default = default or Color3.fromRGB(255, 255, 255) colorpicker.value = colorpicker.default colorpicker.flag = flag or ( (toggle.text or "") .. tostring(#toggle.Items:GetChildren())) colorpicker.Main = Instance.new("Frame", toggle.Items) colorpicker.Main.ZIndex = 6 colorpicker.Main.BorderSizePixel = 0 colorpicker.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255) colorpicker.Main.Size = UDim2.fromOffset(16, 10) colorpicker.Gradient = Instance.new("UIGradient", colorpicker.Main) colorpicker.Gradient.Rotation = 90 local clr = Color3.new(math.clamp(colorpicker.value.R / 1.7, 0, 1), math.clamp(colorpicker.value.G / 1.7, 0, 1), math.clamp(colorpicker.value.B / 1.7, 0, 1)) colorpicker.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, colorpicker.value), ColorSequenceKeypoint.new(1.00, clr) }) colorpicker.BlackOutline2 = Instance.new("Frame", colorpicker.Main) colorpicker.BlackOutline2.Name = "blackline" colorpicker.BlackOutline2.ZIndex = 4 colorpicker.BlackOutline2.Size = colorpicker.Main.Size + UDim2.fromOffset(6, 6) colorpicker.BlackOutline2.BorderSizePixel = 0 colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 colorpicker.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) if window.OpenedColorPickers[colorpicker.MainPicker] then colorpicker.BlackOutline2.BackgroundColor3 = theme.accentcolor else colorpicker.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end end) colorpicker.Outline = Instance.new("Frame", colorpicker.Main) colorpicker.Outline.Name = "blackline" colorpicker.Outline.ZIndex = 4 colorpicker.Outline.Size = colorpicker.Main.Size + UDim2.fromOffset(4, 4) colorpicker.Outline.BorderSizePixel = 0 colorpicker.Outline.BackgroundColor3 = window.theme.outlinecolor colorpicker.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) colorpicker.Outline.BackgroundColor3 = theme.outlinecolor end) colorpicker.BlackOutline = Instance.new("Frame", colorpicker.Main) colorpicker.BlackOutline.Name = "blackline" colorpicker.BlackOutline.ZIndex = 4 colorpicker.BlackOutline.Size = colorpicker.Main.Size + UDim2.fromOffset(2, 2) colorpicker.BlackOutline.BorderSizePixel = 0 colorpicker.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 colorpicker.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) colorpicker.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) colorpicker.BlackOutline2.MouseEnter:Connect(function() colorpicker.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end) colorpicker.BlackOutline2.MouseLeave:Connect(function() if not window.OpenedColorPickers[colorpicker.MainPicker] then colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end end) colorpicker.MainPicker = Instance.new("TextButton", colorpicker.Main) colorpicker.MainPicker.Name = "picker" colorpicker.MainPicker.ZIndex = 100 colorpicker.MainPicker.Visible = false colorpicker.MainPicker.AutoButtonColor = false colorpicker.MainPicker.Text = "" window.OpenedColorPickers[colorpicker.MainPicker] = false colorpicker.MainPicker.Size = UDim2.fromOffset(180, 196) colorpicker.MainPicker.BorderSizePixel = 0 colorpicker.MainPicker.BackgroundColor3 = Color3.fromRGB(40, 40, 40) colorpicker.MainPicker.Rotation = 0.000000000000001 colorpicker.MainPicker.Position = UDim2.fromOffset(-colorpicker.MainPicker.AbsoluteSize.X + colorpicker.Main.AbsoluteSize.X, 17) colorpicker.BlackOutline3 = Instance.new("Frame", colorpicker.MainPicker) colorpicker.BlackOutline3.Name = "blackline" colorpicker.BlackOutline3.ZIndex = 98 colorpicker.BlackOutline3.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(6, 6) colorpicker.BlackOutline3.BorderSizePixel = 0 colorpicker.BlackOutline3.BackgroundColor3 = window.theme.outlinecolor2 colorpicker.BlackOutline3.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) colorpicker.BlackOutline3.BackgroundColor3 = theme.outlinecolor2 end) colorpicker.Outline2 = Instance.new("Frame", colorpicker.MainPicker) colorpicker.Outline2.Name = "blackline" colorpicker.Outline2.ZIndex = 98 colorpicker.Outline2.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(4, 4) colorpicker.Outline2.BorderSizePixel = 0 colorpicker.Outline2.BackgroundColor3 = window.theme.outlinecolor colorpicker.Outline2.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) colorpicker.Outline2.BackgroundColor3 = theme.outlinecolor end) colorpicker.BlackOutline3 = Instance.new("Frame", colorpicker.MainPicker) colorpicker.BlackOutline3.Name = "blackline" colorpicker.BlackOutline3.ZIndex = 98 colorpicker.BlackOutline3.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(2, 2) colorpicker.BlackOutline3.BorderSizePixel = 0 colorpicker.BlackOutline3.BackgroundColor3 = window.theme.outlinecolor2 colorpicker.BlackOutline3.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) colorpicker.BlackOutline3.BackgroundColor3 = theme.outlinecolor2 end) colorpicker.hue = Instance.new("ImageLabel", colorpicker.MainPicker) colorpicker.hue.ZIndex = 101 colorpicker.hue.Position = UDim2.new(0,3,0,3) colorpicker.hue.Size = UDim2.new(0,172,0,172) colorpicker.hue.Image = "rbxassetid://4155801252" colorpicker.hue.ScaleType = Enum.ScaleType.Stretch colorpicker.hue.BackgroundColor3 = Color3.new(1,0,0) colorpicker.hue.BorderColor3 = window.theme.outlinecolor2 updateevent.Event:Connect(function(theme) colorpicker.hue.BorderColor3 = theme.outlinecolor2 end) colorpicker.hueselectorpointer = Instance.new("ImageLabel", colorpicker.MainPicker) colorpicker.hueselectorpointer.ZIndex = 101 colorpicker.hueselectorpointer.BackgroundTransparency = 1 colorpicker.hueselectorpointer.BorderSizePixel = 0 colorpicker.hueselectorpointer.Position = UDim2.new(0, 0, 0, 0) colorpicker.hueselectorpointer.Size = UDim2.new(0, 7, 0, 7) colorpicker.hueselectorpointer.Image = "rbxassetid://6885856475" colorpicker.selector = Instance.new("TextLabel", colorpicker.MainPicker) colorpicker.selector.ZIndex = 100 colorpicker.selector.Position = UDim2.new(0,3,0,181) colorpicker.selector.Size = UDim2.new(0,173,0,10) colorpicker.selector.BackgroundColor3 = Color3.fromRGB(255,255,255) colorpicker.selector.BorderColor3 = window.theme.outlinecolor2 colorpicker.selector.Text = "" updateevent.Event:Connect(function(theme) colorpicker.selector.BorderColor3 = theme.outlinecolor2 end) colorpicker.gradient = Instance.new("UIGradient", colorpicker.selector) colorpicker.gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(1,0,0)), ColorSequenceKeypoint.new(0.17, Color3.new(1,0,1)), ColorSequenceKeypoint.new(0.33,Color3.new(0,0,1)), ColorSequenceKeypoint.new(0.5,Color3.new(0,1,1)), ColorSequenceKeypoint.new(0.67, Color3.new(0,1,0)), ColorSequenceKeypoint.new(0.83, Color3.new(1,1,0)), ColorSequenceKeypoint.new(1, Color3.new(1,0,0)) }) colorpicker.pointer = Instance.new("Frame", colorpicker.selector) colorpicker.pointer.ZIndex = 101 colorpicker.pointer.BackgroundColor3 = Color3.fromRGB(40, 40, 40) colorpicker.pointer.Position = UDim2.new(0,0,0,0) colorpicker.pointer.Size = UDim2.new(0,2,0,10) colorpicker.pointer.BorderColor3 = Color3.fromRGB(255, 255, 255) if colorpicker.flag and colorpicker.flag ~= "" then library.flags[colorpicker.flag] = colorpicker.default end function colorpicker:RefreshHue() local x = (mouse.X - colorpicker.hue.AbsolutePosition.X) / colorpicker.hue.AbsoluteSize.X local y = (mouse.Y - colorpicker.hue.AbsolutePosition.Y) / colorpicker.hue.AbsoluteSize.Y colorpicker.hueselectorpointer:TweenPosition(UDim2.new(math.clamp(x * colorpicker.hue.AbsoluteSize.X, 0.5, 0.952 * colorpicker.hue.AbsoluteSize.X) / colorpicker.hue.AbsoluteSize.X, 0, math.clamp(y * colorpicker.hue.AbsoluteSize.Y, 0.5, 0.885 * colorpicker.hue.AbsoluteSize.Y) / colorpicker.hue.AbsoluteSize.Y, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05) colorpicker:Set(Color3.fromHSV(colorpicker.color, math.clamp(x * colorpicker.hue.AbsoluteSize.X, 0.5, 1 * colorpicker.hue.AbsoluteSize.X) / colorpicker.hue.AbsoluteSize.X, 1 - (math.clamp(y * colorpicker.hue.AbsoluteSize.Y, 0.5, 1 * colorpicker.hue.AbsoluteSize.Y) / colorpicker.hue.AbsoluteSize.Y))) end function colorpicker:RefreshSelector() local pos = math.clamp((mouse.X - colorpicker.hue.AbsolutePosition.X) / colorpicker.hue.AbsoluteSize.X, 0, 1) colorpicker.color = 1 - pos colorpicker.pointer:TweenPosition(UDim2.new(pos, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05) colorpicker.hue.BackgroundColor3 = Color3.fromHSV(1 - pos, 1, 1) local x = (colorpicker.hueselectorpointer.AbsolutePosition.X - colorpicker.hue.AbsolutePosition.X) / colorpicker.hue.AbsoluteSize.X local y = (colorpicker.hueselectorpointer.AbsolutePosition.Y - colorpicker.hue.AbsolutePosition.Y) / colorpicker.hue.AbsoluteSize.Y colorpicker:Set(Color3.fromHSV(colorpicker.color, math.clamp(x * colorpicker.hue.AbsoluteSize.X, 0.5, 1 * colorpicker.hue.AbsoluteSize.X) / colorpicker.hue.AbsoluteSize.X, 1 - (math.clamp(y * colorpicker.hue.AbsoluteSize.Y, 0.5, 1 * colorpicker.hue.AbsoluteSize.Y) / colorpicker.hue.AbsoluteSize.Y))) end function colorpicker:Set(value) local color = Color3.new(math.clamp(value.r, 0, 1), math.clamp(value.g, 0, 1), math.clamp(value.b, 0, 1)) colorpicker.value = color if colorpicker.flag and colorpicker.flag ~= "" then library.flags[colorpicker.flag] = color end local clr = Color3.new(math.clamp(color.R / 1.7, 0, 1), math.clamp(color.G / 1.7, 0, 1), math.clamp(color.B / 1.7, 0, 1)) colorpicker.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, color), ColorSequenceKeypoint.new(1.00, clr) }) pcall(colorpicker.callback, color) end function colorpicker:Get(value) return colorpicker.value end colorpicker:Set(colorpicker.default) local dragging_selector = false local dragging_hue = false colorpicker.selector.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging_selector = true colorpicker:RefreshSelector() end end) colorpicker.selector.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging_selector = false colorpicker:RefreshSelector() end end) colorpicker.hue.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging_hue = true colorpicker:RefreshHue() end end) colorpicker.hue.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging_hue = false colorpicker:RefreshHue() end end) uis.InputChanged:Connect(function(input) if dragging_selector and input.UserInputType == Enum.UserInputType.MouseMovement then colorpicker:RefreshSelector() end if dragging_hue and input.UserInputType == Enum.UserInputType.MouseMovement then colorpicker:RefreshHue() end end) local inputBegan = function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then for i,v in pairs(window.OpenedColorPickers) do if v and i ~= colorpicker.MainPicker then i.Visible = false window.OpenedColorPickers[i] = false end end colorpicker.MainPicker.Visible = not colorpicker.MainPicker.Visible window.OpenedColorPickers[colorpicker.MainPicker] = colorpicker.MainPicker.Visible if window.OpenedColorPickers[colorpicker.MainPicker] then colorpicker.BlackOutline2.BackgroundColor3 = window.theme.accentcolor else colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end end end colorpicker.Main.InputBegan:Connect(inputBegan) colorpicker.Outline.InputBegan:Connect(inputBegan) colorpicker.BlackOutline2.InputBegan:Connect(inputBegan) table.insert(library.items, colorpicker) return colorpicker end function toggle:AddSlider(min, default, max, decimals, callback, flag) local slider = { } slider.text = text or "" slider.callback = callback or function(value) end slider.min = min or 0 slider.max = max or 100 slider.decimals = decimals or 1 slider.default = default or slider.min slider.flag = flag or ( (toggle.text or "") .. tostring(#toggle.Items:GetChildren())) slider.value = slider.default local dragging = false slider.Main = Instance.new("TextButton", sector.Items) slider.Main.Name = "slider" slider.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255) slider.Main.Position = UDim2.fromOffset(0, 0) slider.Main.BorderSizePixel = 0 slider.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 12) slider.Main.AutoButtonColor = false slider.Main.Text = "" slider.Main.ZIndex = 7 slider.InputLabel = Instance.new("TextLabel", slider.Main) slider.InputLabel.BackgroundTransparency = 1 slider.InputLabel.Size = slider.Main.Size slider.InputLabel.Font = window.theme.font slider.InputLabel.Text = "0" slider.InputLabel.TextColor3 = Color3.fromRGB(240, 240, 240) slider.InputLabel.Position = slider.Main.Position slider.InputLabel.Selectable = false slider.InputLabel.TextSize = 15 slider.InputLabel.ZIndex = 9 slider.InputLabel.TextStrokeTransparency = 1 slider.InputLabel.TextXAlignment = Enum.TextXAlignment.Center updateevent.Event:Connect(function(theme) slider.InputLabel.Font = theme.font slider.InputLabel.TextColor3 = theme.itemscolor end) slider.BlackOutline2 = Instance.new("Frame", slider.Main) slider.BlackOutline2.Name = "blackline" slider.BlackOutline2.ZIndex = 4 slider.BlackOutline2.Size = slider.Main.Size + UDim2.fromOffset(6, 6) slider.BlackOutline2.BorderSizePixel = 0 slider.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 slider.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) slider.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) slider.Outline = Instance.new("Frame", slider.Main) slider.Outline.Name = "blackline" slider.Outline.ZIndex = 4 slider.Outline.Size = slider.Main.Size + UDim2.fromOffset(4, 4) slider.Outline.BorderSizePixel = 0 slider.Outline.BackgroundColor3 = window.theme.outlinecolor slider.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) slider.Outline.BackgroundColor3 = theme.outlinecolor end) slider.BlackOutline = Instance.new("Frame", slider.Main) slider.BlackOutline.Name = "blackline" slider.BlackOutline.ZIndex = 4 slider.BlackOutline.Size = slider.Main.Size + UDim2.fromOffset(2, 2) slider.BlackOutline.BorderSizePixel = 0 slider.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 slider.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) slider.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) slider.Gradient = Instance.new("UIGradient", slider.Main) slider.Gradient.Rotation = 90 slider.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(41, 41, 41)) }) slider.SlideBar = Instance.new("Frame", slider.Main) slider.SlideBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255) --Color3.fromRGB(204, 0, 102) slider.SlideBar.ZIndex = 8 slider.SlideBar.BorderSizePixel = 0 slider.SlideBar.Size = UDim2.fromOffset(0, slider.Main.Size.Y.Offset) slider.Gradient2 = Instance.new("UIGradient", slider.SlideBar) slider.Gradient2.Rotation = 90 slider.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, window.theme.accentcolor), ColorSequenceKeypoint.new(1.00, window.theme.accentcolor2) }) updateevent.Event:Connect(function(theme) slider.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, theme.accentcolor), ColorSequenceKeypoint.new(1.00, theme.accentcolor2) }) end) slider.BlackOutline2.MouseEnter:Connect(function() slider.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end) slider.BlackOutline2.MouseLeave:Connect(function() slider.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end) if slider.flag and slider.flag ~= "" then library.flags[slider.flag] = slider.default or slider.min or 0 end function slider:Get() return slider.value end function slider:Set(value) slider.value = math.clamp(math.round(value * slider.decimals) / slider.decimals, slider.min, slider.max) local percent = 1 - ((slider.max - slider.value) / (slider.max - slider.min)) if slider.flag and slider.flag ~= "" then library.flags[slider.flag] = slider.value end slider.SlideBar:TweenSize(UDim2.fromOffset(percent * slider.Main.AbsoluteSize.X, slider.Main.AbsoluteSize.Y), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05) slider.InputLabel.Text = slider.value pcall(slider.callback, slider.value) end slider:Set(slider.default) function slider:Refresh() local mousePos = camera:WorldToViewportPoint(mouse.Hit.p) local percent = math.clamp(mousePos.X - slider.SlideBar.AbsolutePosition.X, 0, slider.Main.AbsoluteSize.X) / slider.Main.AbsoluteSize.X local value = math.floor((slider.min + (slider.max - slider.min) * percent) * slider.decimals) / slider.decimals value = math.clamp(value, slider.min, slider.max) slider:Set(value) end slider.SlideBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true slider:Refresh() end end) slider.SlideBar.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) slider.Main.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true slider:Refresh() end end) slider.Main.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) uis.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then slider:Refresh() end end) sector:FixSize() table.insert(library.items, slider) return slider end toggle.Main.MouseButton1Down:Connect(function() toggle:Set(not toggle.CheckedFrame.Visible) end) toggle.Label.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then toggle:Set(not toggle.CheckedFrame.Visible) end end) local MouseEnter = function() toggle.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end local MouseLeave = function() toggle.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end toggle.Label.MouseEnter:Connect(MouseEnter) toggle.Label.MouseLeave:Connect(MouseLeave) toggle.BlackOutline2.MouseEnter:Connect(MouseEnter) toggle.BlackOutline2.MouseLeave:Connect(MouseLeave) sector:FixSize() table.insert(library.items, toggle) return toggle end function sector:AddTextbox(text, default, callback, flag) local textbox = { } textbox.text = text or "" textbox.callback = callback or function() end textbox.default = default textbox.value = "" textbox.flag = flag or text or "" textbox.Label = Instance.new("TextButton", sector.Items) textbox.Label.Name = "Label" textbox.Label.AutoButtonColor = false textbox.Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255) textbox.Label.BackgroundTransparency = 1 textbox.Label.Position = UDim2.fromOffset(sector.Main.Size.X.Offset, 0) textbox.Label.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 0) textbox.Label.Font = window.theme.font textbox.Label.ZIndex = 5 textbox.Label.Text = textbox.text textbox.Label.TextColor3 = window.theme.itemscolor textbox.Label.TextSize = 15 textbox.Label.TextStrokeTransparency = 1 textbox.Label.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) textbox.Label.Font = theme.font end) textbox.Holder = Instance.new("Frame", sector.Items) textbox.Holder.Name = "holder" textbox.Holder.ZIndex = 5 textbox.Holder.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 14) textbox.Holder.BorderSizePixel = 0 textbox.Holder.BackgroundColor3 = Color3.fromRGB(255, 255, 255) textbox.Gradient = Instance.new("UIGradient", textbox.Holder) textbox.Gradient.Rotation = 90 textbox.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39)) }) textbox.Main = Instance.new("TextBox", textbox.Holder) textbox.Main.PlaceholderText = textbox.text textbox.Main.PlaceholderColor3 = Color3.fromRGB(190, 190, 190) textbox.Main.Text = "" textbox.Main.BackgroundTransparency = 1 textbox.Main.Font = window.theme.font textbox.Main.Name = "textbox" textbox.Main.MultiLine = false textbox.Main.ClearTextOnFocus = false textbox.Main.ZIndex = 5 textbox.Main.TextScaled = true textbox.Main.Size = textbox.Holder.Size textbox.Main.TextSize = 15 textbox.Main.TextColor3 = Color3.fromRGB(255, 255, 255) textbox.Main.BorderSizePixel = 0 textbox.Main.BackgroundColor3 = Color3.fromRGB(30, 30, 30) textbox.Main.TextXAlignment = Enum.TextXAlignment.Left if textbox.flag and textbox.flag ~= "" then library.flags[textbox.flag] = textbox.default or "" end function textbox:Set(text) textbox.value = text textbox.Main.Text = text if textbox.flag and textbox.flag ~= "" then library.flags[textbox.flag] = text end pcall(textbox.callback, text) end updateevent.Event:Connect(function(theme) textbox.Main.Font = theme.font end) function textbox:Get() return textbox.value end if textbox.default then textbox:Set(textbox.default) end textbox.Main.FocusLost:Connect(function() textbox:Set(textbox.Main.Text) end) textbox.BlackOutline2 = Instance.new("Frame", textbox.Main) textbox.BlackOutline2.Name = "blackline" textbox.BlackOutline2.ZIndex = 4 textbox.BlackOutline2.Size = textbox.Main.Size + UDim2.fromOffset(6, 6) textbox.BlackOutline2.BorderSizePixel = 0 textbox.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 textbox.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) textbox.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) textbox.Outline = Instance.new("Frame", textbox.Main) textbox.Outline.Name = "blackline" textbox.Outline.ZIndex = 4 textbox.Outline.Size = textbox.Main.Size + UDim2.fromOffset(4, 4) textbox.Outline.BorderSizePixel = 0 textbox.Outline.BackgroundColor3 = window.theme.outlinecolor textbox.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) textbox.Outline.BackgroundColor3 = theme.outlinecolor end) textbox.BlackOutline = Instance.new("Frame", textbox.Main) textbox.BlackOutline.Name = "blackline" textbox.BlackOutline.ZIndex = 4 textbox.BlackOutline.Size = textbox.Main.Size + UDim2.fromOffset(2, 2) textbox.BlackOutline.BorderSizePixel = 0 textbox.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 textbox.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) textbox.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) textbox.BlackOutline2.MouseEnter:Connect(function() textbox.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end) textbox.BlackOutline2.MouseLeave:Connect(function() textbox.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end) sector:FixSize() table.insert(library.items, textbox) return textbox end function sector:AddSlider(text, min, default, max, decimals, callback, flag) local slider = { } slider.text = text or "" slider.callback = callback or function(value) end slider.min = min or 0 slider.max = max or 100 slider.decimals = decimals or 1 slider.default = default or slider.min slider.flag = flag or text or "" slider.value = slider.default local dragging = false slider.MainBack = Instance.new("Frame", sector.Items) slider.MainBack.Name = "MainBack" slider.MainBack.ZIndex = 7 slider.MainBack.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 25) slider.MainBack.BorderSizePixel = 0 slider.MainBack.BackgroundTransparency = 1 slider.Label = Instance.new("TextLabel", slider.MainBack) slider.Label.BackgroundTransparency = 1 slider.Label.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 6) slider.Label.Font = window.theme.font slider.Label.Text = slider.text .. ":" slider.Label.TextColor3 = window.theme.itemscolor slider.Label.Position = UDim2.fromOffset(0, 0) slider.Label.TextSize = 15 slider.Label.ZIndex = 4 slider.Label.TextStrokeTransparency = 1 slider.Label.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) slider.Label.Font = theme.font slider.Label.TextColor3 = theme.itemscolor end) local size = textservice:GetTextSize(slider.Label.Text, slider.Label.TextSize, slider.Label.Font, Vector2.new(200,300)) slider.InputLabel = Instance.new("TextBox", slider.MainBack) slider.InputLabel.BackgroundTransparency = 1 slider.InputLabel.ClearTextOnFocus = false slider.InputLabel.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - size.X - 15, 12) slider.InputLabel.Font = window.theme.font slider.InputLabel.Text = "0" slider.InputLabel.TextColor3 = window.theme.itemscolor slider.InputLabel.Position = UDim2.fromOffset(size.X + 3, -3) slider.InputLabel.TextSize = 15 slider.InputLabel.ZIndex = 4 slider.InputLabel.TextStrokeTransparency = 1 slider.InputLabel.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) slider.InputLabel.Font = theme.font slider.InputLabel.TextColor3 = theme.itemscolor local size = textservice:GetTextSize(slider.Label.Text, slider.Label.TextSize, slider.Label.Font, Vector2.new(200,300)) slider.InputLabel.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - size.X - 15, 12) end) slider.Main = Instance.new("TextButton", slider.MainBack) slider.Main.Name = "slider" slider.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255) slider.Main.Position = UDim2.fromOffset(0, 15) slider.Main.BorderSizePixel = 0 slider.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 12) slider.Main.AutoButtonColor = false slider.Main.Text = "" slider.Main.ZIndex = 5 slider.BlackOutline2 = Instance.new("Frame", slider.Main) slider.BlackOutline2.Name = "blackline" slider.BlackOutline2.ZIndex = 4 slider.BlackOutline2.Size = slider.Main.Size + UDim2.fromOffset(6, 6) slider.BlackOutline2.BorderSizePixel = 0 slider.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 slider.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) slider.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) slider.Outline = Instance.new("Frame", slider.Main) slider.Outline.Name = "blackline" slider.Outline.ZIndex = 4 slider.Outline.Size = slider.Main.Size + UDim2.fromOffset(4, 4) slider.Outline.BorderSizePixel = 0 slider.Outline.BackgroundColor3 = window.theme.outlinecolor slider.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) slider.Outline.BackgroundColor3 = theme.outlinecolor end) slider.BlackOutline = Instance.new("Frame", slider.Main) slider.BlackOutline.Name = "blackline" slider.BlackOutline.ZIndex = 4 slider.BlackOutline.Size = slider.Main.Size + UDim2.fromOffset(2, 2) slider.BlackOutline.BorderSizePixel = 0 slider.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 slider.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) slider.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) slider.Gradient = Instance.new("UIGradient", slider.Main) slider.Gradient.Rotation = 90 slider.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(41, 41, 41)) }) slider.SlideBar = Instance.new("Frame", slider.Main) slider.SlideBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255) --Color3.fromRGB(204, 0, 102) slider.SlideBar.ZIndex = 5 slider.SlideBar.BorderSizePixel = 0 slider.SlideBar.Size = UDim2.fromOffset(0, slider.Main.Size.Y.Offset) slider.Gradient2 = Instance.new("UIGradient", slider.SlideBar) slider.Gradient2.Rotation = 90 slider.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, window.theme.accentcolor), ColorSequenceKeypoint.new(1.00, window.theme.accentcolor2) }) updateevent.Event:Connect(function(theme) slider.Gradient2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, theme.accentcolor), ColorSequenceKeypoint.new(1.00, theme.accentcolor2) }) end) slider.BlackOutline2.MouseEnter:Connect(function() slider.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end) slider.BlackOutline2.MouseLeave:Connect(function() slider.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end) if slider.flag and slider.flag ~= "" then library.flags[slider.flag] = slider.default or slider.min or 0 end function slider:Get() return slider.value end function slider:Set(value) slider.value = math.clamp(math.round(value * slider.decimals) / slider.decimals, slider.min, slider.max) local percent = 1 - ((slider.max - slider.value) / (slider.max - slider.min)) if slider.flag and slider.flag ~= "" then library.flags[slider.flag] = slider.value end slider.SlideBar:TweenSize(UDim2.fromOffset(percent * slider.Main.AbsoluteSize.X, slider.Main.AbsoluteSize.Y), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05) slider.InputLabel.Text = slider.value pcall(slider.callback, slider.value) end slider:Set(slider.default) slider.InputLabel.FocusLost:Connect(function(Return) if not Return then return end if (slider.InputLabel.Text:match("^%d+$")) then slider:Set(tonumber(slider.InputLabel.Text)) else slider.InputLabel.Text = tostring(slider.value) end end) function slider:Refresh() local mousePos = camera:WorldToViewportPoint(mouse.Hit.p) local percent = math.clamp(mousePos.X - slider.SlideBar.AbsolutePosition.X, 0, slider.Main.AbsoluteSize.X) / slider.Main.AbsoluteSize.X local value = math.floor((slider.min + (slider.max - slider.min) * percent) * slider.decimals) / slider.decimals value = math.clamp(value, slider.min, slider.max) slider:Set(value) end slider.SlideBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true slider:Refresh() end end) slider.SlideBar.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) slider.Main.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true slider:Refresh() end end) slider.Main.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) uis.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then slider:Refresh() end end) sector:FixSize() table.insert(library.items, slider) return slider end function sector:AddColorpicker(text, default, callback, flag) local colorpicker = { } colorpicker.text = text or "" colorpicker.callback = callback or function() end colorpicker.default = default or Color3.fromRGB(255, 255, 255) colorpicker.value = colorpicker.default colorpicker.flag = flag or text or "" colorpicker.Label = Instance.new("TextLabel", sector.Items) colorpicker.Label.BackgroundTransparency = 1 colorpicker.Label.Size = UDim2.fromOffset(156, 10) colorpicker.Label.ZIndex = 4 colorpicker.Label.Font = window.theme.font colorpicker.Label.Text = colorpicker.text colorpicker.Label.TextColor3 = window.theme.itemscolor colorpicker.Label.TextSize = 15 colorpicker.Label.TextStrokeTransparency = 1 colorpicker.Label.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) colorpicker.Label.Font = theme.font colorpicker.Label.TextColor3 = theme.itemscolor end) colorpicker.Main = Instance.new("Frame", colorpicker.Label) colorpicker.Main.ZIndex = 6 colorpicker.Main.BorderSizePixel = 0 colorpicker.Main.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 29, 0) colorpicker.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255) colorpicker.Main.Size = UDim2.fromOffset(16, 10) colorpicker.Gradient = Instance.new("UIGradient", colorpicker.Main) colorpicker.Gradient.Rotation = 90 local clr = Color3.new(math.clamp(colorpicker.value.R / 1.7, 0, 1), math.clamp(colorpicker.value.G / 1.7, 0, 1), math.clamp(colorpicker.value.B / 1.7, 0, 1)) colorpicker.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, colorpicker.value), ColorSequenceKeypoint.new(1.00, clr) }) colorpicker.BlackOutline2 = Instance.new("Frame", colorpicker.Main) colorpicker.BlackOutline2.Name = "blackline" colorpicker.BlackOutline2.ZIndex = 4 colorpicker.BlackOutline2.Size = colorpicker.Main.Size + UDim2.fromOffset(6, 6) colorpicker.BlackOutline2.BorderSizePixel = 0 colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 colorpicker.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) colorpicker.BlackOutline2.BackgroundColor3 = window.OpenedColorPickers[colorpicker.MainPicker] and theme.accentcolor or theme.outlinecolor2 end) colorpicker.Outline = Instance.new("Frame", colorpicker.Main) colorpicker.Outline.Name = "blackline" colorpicker.Outline.ZIndex = 4 colorpicker.Outline.Size = colorpicker.Main.Size + UDim2.fromOffset(4, 4) colorpicker.Outline.BorderSizePixel = 0 colorpicker.Outline.BackgroundColor3 = window.theme.outlinecolor colorpicker.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) colorpicker.Outline.BackgroundColor3 = theme.outlinecolor end) colorpicker.BlackOutline = Instance.new("Frame", colorpicker.Main) colorpicker.BlackOutline.Name = "blackline" colorpicker.BlackOutline.ZIndex = 4 colorpicker.BlackOutline.Size = colorpicker.Main.Size + UDim2.fromOffset(2, 2) colorpicker.BlackOutline.BorderSizePixel = 0 colorpicker.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 colorpicker.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) colorpicker.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) colorpicker.BlackOutline2.MouseEnter:Connect(function() colorpicker.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end) colorpicker.BlackOutline2.MouseLeave:Connect(function() if not window.OpenedColorPickers[colorpicker.MainPicker] then colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end end) colorpicker.MainPicker = Instance.new("TextButton", colorpicker.Main) colorpicker.MainPicker.Name = "picker" colorpicker.MainPicker.ZIndex = 100 colorpicker.MainPicker.Visible = false colorpicker.MainPicker.AutoButtonColor = false colorpicker.MainPicker.Text = "" window.OpenedColorPickers[colorpicker.MainPicker] = false colorpicker.MainPicker.Size = UDim2.fromOffset(180, 196) colorpicker.MainPicker.BorderSizePixel = 0 colorpicker.MainPicker.BackgroundColor3 = Color3.fromRGB(40, 40, 40) colorpicker.MainPicker.Rotation = 0.000000000000001 colorpicker.MainPicker.Position = UDim2.fromOffset(-colorpicker.MainPicker.AbsoluteSize.X + colorpicker.Main.AbsoluteSize.X, 15) colorpicker.BlackOutline3 = Instance.new("Frame", colorpicker.MainPicker) colorpicker.BlackOutline3.Name = "blackline" colorpicker.BlackOutline3.ZIndex = 98 colorpicker.BlackOutline3.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(6, 6) colorpicker.BlackOutline3.BorderSizePixel = 0 colorpicker.BlackOutline3.BackgroundColor3 = window.theme.outlinecolor2 colorpicker.BlackOutline3.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) colorpicker.BlackOutline3.BackgroundColor3 = theme.outlinecolor2 end) colorpicker.Outline2 = Instance.new("Frame", colorpicker.MainPicker) colorpicker.Outline2.Name = "blackline" colorpicker.Outline2.ZIndex = 98 colorpicker.Outline2.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(4, 4) colorpicker.Outline2.BorderSizePixel = 0 colorpicker.Outline2.BackgroundColor3 = window.theme.outlinecolor colorpicker.Outline2.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) colorpicker.Outline2.BackgroundColor3 = theme.outlinecolor end) colorpicker.BlackOutline3 = Instance.new("Frame", colorpicker.MainPicker) colorpicker.BlackOutline3.Name = "blackline" colorpicker.BlackOutline3.ZIndex = 98 colorpicker.BlackOutline3.Size = colorpicker.MainPicker.Size + UDim2.fromOffset(2, 2) colorpicker.BlackOutline3.BorderSizePixel = 0 colorpicker.BlackOutline3.BackgroundColor3 = window.theme.outlinecolor2 colorpicker.BlackOutline3.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) colorpicker.BlackOutline3.BackgroundColor3 = theme.outlinecolor2 end) colorpicker.hue = Instance.new("ImageLabel", colorpicker.MainPicker) colorpicker.hue.ZIndex = 101 colorpicker.hue.Position = UDim2.new(0,3,0,3) colorpicker.hue.Size = UDim2.new(0,172,0,172) colorpicker.hue.Image = "rbxassetid://4155801252" colorpicker.hue.ScaleType = Enum.ScaleType.Stretch colorpicker.hue.BackgroundColor3 = Color3.new(1,0,0) colorpicker.hue.BorderColor3 = window.theme.outlinecolor2 updateevent.Event:Connect(function(theme) colorpicker.hue.BorderColor3 = theme.outlinecolor2 end) colorpicker.hueselectorpointer = Instance.new("ImageLabel", colorpicker.MainPicker) colorpicker.hueselectorpointer.ZIndex = 101 colorpicker.hueselectorpointer.BackgroundTransparency = 1 colorpicker.hueselectorpointer.BorderSizePixel = 0 colorpicker.hueselectorpointer.Position = UDim2.new(0, 0, 0, 0) colorpicker.hueselectorpointer.Size = UDim2.new(0, 7, 0, 7) colorpicker.hueselectorpointer.Image = "rbxassetid://6885856475" colorpicker.selector = Instance.new("TextLabel", colorpicker.MainPicker) colorpicker.selector.ZIndex = 100 colorpicker.selector.Position = UDim2.new(0,3,0,181) colorpicker.selector.Size = UDim2.new(0,173,0,10) colorpicker.selector.BackgroundColor3 = Color3.fromRGB(255,255,255) colorpicker.selector.BorderColor3 = window.theme.outlinecolor2 colorpicker.selector.Text = "" updateevent.Event:Connect(function(theme) colorpicker.selector.BorderColor3 = theme.outlinecolor2 end) colorpicker.gradient = Instance.new("UIGradient", colorpicker.selector) colorpicker.gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(1,0,0)), ColorSequenceKeypoint.new(0.17, Color3.new(1,0,1)), ColorSequenceKeypoint.new(0.33,Color3.new(0,0,1)), ColorSequenceKeypoint.new(0.5,Color3.new(0,1,1)), ColorSequenceKeypoint.new(0.67, Color3.new(0,1,0)), ColorSequenceKeypoint.new(0.83, Color3.new(1,1,0)), ColorSequenceKeypoint.new(1, Color3.new(1,0,0)) }) colorpicker.pointer = Instance.new("Frame", colorpicker.selector) colorpicker.pointer.ZIndex = 101 colorpicker.pointer.BackgroundColor3 = Color3.fromRGB(40, 40, 40) colorpicker.pointer.Position = UDim2.new(0,0,0,0) colorpicker.pointer.Size = UDim2.new(0,2,0,10) colorpicker.pointer.BorderColor3 = Color3.fromRGB(255, 255, 255) if colorpicker.flag and colorpicker.flag ~= "" then library.flags[colorpicker.flag] = colorpicker.default end function colorpicker:RefreshSelector() local pos = math.clamp((mouse.X - colorpicker.hue.AbsolutePosition.X) / colorpicker.hue.AbsoluteSize.X, 0, 1) colorpicker.color = 1 - pos colorpicker.pointer:TweenPosition(UDim2.new(pos, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05) colorpicker.hue.BackgroundColor3 = Color3.fromHSV(1 - pos, 1, 1) end function colorpicker:RefreshHue() local x = (mouse.X - colorpicker.hue.AbsolutePosition.X) / colorpicker.hue.AbsoluteSize.X local y = (mouse.Y - colorpicker.hue.AbsolutePosition.Y) / colorpicker.hue.AbsoluteSize.Y colorpicker.hueselectorpointer:TweenPosition(UDim2.new(math.clamp(x * colorpicker.hue.AbsoluteSize.X, 0.5, 0.952 * colorpicker.hue.AbsoluteSize.X) / colorpicker.hue.AbsoluteSize.X, 0, math.clamp(y * colorpicker.hue.AbsoluteSize.Y, 0.5, 0.885 * colorpicker.hue.AbsoluteSize.Y) / colorpicker.hue.AbsoluteSize.Y, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.05) colorpicker:Set(Color3.fromHSV(colorpicker.color, math.clamp(x * colorpicker.hue.AbsoluteSize.X, 0.5, 1 * colorpicker.hue.AbsoluteSize.X) / colorpicker.hue.AbsoluteSize.X, 1 - (math.clamp(y * colorpicker.hue.AbsoluteSize.Y, 0.5, 1 * colorpicker.hue.AbsoluteSize.Y) / colorpicker.hue.AbsoluteSize.Y))) end function colorpicker:Set(value) local color = Color3.new(math.clamp(value.r, 0, 1), math.clamp(value.g, 0, 1), math.clamp(value.b, 0, 1)) colorpicker.value = color if colorpicker.flag and colorpicker.flag ~= "" then library.flags[colorpicker.flag] = color end local clr = Color3.new(math.clamp(color.R / 1.7, 0, 1), math.clamp(color.G / 1.7, 0, 1), math.clamp(color.B / 1.7, 0, 1)) colorpicker.Gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, color), ColorSequenceKeypoint.new(1.00, clr) }) pcall(colorpicker.callback, color) end function colorpicker:Get() return colorpicker.value end colorpicker:Set(colorpicker.default) function colorpicker:AddDropdown(items, default, multichoice, callback, flag) local dropdown = { } dropdown.defaultitems = items or { } dropdown.default = default dropdown.callback = callback or function() end dropdown.multichoice = multichoice or false dropdown.values = { } dropdown.flag = flag or ((colorpicker.text or "") .. tostring( #(sector.Items:GetChildren()) )) dropdown.Main = Instance.new("TextButton", sector.Items) dropdown.Main.Name = "dropdown" dropdown.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255) dropdown.Main.BorderSizePixel = 0 dropdown.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 16) dropdown.Main.Position = UDim2.fromOffset(0, 0) dropdown.Main.ZIndex = 5 dropdown.Main.AutoButtonColor = false dropdown.Main.Font = window.theme.font dropdown.Main.Text = "" dropdown.Main.TextColor3 = Color3.fromRGB(255, 255, 255) dropdown.Main.TextSize = 15 dropdown.Main.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) dropdown.Main.Font = theme.font end) dropdown.Gradient = Instance.new("UIGradient", dropdown.Main) dropdown.Gradient.Rotation = 90 dropdown.Gradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39))} dropdown.SelectedLabel = Instance.new("TextLabel", dropdown.Main) dropdown.SelectedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) dropdown.SelectedLabel.BackgroundTransparency = 1 dropdown.SelectedLabel.Position = UDim2.fromOffset(5, 2) dropdown.SelectedLabel.Size = UDim2.fromOffset(130, 13) dropdown.SelectedLabel.Font = window.theme.font dropdown.SelectedLabel.Text = colorpicker.text dropdown.SelectedLabel.ZIndex = 5 dropdown.SelectedLabel.TextColor3 = Color3.fromRGB(255, 255, 255) dropdown.SelectedLabel.TextSize = 15 dropdown.SelectedLabel.TextStrokeTransparency = 1 dropdown.SelectedLabel.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) dropdown.SelectedLabel.Font = theme.font end) dropdown.Nav = Instance.new("ImageButton", dropdown.Main) dropdown.Nav.Name = "navigation" dropdown.Nav.BackgroundTransparency = 1 dropdown.Nav.LayoutOrder = 10 dropdown.Nav.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 26, 5) dropdown.Nav.Rotation = 90 dropdown.Nav.ZIndex = 5 dropdown.Nav.Size = UDim2.fromOffset(8, 8) dropdown.Nav.Image = "rbxassetid://4918373417" dropdown.Nav.ImageColor3 = Color3.fromRGB(210, 210, 210) dropdown.BlackOutline2 = Instance.new("Frame", dropdown.Main) dropdown.BlackOutline2.Name = "blackline" dropdown.BlackOutline2.ZIndex = 4 dropdown.BlackOutline2.Size = dropdown.Main.Size + UDim2.fromOffset(6, 6) dropdown.BlackOutline2.BorderSizePixel = 0 dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) dropdown.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) dropdown.Outline = Instance.new("Frame", dropdown.Main) dropdown.Outline.Name = "blackline" dropdown.Outline.ZIndex = 4 dropdown.Outline.Size = dropdown.Main.Size + UDim2.fromOffset(4, 4) dropdown.Outline.BorderSizePixel = 0 dropdown.Outline.BackgroundColor3 = window.theme.outlinecolor dropdown.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) dropdown.Outline.BackgroundColor3 = theme.outlinecolor end) dropdown.BlackOutline = Instance.new("Frame", dropdown.Main) dropdown.BlackOutline.Name = "blackline" dropdown.BlackOutline.ZIndex = 4 dropdown.BlackOutline.Size = dropdown.Main.Size + UDim2.fromOffset(2, 2) dropdown.BlackOutline.BorderSizePixel = 0 dropdown.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) dropdown.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) dropdown.ItemsFrame = Instance.new("ScrollingFrame", dropdown.Main) dropdown.ItemsFrame.Name = "itemsframe" dropdown.ItemsFrame.BorderSizePixel = 0 dropdown.ItemsFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) dropdown.ItemsFrame.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8) dropdown.ItemsFrame.ScrollBarThickness = 2 dropdown.ItemsFrame.ZIndex = 8 dropdown.ItemsFrame.ScrollingDirection = "Y" dropdown.ItemsFrame.Visible = false dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.Main.AbsoluteSize.X, 0) dropdown.ListLayout = Instance.new("UIListLayout", dropdown.ItemsFrame) dropdown.ListLayout.FillDirection = Enum.FillDirection.Vertical dropdown.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder dropdown.ListPadding = Instance.new("UIPadding", dropdown.ItemsFrame) dropdown.ListPadding.PaddingTop = UDim.new(0, 2) dropdown.ListPadding.PaddingBottom = UDim.new(0, 2) dropdown.ListPadding.PaddingLeft = UDim.new(0, 2) dropdown.ListPadding.PaddingRight = UDim.new(0, 2) dropdown.BlackOutline2Items = Instance.new("Frame", dropdown.Main) dropdown.BlackOutline2Items.Name = "blackline" dropdown.BlackOutline2Items.ZIndex = 7 dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6) dropdown.BlackOutline2Items.BorderSizePixel = 0 dropdown.BlackOutline2Items.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutline2Items.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-3, -3) dropdown.BlackOutline2Items.Visible = false updateevent.Event:Connect(function(theme) dropdown.BlackOutline2Items.BackgroundColor3 = theme.outlinecolor2 end) dropdown.OutlineItems = Instance.new("Frame", dropdown.Main) dropdown.OutlineItems.Name = "blackline" dropdown.OutlineItems.ZIndex = 7 dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4) dropdown.OutlineItems.BorderSizePixel = 0 dropdown.OutlineItems.BackgroundColor3 = window.theme.outlinecolor dropdown.OutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-2, -2) dropdown.OutlineItems.Visible = false updateevent.Event:Connect(function(theme) dropdown.OutlineItems.BackgroundColor3 = theme.outlinecolor end) dropdown.BlackOutlineItems = Instance.new("Frame", dropdown.Main) dropdown.BlackOutlineItems.Name = "blackline" dropdown.BlackOutlineItems.ZIndex = 7 dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(-2, -2) dropdown.BlackOutlineItems.BorderSizePixel = 0 dropdown.BlackOutlineItems.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-1, -1) dropdown.BlackOutlineItems.Visible = false updateevent.Event:Connect(function(theme) dropdown.BlackOutlineItems.BackgroundColor3 = theme.outlinecolor2 end) dropdown.IgnoreBackButtons = Instance.new("TextButton", dropdown.Main) dropdown.IgnoreBackButtons.BackgroundTransparency = 1 dropdown.IgnoreBackButtons.BorderSizePixel = 0 dropdown.IgnoreBackButtons.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8) dropdown.IgnoreBackButtons.Size = UDim2.new(0, 0, 0, 0) dropdown.IgnoreBackButtons.ZIndex = 7 dropdown.IgnoreBackButtons.Text = "" dropdown.IgnoreBackButtons.Visible = false dropdown.IgnoreBackButtons.AutoButtonColor = false if dropdown.flag and dropdown.flag ~= "" then library.flags[dropdown.flag] = dropdown.multichoice and { dropdown.default or dropdown.defaultitems[1] or "" } or (dropdown.default or dropdown.defaultitems[1] or "") end function dropdown:isSelected(item) for i, v in pairs(dropdown.values) do if v == item then return true end end return false end function dropdown:updateText(text) if #text >= 27 then text = text:sub(1, 25) .. ".." end dropdown.SelectedLabel.Text = text end dropdown.Changed = Instance.new("BindableEvent") function dropdown:Set(value) if type(value) == "table" then dropdown.values = value dropdown:updateText(table.concat(value, ", ")) pcall(dropdown.callback, value) else dropdown:updateText(value) dropdown.values = { value } pcall(dropdown.callback, value) end dropdown.Changed:Fire(value) if dropdown.flag and dropdown.flag ~= "" then library.flags[dropdown.flag] = dropdown.multichoice and dropdown.values or dropdown.values[1] end end function dropdown:Get() return dropdown.multichoice and dropdown.values or dropdown.values[1] end dropdown.items = { } function dropdown:Add(v) local Item = Instance.new("TextButton", dropdown.ItemsFrame) Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40) Item.TextColor3 = Color3.fromRGB(255, 255, 255) Item.BorderSizePixel = 0 Item.Position = UDim2.fromOffset(0, 0) Item.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset - 4, 20) Item.ZIndex = 9 Item.Text = v Item.Name = v Item.AutoButtonColor = false Item.Font = window.theme.font Item.TextSize = 15 Item.TextXAlignment = Enum.TextXAlignment.Left Item.TextStrokeTransparency = 1 dropdown.ItemsFrame.CanvasSize = dropdown.ItemsFrame.CanvasSize + UDim2.fromOffset(0, Item.AbsoluteSize.Y) Item.MouseButton1Down:Connect(function() if dropdown.multichoice then if dropdown:isSelected(v) then for i2, v2 in pairs(dropdown.values) do if v2 == v then table.remove(dropdown.values, i2) end end dropdown:Set(dropdown.values) else table.insert(dropdown.values, v) dropdown:Set(dropdown.values) end return else dropdown.Nav.Rotation = 90 dropdown.ItemsFrame.Visible = false dropdown.ItemsFrame.Active = false dropdown.OutlineItems.Visible = false dropdown.BlackOutlineItems.Visible = false dropdown.BlackOutline2Items.Visible = false dropdown.IgnoreBackButtons.Visible = false dropdown.IgnoreBackButtons.Active = false end dropdown:Set(v) return end) runservice.RenderStepped:Connect(function() if dropdown.multichoice and dropdown:isSelected(v) or dropdown.values[1] == v then Item.BackgroundColor3 = Color3.fromRGB(64, 64, 64) Item.TextColor3 = window.theme.accentcolor Item.Text = " " .. v else Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40) Item.TextColor3 = Color3.fromRGB(255, 255, 255) Item.Text = v end end) table.insert(dropdown.items, v) dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * Item.AbsoluteSize.Y, 20, 156) + 4) dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * Item.AbsoluteSize.Y) + 4) dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4) dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2) dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6) dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size end function dropdown:Remove(value) local item = dropdown.ItemsFrame:FindFirstChild(value) if item then for i,v in pairs(dropdown.items) do if v == value then table.remove(dropdown.items, i) end end dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * item.AbsoluteSize.Y, 20, 156) + 4) dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * item.AbsoluteSize.Y) + 4) dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2) dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4) dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6) dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size item:Remove() end end for i,v in pairs(dropdown.defaultitems) do dropdown:Add(v) end if dropdown.default then dropdown:Set(dropdown.default) end local MouseButton1Down = function() if dropdown.Nav.Rotation == 90 then dropdown.ItemsFrame.ScrollingEnabled = true sector.Main.Parent.ScrollingEnabled = false tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = -90 }):Play() dropdown.ItemsFrame.Visible = true dropdown.ItemsFrame.Active = true dropdown.IgnoreBackButtons.Visible = true dropdown.IgnoreBackButtons.Active = true dropdown.OutlineItems.Visible = true dropdown.BlackOutlineItems.Visible = true dropdown.BlackOutline2Items.Visible = true else dropdown.ItemsFrame.ScrollingEnabled = false sector.Main.Parent.ScrollingEnabled = true tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = 90 }):Play() dropdown.ItemsFrame.Visible = false dropdown.ItemsFrame.Active = false dropdown.IgnoreBackButtons.Visible = false dropdown.IgnoreBackButtons.Active = false dropdown.OutlineItems.Visible = false dropdown.BlackOutlineItems.Visible = false dropdown.BlackOutline2Items.Visible = false end end dropdown.Main.MouseButton1Down:Connect(MouseButton1Down) dropdown.Nav.MouseButton1Down:Connect(MouseButton1Down) dropdown.BlackOutline2.MouseEnter:Connect(function() dropdown.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end) dropdown.BlackOutline2.MouseLeave:Connect(function() dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end) sector:FixSize() table.insert(library.items, dropdown) return dropdown end local dragging_selector = false local dragging_hue = false colorpicker.selector.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging_selector = true colorpicker:RefreshSelector() end end) colorpicker.selector.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging_selector = false colorpicker:RefreshSelector() end end) colorpicker.hue.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging_hue = true colorpicker:RefreshHue() end end) colorpicker.hue.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging_hue = false colorpicker:RefreshHue() end end) uis.InputChanged:Connect(function(input) if dragging_selector and input.UserInputType == Enum.UserInputType.MouseMovement then colorpicker:RefreshSelector() end if dragging_hue and input.UserInputType == Enum.UserInputType.MouseMovement then colorpicker:RefreshHue() end end) local inputBegan = function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then for i,v in pairs(window.OpenedColorPickers) do if v and i ~= colorpicker.MainPicker then i.Visible = false window.OpenedColorPickers[i] = false end end colorpicker.MainPicker.Visible = not colorpicker.MainPicker.Visible window.OpenedColorPickers[colorpicker.MainPicker] = colorpicker.MainPicker.Visible if window.OpenedColorPickers[colorpicker.MainPicker] then colorpicker.BlackOutline2.BackgroundColor3 = window.theme.accentcolor else colorpicker.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end end end colorpicker.Main.InputBegan:Connect(inputBegan) colorpicker.Outline.InputBegan:Connect(inputBegan) colorpicker.BlackOutline2.InputBegan:Connect(inputBegan) sector:FixSize() table.insert(library.items, colorpicker) return colorpicker end function sector:AddKeybind(text,default,newkeycallback,callback,flag) local keybind = { } keybind.text = text or "" keybind.default = default or "None" keybind.callback = callback or function() end keybind.newkeycallback = newkeycallback or function(key) end keybind.flag = flag or text or "" keybind.value = keybind.default keybind.Main = Instance.new("TextLabel", sector.Items) keybind.Main.BackgroundTransparency = 1 keybind.Main.Size = UDim2.fromOffset(156, 10) keybind.Main.ZIndex = 4 keybind.Main.Font = window.theme.font keybind.Main.Text = keybind.text keybind.Main.TextColor3 = window.theme.itemscolor keybind.Main.TextSize = 15 keybind.Main.TextStrokeTransparency = 1 keybind.Main.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) keybind.Main.Font = theme.font keybind.Main.TextColor3 = theme.itemscolor end) keybind.Bind = Instance.new("TextButton", keybind.Main) keybind.Bind.Name = "keybind" keybind.Bind.BackgroundTransparency = 1 keybind.Bind.BorderColor3 = window.theme.outlinecolor keybind.Bind.ZIndex = 5 keybind.Bind.BorderSizePixel = 0 keybind.Bind.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 10, 0) keybind.Bind.Font = window.theme.font keybind.Bind.TextColor3 = Color3.fromRGB(136, 136, 136) keybind.Bind.TextSize = 15 keybind.Bind.TextXAlignment = Enum.TextXAlignment.Right keybind.Bind.MouseButton1Down:Connect(function() keybind.Bind.Text = "[...]" keybind.Bind.TextColor3 = window.theme.accentcolor end) updateevent.Event:Connect(function(theme) keybind.Bind.BorderColor3 = theme.outlinecolor keybind.Bind.Font = theme.font end) if keybind.flag and keybind.flag ~= "" then library.flags[keybind.flag] = keybind.default end local shorter_keycodes = { ["LeftShift"] = "LSHIFT", ["RightShift"] = "RSHIFT", ["LeftControl"] = "LCTRL", ["RightControl"] = "RCTRL", ["LeftAlt"] = "LALT", ["RightAlt"] = "RALT" } function keybind:Set(value) if value == "None" then keybind.value = value keybind.Bind.Text = "[" .. value .. "]" local size = textservice:GetTextSize(keybind.Bind.Text, keybind.Bind.TextSize, keybind.Bind.Font, Vector2.new(2000, 2000)) keybind.Bind.Size = UDim2.fromOffset(size.X, size.Y) keybind.Bind.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 10 - keybind.Bind.AbsoluteSize.X, 0) if keybind.flag and keybind.flag ~= "" then library.flags[keybind.flag] = value end pcall(keybind.newkeycallback, value) end keybind.value = value keybind.Bind.Text = "[" .. (shorter_keycodes[value.Name or value] or (value.Name or value)) .. "]" local size = textservice:GetTextSize(keybind.Bind.Text, keybind.Bind.TextSize, keybind.Bind.Font, Vector2.new(2000, 2000)) keybind.Bind.Size = UDim2.fromOffset(size.X, size.Y) keybind.Bind.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 10 - keybind.Bind.AbsoluteSize.X, 0) if keybind.flag and keybind.flag ~= "" then library.flags[keybind.flag] = value end pcall(keybind.newkeycallback, value) end keybind:Set(keybind.default and keybind.default or "None") function keybind:Get() return keybind.value end uis.InputBegan:Connect(function(input, gameProcessed) if not gameProcessed then if keybind.Bind.Text == "[...]" then keybind.Bind.TextColor3 = Color3.fromRGB(136, 136, 136) if input.UserInputType == Enum.UserInputType.Keyboard then keybind:Set(input.KeyCode) else keybind:Set("None") end else if keybind.value ~= "None" and input.KeyCode == keybind.value then pcall(keybind.callback) end end end end) sector:FixSize() table.insert(library.items, keybind) return keybind end function sector:AddDropdown(text, items, default, multichoice, callback, flag) local dropdown = { } dropdown.text = text or "" dropdown.defaultitems = items or { } dropdown.default = default dropdown.callback = callback or function() end dropdown.multichoice = multichoice or false dropdown.values = { } dropdown.flag = flag or text or "" dropdown.MainBack = Instance.new("Frame", sector.Items) dropdown.MainBack.Name = "backlabel" dropdown.MainBack.ZIndex = 7 dropdown.MainBack.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 34) dropdown.MainBack.BorderSizePixel = 0 dropdown.MainBack.BackgroundTransparency = 1 dropdown.Label = Instance.new("TextLabel", dropdown.MainBack) dropdown.Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255) dropdown.Label.BackgroundTransparency = 1 dropdown.Label.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 10) dropdown.Label.Position = UDim2.fromOffset(0, 0) dropdown.Label.Font = window.theme.font dropdown.Label.Text = dropdown.text dropdown.Label.ZIndex = 4 dropdown.Label.TextColor3 = window.theme.itemscolor dropdown.Label.TextSize = 15 dropdown.Label.TextStrokeTransparency = 1 dropdown.Label.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) dropdown.Label.Font = theme.font dropdown.Label.TextColor3 = theme.itemscolor end) dropdown.Main = Instance.new("TextButton", dropdown.MainBack) dropdown.Main.Name = "dropdown" dropdown.Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255) dropdown.Main.BorderSizePixel = 0 dropdown.Main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 16) dropdown.Main.Position = UDim2.fromOffset(0, 17) dropdown.Main.ZIndex = 5 dropdown.Main.AutoButtonColor = false dropdown.Main.Font = window.theme.font dropdown.Main.Text = "" dropdown.Main.TextColor3 = Color3.fromRGB(255, 255, 255) dropdown.Main.TextSize = 15 dropdown.Main.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) dropdown.Main.Font = theme.font end) dropdown.Gradient = Instance.new("UIGradient", dropdown.Main) dropdown.Gradient.Rotation = 90 dropdown.Gradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(49, 49, 49)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 39, 39))} dropdown.SelectedLabel = Instance.new("TextLabel", dropdown.Main) dropdown.SelectedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) dropdown.SelectedLabel.BackgroundTransparency = 1 dropdown.SelectedLabel.Position = UDim2.fromOffset(5, 2) dropdown.SelectedLabel.Size = UDim2.fromOffset(130, 13) dropdown.SelectedLabel.Font = window.theme.font dropdown.SelectedLabel.Text = dropdown.text dropdown.SelectedLabel.ZIndex = 5 dropdown.SelectedLabel.TextColor3 = Color3.fromRGB(255, 255, 255) dropdown.SelectedLabel.TextSize = 15 dropdown.SelectedLabel.TextStrokeTransparency = 1 dropdown.SelectedLabel.TextXAlignment = Enum.TextXAlignment.Left updateevent.Event:Connect(function(theme) dropdown.SelectedLabel.Font = theme.font end) dropdown.Nav = Instance.new("ImageButton", dropdown.Main) dropdown.Nav.Name = "navigation" dropdown.Nav.BackgroundTransparency = 1 dropdown.Nav.LayoutOrder = 10 dropdown.Nav.Position = UDim2.fromOffset(sector.Main.Size.X.Offset - 26, 5) dropdown.Nav.Rotation = 90 dropdown.Nav.ZIndex = 5 dropdown.Nav.Size = UDim2.fromOffset(8, 8) dropdown.Nav.Image = "rbxassetid://4918373417" dropdown.Nav.ImageColor3 = Color3.fromRGB(210, 210, 210) dropdown.BlackOutline2 = Instance.new("Frame", dropdown.Main) dropdown.BlackOutline2.Name = "blackline" dropdown.BlackOutline2.ZIndex = 4 dropdown.BlackOutline2.Size = dropdown.Main.Size + UDim2.fromOffset(6, 6) dropdown.BlackOutline2.BorderSizePixel = 0 dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutline2.Position = UDim2.fromOffset(-3, -3) updateevent.Event:Connect(function(theme) dropdown.BlackOutline2.BackgroundColor3 = theme.outlinecolor2 end) dropdown.Outline = Instance.new("Frame", dropdown.Main) dropdown.Outline.Name = "blackline" dropdown.Outline.ZIndex = 4 dropdown.Outline.Size = dropdown.Main.Size + UDim2.fromOffset(4, 4) dropdown.Outline.BorderSizePixel = 0 dropdown.Outline.BackgroundColor3 = window.theme.outlinecolor dropdown.Outline.Position = UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) dropdown.Outline.BackgroundColor3 = theme.outlinecolor end) dropdown.BlackOutline = Instance.new("Frame", dropdown.Main) dropdown.BlackOutline.Name = "blackline" dropdown.BlackOutline.ZIndex = 4 dropdown.BlackOutline.Size = dropdown.Main.Size + UDim2.fromOffset(2, 2) dropdown.BlackOutline.BorderSizePixel = 0 dropdown.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutline.Position = UDim2.fromOffset(-1, -1) updateevent.Event:Connect(function(theme) dropdown.BlackOutline.BackgroundColor3 = theme.outlinecolor2 end) dropdown.ItemsFrame = Instance.new("ScrollingFrame", dropdown.Main) dropdown.ItemsFrame.Name = "itemsframe" dropdown.ItemsFrame.BorderSizePixel = 0 dropdown.ItemsFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) dropdown.ItemsFrame.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8) dropdown.ItemsFrame.ScrollBarThickness = 2 dropdown.ItemsFrame.ZIndex = 8 dropdown.ItemsFrame.ScrollingDirection = "Y" dropdown.ItemsFrame.Visible = false dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.Main.AbsoluteSize.X, 0) dropdown.ListLayout = Instance.new("UIListLayout", dropdown.ItemsFrame) dropdown.ListLayout.FillDirection = Enum.FillDirection.Vertical dropdown.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder dropdown.ListPadding = Instance.new("UIPadding", dropdown.ItemsFrame) dropdown.ListPadding.PaddingTop = UDim.new(0, 2) dropdown.ListPadding.PaddingBottom = UDim.new(0, 2) dropdown.ListPadding.PaddingLeft = UDim.new(0, 2) dropdown.ListPadding.PaddingRight = UDim.new(0, 2) dropdown.BlackOutline2Items = Instance.new("Frame", dropdown.Main) dropdown.BlackOutline2Items.Name = "blackline" dropdown.BlackOutline2Items.ZIndex = 7 dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6) dropdown.BlackOutline2Items.BorderSizePixel = 0 dropdown.BlackOutline2Items.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutline2Items.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-3, -3) dropdown.BlackOutline2Items.Visible = false updateevent.Event:Connect(function(theme) dropdown.BlackOutline2Items.BackgroundColor3 = theme.outlinecolor2 end) dropdown.OutlineItems = Instance.new("Frame", dropdown.Main) dropdown.OutlineItems.Name = "blackline" dropdown.OutlineItems.ZIndex = 7 dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4) dropdown.OutlineItems.BorderSizePixel = 0 dropdown.OutlineItems.BackgroundColor3 = window.theme.outlinecolor dropdown.OutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-2, -2) dropdown.OutlineItems.Visible = false updateevent.Event:Connect(function(theme) dropdown.OutlineItems.BackgroundColor3 = theme.outlinecolor end) dropdown.BlackOutlineItems = Instance.new("Frame", dropdown.Main) dropdown.BlackOutlineItems.Name = "blackline" dropdown.BlackOutlineItems.ZIndex = 7 dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(-2, -2) dropdown.BlackOutlineItems.BorderSizePixel = 0 dropdown.BlackOutlineItems.BackgroundColor3 = window.theme.outlinecolor2 dropdown.BlackOutlineItems.Position = dropdown.ItemsFrame.Position + UDim2.fromOffset(-1, -1) dropdown.BlackOutlineItems.Visible = false updateevent.Event:Connect(function(theme) dropdown.BlackOutlineItems.BackgroundColor3 = theme.outlinecolor2 end) dropdown.IgnoreBackButtons = Instance.new("TextButton", dropdown.Main) dropdown.IgnoreBackButtons.BackgroundTransparency = 1 dropdown.IgnoreBackButtons.BorderSizePixel = 0 dropdown.IgnoreBackButtons.Position = UDim2.fromOffset(0, dropdown.Main.Size.Y.Offset + 8) dropdown.IgnoreBackButtons.Size = UDim2.new(0, 0, 0, 0) dropdown.IgnoreBackButtons.ZIndex = 7 dropdown.IgnoreBackButtons.Text = "" dropdown.IgnoreBackButtons.Visible = false dropdown.IgnoreBackButtons.AutoButtonColor = false if dropdown.flag and dropdown.flag ~= "" then library.flags[dropdown.flag] = dropdown.multichoice and { dropdown.default or dropdown.defaultitems[1] or "" } or (dropdown.default or dropdown.defaultitems[1] or "") end function dropdown:isSelected(item) for i, v in pairs(dropdown.values) do if v == item then return true end end return false end function dropdown:GetOptions() return dropdown.values end function dropdown:updateText(text) if #text >= 27 then text = text:sub(1, 25) .. ".." end dropdown.SelectedLabel.Text = text end dropdown.Changed = Instance.new("BindableEvent") function dropdown:Set(value) if type(value) == "table" then dropdown.values = value dropdown:updateText(table.concat(value, ", ")) pcall(dropdown.callback, value) else dropdown:updateText(value) dropdown.values = { value } pcall(dropdown.callback, value) end dropdown.Changed:Fire(value) if dropdown.flag and dropdown.flag ~= "" then library.flags[dropdown.flag] = dropdown.multichoice and dropdown.values or dropdown.values[1] end end function dropdown:Get() return dropdown.multichoice and dropdown.values or dropdown.values[1] end dropdown.items = { } function dropdown:Add(v) local Item = Instance.new("TextButton", dropdown.ItemsFrame) Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40) Item.TextColor3 = Color3.fromRGB(255, 255, 255) Item.BorderSizePixel = 0 Item.Position = UDim2.fromOffset(0, 0) Item.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset - 4, 20) Item.ZIndex = 9 Item.Text = v Item.Name = v Item.AutoButtonColor = false Item.Font = window.theme.font Item.TextSize = 15 Item.TextXAlignment = Enum.TextXAlignment.Left Item.TextStrokeTransparency = 1 dropdown.ItemsFrame.CanvasSize = dropdown.ItemsFrame.CanvasSize + UDim2.fromOffset(0, Item.AbsoluteSize.Y) Item.MouseButton1Down:Connect(function() if dropdown.multichoice then if dropdown:isSelected(v) then for i2, v2 in pairs(dropdown.values) do if v2 == v then table.remove(dropdown.values, i2) end end dropdown:Set(dropdown.values) else table.insert(dropdown.values, v) dropdown:Set(dropdown.values) end return else dropdown.Nav.Rotation = 90 dropdown.ItemsFrame.Visible = false dropdown.ItemsFrame.Active = false dropdown.OutlineItems.Visible = false dropdown.BlackOutlineItems.Visible = false dropdown.BlackOutline2Items.Visible = false dropdown.IgnoreBackButtons.Visible = false dropdown.IgnoreBackButtons.Active = false end dropdown:Set(v) return end) runservice.RenderStepped:Connect(function() if dropdown.multichoice and dropdown:isSelected(v) or dropdown.values[1] == v then Item.BackgroundColor3 = Color3.fromRGB(64, 64, 64) Item.TextColor3 = window.theme.accentcolor Item.Text = " " .. v else Item.BackgroundColor3 = Color3.fromRGB(40, 40, 40) Item.TextColor3 = Color3.fromRGB(255, 255, 255) Item.Text = v end end) table.insert(dropdown.items, v) dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * Item.AbsoluteSize.Y, 20, 156) + 4) dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * Item.AbsoluteSize.Y) + 4) dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4) dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2) dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6) dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size end function dropdown:Remove(value) local item = dropdown.ItemsFrame:FindFirstChild(value) if item then for i,v in pairs(dropdown.items) do if v == value then table.remove(dropdown.items, i) end end dropdown.ItemsFrame.Size = UDim2.fromOffset(dropdown.Main.Size.X.Offset, math.clamp(#dropdown.items * item.AbsoluteSize.Y, 20, 156) + 4) dropdown.ItemsFrame.CanvasSize = UDim2.fromOffset(dropdown.ItemsFrame.AbsoluteSize.X, (#dropdown.items * item.AbsoluteSize.Y) + 4) dropdown.OutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(2, 2) dropdown.BlackOutlineItems.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(4, 4) dropdown.BlackOutline2Items.Size = dropdown.ItemsFrame.Size + UDim2.fromOffset(6, 6) dropdown.IgnoreBackButtons.Size = dropdown.ItemsFrame.Size item:Remove() end end for i,v in pairs(dropdown.defaultitems) do dropdown:Add(v) end if dropdown.default then dropdown:Set(dropdown.default) end local MouseButton1Down = function() if dropdown.Nav.Rotation == 90 then tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = -90 }):Play() if dropdown.items and #dropdown.items ~= 0 then dropdown.ItemsFrame.ScrollingEnabled = true sector.Main.Parent.ScrollingEnabled = false dropdown.ItemsFrame.Visible = true dropdown.ItemsFrame.Active = true dropdown.IgnoreBackButtons.Visible = true dropdown.IgnoreBackButtons.Active = true dropdown.OutlineItems.Visible = true dropdown.BlackOutlineItems.Visible = true dropdown.BlackOutline2Items.Visible = true end else tweenservice:Create(dropdown.Nav, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Rotation = 90 }):Play() dropdown.ItemsFrame.ScrollingEnabled = false sector.Main.Parent.ScrollingEnabled = true dropdown.ItemsFrame.Visible = false dropdown.ItemsFrame.Active = false dropdown.IgnoreBackButtons.Visible = false dropdown.IgnoreBackButtons.Active = false dropdown.OutlineItems.Visible = false dropdown.BlackOutlineItems.Visible = false dropdown.BlackOutline2Items.Visible = false end end dropdown.Main.MouseButton1Down:Connect(MouseButton1Down) dropdown.Nav.MouseButton1Down:Connect(MouseButton1Down) dropdown.BlackOutline2.MouseEnter:Connect(function() dropdown.BlackOutline2.BackgroundColor3 = window.theme.accentcolor end) dropdown.BlackOutline2.MouseLeave:Connect(function() dropdown.BlackOutline2.BackgroundColor3 = window.theme.outlinecolor2 end) sector:FixSize() table.insert(library.items, dropdown) return dropdown end function sector:AddSeperator(text) local seperator = { } seperator.text = text or "" seperator.main = Instance.new("Frame", sector.Items) seperator.main.Name = "Main" seperator.main.ZIndex = 5 seperator.main.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 12, 10) seperator.main.BorderSizePixel = 0 seperator.main.BackgroundTransparency = 1 seperator.line = Instance.new("Frame", seperator.main) seperator.line.Name = "Line" seperator.line.ZIndex = 7 seperator.line.BackgroundColor3 = Color3.fromRGB(70, 70, 70) seperator.line.BorderSizePixel = 0 seperator.line.Size = UDim2.fromOffset(sector.Main.Size.X.Offset - 26, 1) seperator.line.Position = UDim2.fromOffset(7, 5) seperator.outline = Instance.new("Frame", seperator.line) seperator.outline.Name = "Outline" seperator.outline.ZIndex = 6 seperator.outline.BorderSizePixel = 0 seperator.outline.BackgroundColor3 = window.theme.outlinecolor2 seperator.outline.Position = UDim2.fromOffset(-1, -1) seperator.outline.Size = seperator.line.Size - UDim2.fromOffset(-2, -2) updateevent.Event:Connect(function(theme) seperator.outline.BackgroundColor3 = theme.outlinecolor2 end) seperator.label = Instance.new("TextLabel", seperator.main) seperator.label.Name = "Label" seperator.label.BackgroundTransparency = 1 seperator.label.Size = seperator.main.Size seperator.label.Font = window.theme.font seperator.label.ZIndex = 8 seperator.label.Text = seperator.text seperator.label.TextColor3 = Color3.fromRGB(255, 255, 255) seperator.label.TextSize = window.theme.fontsize seperator.label.TextStrokeTransparency = 1 seperator.label.TextXAlignment = Enum.TextXAlignment.Center updateevent.Event:Connect(function(theme) seperator.label.Font = theme.font seperator.label.TextSize = theme.fontsize end) local textSize = textservice:GetTextSize(seperator.text, window.theme.fontsize, window.theme.font, Vector2.new(2000, 2000)) local textStart = seperator.main.AbsoluteSize.X / 2 - (textSize.X / 2) sector.LabelBackFrame = Instance.new("Frame", seperator.main) sector.LabelBackFrame.Name = "LabelBack" sector.LabelBackFrame.ZIndex = 7 sector.LabelBackFrame.Size = UDim2.fromOffset(textSize.X + 12, 10) sector.LabelBackFrame.BorderSizePixel = 0 sector.LabelBackFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) sector.LabelBackFrame.Position = UDim2.new(0, textStart - 6, 0, 0) updateevent.Event:Connect(function(theme) textSize = textservice:GetTextSize(seperator.text, theme.fontsize, theme.font, Vector2.new(2000, 2000)) textStart = seperator.main.AbsoluteSize.X / 2 - (textSize.X / 2) sector.LabelBackFrame.Size = UDim2.fromOffset(textSize.X + 12, 10) sector.LabelBackFrame.Position = UDim2.new(0, textStart - 6, 0, 0) end) sector:FixSize() return seperator end return sector end function tab:CreateConfigSystem(side) local configSystem = { } configSystem.configFolder = window.name .. "/" .. tostring(game.PlaceId) if (not isfolder(configSystem.configFolder)) then makefolder(configSystem.configFolder) end configSystem.sector = tab:CreateSector("Configs", side or "left") local ConfigName = configSystem.sector:AddTextbox("Config Name", "", ConfigName, function() end, "") local default = tostring(listfiles(configSystem.configFolder)[1] or ""):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", "") local Config = configSystem.sector:AddDropdown("Configs", {}, default, false, function() end, "") for i,v in pairs(listfiles(configSystem.configFolder)) do if v:find(".txt") then Config:Add(tostring(v):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", "")) end end configSystem.Create = configSystem.sector:AddButton("Create", function() for i,v in pairs(listfiles(configSystem.configFolder)) do Config:Remove(tostring(v):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", "")) end if ConfigName:Get() and ConfigName:Get() ~= "" then local config = {} for i,v in pairs(library.flags) do if (v ~= nil and v ~= "") then if (typeof(v) == "Color3") then config[i] = { v.R, v.G, v.B } elseif (tostring(v):find("Enum.KeyCode")) then config[i] = v.Name elseif (typeof(v) == "table") then config[i] = { v } else config[i] = v end end end writefile(configSystem.configFolder .. "/" .. ConfigName:Get() .. ".txt", httpservice:JSONEncode(config)) for i,v in pairs(listfiles(configSystem.configFolder)) do if v:find(".txt") then Config:Add(tostring(v):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", "")) end end end end) configSystem.Save = configSystem.sector:AddButton("Save", function() local config = {} if Config:Get() and Config:Get() ~= "" then for i,v in pairs(library.flags) do if (v ~= nil and v ~= "") then if (typeof(v) == "Color3") then config[i] = { v.R, v.G, v.B } elseif (tostring(v):find("Enum.KeyCode")) then config[i] = "Enum.KeyCode." .. v.Name elseif (typeof(v) == "table") then config[i] = { v } else config[i] = v end end end writefile(configSystem.configFolder .. "/" .. Config:Get() .. ".txt", httpservice:JSONEncode(config)) end end) configSystem.Load = configSystem.sector:AddButton("Load", function() local Success = pcall(readfile, configSystem.configFolder .. "/" .. Config:Get() .. ".txt") if (Success) then pcall(function() local ReadConfig = httpservice:JSONDecode(readfile(configSystem.configFolder .. "/" .. Config:Get() .. ".txt")) local NewConfig = {} for i,v in pairs(ReadConfig) do if (typeof(v) == "table") then if (typeof(v[1]) == "number") then NewConfig[i] = Color3.new(v[1], v[2], v[3]) elseif (typeof(v[1]) == "table") then NewConfig[i] = v[1] end elseif (tostring(v):find("Enum.KeyCode.")) then NewConfig[i] = Enum.KeyCode[tostring(v):gsub("Enum.KeyCode.", "")] else NewConfig[i] = v end end library.flags = NewConfig for i,v in pairs(library.flags) do for i2,v2 in pairs(library.items) do if (i ~= nil and i ~= "" and i ~= "Configs_Name" and i ~= "Configs" and v2.flag ~= nil) then if (v2.flag == i) then pcall(function() v2:Set(v) end) end end end end end) end end) configSystem.Delete = configSystem.sector:AddButton("Delete", function() for i,v in pairs(listfiles(configSystem.configFolder)) do Config:Remove(tostring(v):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", "")) end if (not Config:Get() or Config:Get() == "") then return end if (not isfile(configSystem.configFolder .. "/" .. Config:Get() .. ".txt")) then return end delfile(configSystem.configFolder .. "/" .. Config:Get() .. ".txt") for i,v in pairs(listfiles(configSystem.configFolder)) do if v:find(".txt") then Config:Add(tostring(v):gsub(configSystem.configFolder .. "\\", ""):gsub(".txt", "")) end end end) return configSystem end --[[ not finished lol function tab:CreatePlayerlist(name) local list = { } list.name = name or "" list.Main = Instance.new("Frame", tab.TabPage) list.Main.Name = list.name:gsub(" ", "") .. "Sector" list.Main.BorderColor3 = window.theme.outlinecolor list.Main.ZIndex = 2 list.Main.Size = UDim2.fromOffset(window.size.X.Offset - 22, 220) list.Main.BackgroundColor3 = window.theme.sectorcolor list.Main.Position = UDim2.new(0, 11, 0, 12) tab.SectorsLeft[#tab.SectorsLeft + 1] = 220 --tab.SectorsRight[#tab.SectorsLeft + 1].space = 220 list.Line = Instance.new("Frame", list.Main) list.Line.Name = "line" list.Line.ZIndex = 2 list.Line.Size = UDim2.fromOffset(list.Main.Size.X.Offset + 2, 1) list.Line.BorderSizePixel = 0 list.Line.Position = UDim2.fromOffset(-1, -1) list.Line.BackgroundColor3 = window.theme.accentcolor list.BlackOutline = Instance.new("Frame", list.Main) list.BlackOutline.Name = "blackline" list.BlackOutline.ZIndex = 1 list.BlackOutline.Size = list.Main.Size + UDim2.fromOffset(4, 4) list.BlackOutline.BorderSizePixel = 0 list.BlackOutline.BackgroundColor3 = window.theme.outlinecolor2 list.BlackOutline.Position = UDim2.fromOffset(-2, -2) local size = textservice:GetTextSize(list.name, 13, window.theme.font, Vector2.new(2000, 2000)) list.Label = Instance.new("TextLabel", list.Main) list.Label.AnchorPoint = Vector2.new(0,0.5) list.Label.Position = UDim2.fromOffset(12, -1) list.Label.Size = UDim2.fromOffset(math.clamp(textservice:GetTextSize(list.name, 13, window.theme.font, Vector2.new(200,300)).X + 10, 0, list.Main.Size.X.Offset), size.Y) list.Label.BackgroundTransparency = 1 list.Label.BorderSizePixel = 0 list.Label.ZIndex = 4 list.Label.Text = list.name list.Label.TextColor3 = Color3.new(1,1,2552/255) list.Label.TextStrokeTransparency = 1 list.Label.Font = window.theme.font list.Label.TextSize = 13 list.LabelBackFrame = Instance.new("Frame", list.Label) list.LabelBackFrame.Name = "labelframe" list.LabelBackFrame.ZIndex = 3 list.LabelBackFrame.Size = UDim2.fromOffset(list.Label.Size.X.Offset, 10) list.LabelBackFrame.BorderSizePixel = 0 list.LabelBackFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) list.LabelBackFrame.Position = UDim2.fromOffset(0, 6) list.Items = Instance.new("ScrollingFrame", list.Main) list.Items.Name = "items" list.Items.ZIndex = 2 list.Items.ScrollBarThickness = 1 list.Items.BackgroundTransparency = 1 list.Items.Size = list.Main.Size - UDim2.fromOffset(10, 15) list.Items.ScrollingDirection = "Y" list.Items.BorderSizePixel = 0 list.Items.Position = UDim2.fromOffset(5, 10) list.Items.CanvasSize = list.Items.Size list.ListLayout = Instance.new("UIListLayout", list.Items) list.ListLayout.FillDirection = Enum.FillDirection.Vertical list.ListLayout.SortOrder = Enum.SortOrder.LayoutOrder list.ListLayout.Padding = UDim.new(0, 0) list.ListPadding = Instance.new("UIPadding", list.Items) list.ListPadding.PaddingTop = UDim.new(0, 2) list.ListPadding.PaddingLeft = UDim.new(0, 6) list.ListPadding.PaddingRight = UDim.new(0, 6) list.items = { } function list:AddPlayer(Player) local player = { } player.Main = Instance.new("Frame", list.Items) player.Main.Name = Player.Name player.Main.BorderColor3 = window.theme.outlinecolor player.Main.ZIndex = 3 player.Main.Size = UDim2.fromOffset(list.Items.AbsoluteSize.X - 12, 20) player.Main.BackgroundColor3 = window.theme.sectorcolor player.Main.Position = UDim2.new(0, 0, 0, 0) table.insert(list.items, Player) list.Items.CanvasSize = UDim2.fromOffset(list.Items.AbsoluteSize.X, (#list.items * 20)) list.Items.Size = UDim2.fromOffset(list.Items.AbsoluteSize.X, math.clamp(list.Items.CanvasSize.Y.Offset, 0, 205)) return player end function list:RemovePlayer(Player) local p = list.Items:FindFirstChild(Player) if p then for i,v in pairs(list.items) do if v == Player then table.remove(list.items, i) end end p:Remove() list.Items.CanvasSize = UDim2.fromOffset(list.Items.AbsoluteSize.X, (#list.items * 90)) end end for i,v in pairs(game:GetService("Players"):GetPlayers()) do list:AddPlayer(v) end game:GetService("Players").PlayerAdded:Connect(function(v) list:AddPlayer(v) end) return list end ]]-- table.insert(window.Tabs, tab) return tab end return window end local Version = { Value = "0.0.1" } local target_aim = { Aiming = { Target = { Enabled = nil, Key = nil, Prediction = nil, Radius = nil, TargetPart = nil, Alerts = nil, JumpOffset = nil, TargetStats = nil, LookAt = nil } } } local NotifyLibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/Dynissimo/main/Scripts/AkaliNotif.lua"))() local Notify = NotifyLibrary.Notify local Window = library:CreateWindow("Azure Rewrite | Still betaa", Vector2.new(500, 350), Enum.KeyCode.RightShift) local AimingTab = Window:CreateTab("Main") local MiscTab = Window:CreateTab("Misc") local ExtraTab = Window:CreateTab("Extra") local MovementTab = MiscTab:CreateSector("Movement", "left") local MiscSec = MiscTab:CreateSector("miscellaneous","left") local FakeAnimationsSec = MiscTab:CreateSector("Fake Animations", "left") local AASec = MiscTab:CreateSector("Anti Lock", "right") local UtilitiesSec = AimingTab:CreateSector("Utilities", "left") local TargetLockSection = AimingTab:CreateSector("Target", "left") local AimingLockSection = AimingTab:CreateSector("Aim Assist", "right") MiscSec:AddToggle("AntiFling", false, function(parameter) game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = parameter end) FakeAnimationsSec:AddDropdown("Run", {"None","Rthro", "Zombie","Werewolf","Ninja","Toy","Superhero","OldSchool","Cartoony","Stylish","Vampire"}, "None", false, function(dropdown) zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = dropdown end) game:GetService("RunService").Stepped:Connect(function () if zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "None" then elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Rthro" then player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=2510198475" elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Werewolf" then player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=1083216690" elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Zombie" then player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=616163682" elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Ninja" then player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=656118852" elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Toy" then player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=782842708" elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Superhero" then player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=616117076" elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "OldSchool" then player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=5319844329" elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Cartoony" then player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=742638842" elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Stylish" then player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=616140816" elseif zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx == "Vampire" then player.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=1083462077" end end) local SpeedBindxd = MovementTab:AddToggle("Speed", false, function(parameter) speedenablelolol = parameter end) SpeedBindxd:AddKeybind() spawn(function() runservice.Heartbeat:Connect(function() if speedenablelolol == true then player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame + player.Character.Humanoid.MoveDirection * SpeedValue end end) end) MovementTab:AddSlider("Speed Amount", 1,1,5000,10, function(State) SpeedValue = State/1000 end) MovementTab:AddToggle("Auto Jump", false, function(parameter) AutoJumpXDlOLOLOL = parameter end) local targewttstrafebind = MovementTab:AddToggle("Target Strafe", false, function(parameter) targetstrafeenabled = parameter end) targewttstrafebind:AddKeybind() MovementTab:AddSlider("Speed", 1,0,10,100, function(State) speedtargetlocks = State end) MovementTab:AddSlider("Distance", 1,0,20,100, function(State) distancetargetlol = State end) MovementTab:AddSlider("Height", 1,0,20,100, function(State) heighttargetlol = State end) local FlightBindxdxd = MovementTab:AddToggle("Flight", false, function(parameter) if parameter then FlyLoop = game:GetService("RunService").Stepped:Connect(function() spawn(function() pcall(function() local speed = FlySpeed local velocity = Vector3.new(0, 1, 0) local UserInputService = game:GetService("UserInputService") if UserInputService:IsKeyDown(Enum.KeyCode.W) then velocity = velocity + (workspace.CurrentCamera.CoordinateFrame.lookVector * speed) end if UserInputService:IsKeyDown(Enum.KeyCode.A) then velocity = velocity + (workspace.CurrentCamera.CoordinateFrame.rightVector * -speed) end if UserInputService:IsKeyDown(Enum.KeyCode.S) then velocity = velocity + (workspace.CurrentCamera.CoordinateFrame.lookVector * -speed) end if UserInputService:IsKeyDown(Enum.KeyCode.D) then velocity = velocity + (workspace.CurrentCamera.CoordinateFrame.rightVector * speed) end player.Character.HumanoidRootPart.Velocity = velocity player.Character.Humanoid:ChangeState("Freefall") end) end) end) elseif parameter == false and FlyLoop then FlyLoop:Disconnect() player.Character.Humanoid:ChangeState("Landing") end end) FlightBindxdxd:AddKeybind() MovementTab:AddSlider("Speed", 1,1,5000,1, function(State) FlySpeed = State/1000*50 end) spawn(function() runservice.Heartbeat:Connect(function() if targetstrafeenabled and target_aim.Aiming.Target.Enabled and TargetAimEnabled then aroundtarget(speedtargetlocks,distancetargetlol,heighttargetlol,AZURE_TmKALRSX) end end) end) AASec:AddButton("Force Reset",function() for _,parts in pairs(player.Character:GetChildren()) do if parts:IsA("BasePart") then parts:Destroy() end end end) local AABindLOL = AASec:AddToggle("Enable", false, function(parameter) aaenabled = parameter end) AABindLOL:AddKeybind() AASec:AddDropdown("Mode", {"Custom","Prediction Changer", "Prediction Disabler","Up","Down","AirOrthodox","Prediction Multiplier", "Spinbot Desync"}, "Custom", false, function(dropdown) aamodex = dropdown end) AASec:AddSlider("Custom X", -10000,10000,10000,1, function(State) x_val = State end) AASec:AddSlider("Custom Y", -10000,10000,10000,1, function(State) y_val = State end) AASec:AddSlider("Custom Z", -10000,10000,10000,1, function(State) z_val = State end) AASec:AddLabel"" AASec:AddSlider("Prediction Changer", -20,5,20,1, function(State) Custom123 = State end) AASec:AddLabel"" AASec:AddSlider("Desync Angles", -1000,1000,1000,1, function(State) DesyncAngles = State end) local heartbeat = game:GetService("RunService").Heartbeat local renderstepped = game:GetService("RunService").RenderStepped local stepped = game:GetService("RunService").Stepped local v3 = Vector3.new local hrp = game.Players.LocalPlayer.Character.HumanoidRootPart local lp = game.Players.LocalPlayer spawn(function() heartbeat:Connect(function() if player.Character.Humanoid.Health <= 10 then AABindLOL:Set(false) end end) end) spawn(function() local hrp, c, vel, movel = nil, nil, nil, 0.1 c = lp.Character hrp = lp.Character.HumanoidRootPart while true do heartbeat:Wait() while aaenabled and not (c and c.Parent and hrp and hrp.Parent) do heartbeat:Wait() c = lp.Character hrp = lp.Character.HumanoidRootPart end if aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Custom" then vel = hrp.Velocity hrp.Velocity = vel*-0+v3(x_val,y_val,z_val) renderstepped:Wait() hrp.Velocity = vel stepped:Wait() if c and c.Parent and hrp and hrp.Parent then hrp.Velocity = vel + v3(0, movel, 0) movel = movel * -1 end elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Prediction Changer" then vel = hrp.Velocity hrp.Velocity = vel*Custom123+v3(0,0,0) renderstepped:Wait() hrp.Velocity = vel stepped:Wait() if c and c.Parent and hrp and hrp.Parent then hrp.Velocity = vel + v3(0, movel, 0) movel = movel * -1 end elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Prediction Disabler" then vel = hrp.Velocity hrp.Velocity = vel*-0+v3(-0,-0,-0) renderstepped:Wait() hrp.Velocity = vel stepped:Wait() if c and c.Parent and hrp and hrp.Parent then hrp.Velocity = vel + v3(0, movel, 0) movel = movel * -1 end elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Up" then vel = hrp.Velocity hrp.Velocity = vel*-0+v3(-0,10000000000000000000,-0) renderstepped:Wait() hrp.Velocity = vel stepped:Wait() if c and c.Parent and hrp and hrp.Parent then hrp.Velocity = vel + v3(0, movel, 0) movel = movel * -1 end elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Down" then vel = hrp.Velocity hrp.Velocity = vel*-0+v3(-0,-10000000000000000000,-0) renderstepped:Wait() hrp.Velocity = vel stepped:Wait() if c and c.Parent and hrp and hrp.Parent then hrp.Velocity = vel + v3(0, movel, 0) movel = movel * -1 end elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "AirOrthodox" then vel = hrp.Velocity hrp.Velocity = vel*1+v3(77,77,77) renderstepped:Wait() hrp.Velocity = vel stepped:Wait() if c and c.Parent and hrp and hrp.Parent then hrp.Velocity = vel + v3(0, movel, 0) movel = movel * -1 end elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Prediction Multiplier" then vel = hrp.Velocity hrp.Velocity = vel*7+v3(0,0,0) renderstepped:Wait() hrp.Velocity = vel stepped:Wait() if c and c.Parent and hrp and hrp.Parent then hrp.Velocity = vel + v3(0, movel, 0) movel = movel * -1 end elseif aaenabled and c and c.Parent and hrp and hrp.Parent and aamodex == "Spinbot Desync" then vel = hrp.Velocity hrp.Velocity = vel * 0 + v3(0,10000000000000000000,0) renderstepped:Wait() if c and c.Parent and hrp and hrp.Parent then hrp.Velocity = vel end player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(DesyncAngles), 0) end end end) spawn(function() runservice.Heartbeat:Connect(function() if AutoJumpXDlOLOLOL == true and player.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall and player.Character.Humanoid.MoveDirection.Magnitude > 0 then player.Character.Humanoid:ChangeState("Jumping") settotruexdxd:Set(true) end end) end) settotruexdxd = UtilitiesSec:AddToggle("No Jump Cooldown", false, function(parameter) nn_nojumpcooldown = parameter end) spawn(function() runservice.Heartbeat:Connect(function() if nn_nojumpcooldown then player.Character.Humanoid.UseJumpPower = false else player.Character.Humanoid.UseJumpPower = true end end) end) UtilitiesSec:AddToggle("No Slowdown", false, function(parameter) nn_noslowdown = parameter end) spawn(function() runservice.Heartbeat:Connect(function() if nn_noslowdown then local bodyeffectsBounderies = player.Character.BodyEffects.Movement:FindFirstChild('NoJumping') or player.Character.BodyEffects.Movement:FindFirstChild('ReduceWalk') or player.Character.BodyEffects.Movement:FindFirstChild('NoWalkSpeed') if bodyeffectsBounderies then bodyeffectsBounderies:Destroy() end if player.Character.BodyEffects.Reload.Value == true then player.Character.BodyEffects.Reload.Value = false end end end) end) AimingLockSection:AddToggle("Enabled", false, function(parameter) aimbotenab = parameter end) AimingLockSection:AddKeybind("Keybind",nil,function (val) botbindlol = val end) AimingLockSection:AddTextbox("Prediction", nil, function(State) aimbotprediction = State end) AimingLockSection:AddDropdown("Aim-Part", {"Head", "HumanoidRootPart", "UpperTorso", "LowerTorso"}, "HumanoidRootPart", false, function(dropdown) oldvallol = dropdown end) AimingLockSection:AddToggle("Smoothing", false, function(parameter) SmoothingEnabLOLL = parameter end) AimingLockSection:AddTextbox("Smoothing", nil, function(State) SmoothingValIg = State end) AimingLockSection:AddDropdown("Smoothing Style", {"Linear", "Sine", "Back", "Quad","Quart", "Quint", "Bounce", "Elastic","Exponential", "Circular", "Cubic"}, "Linear", false, function(dropdown) smoothingtypexd = dropdown end) AimingLockSection:AddDropdown("Smoothing Direction", {"In", "Out", "InOut"}, "InOut", false, function(dropdown) easingdirectionxdxlol = dropdown end) AimingLockSection:AddToggle("Jump Part", false, function(parameter) jumppartthingy = parameter end) AimingLockSection:AddDropdown("Jump Part Value", {"Head", "HumanoidRootPart", "UpperTorso", "LowerTorso","RightUpperLeg","RightLowerLeg","RightFoot","LeftUpperLeg","LeftLowerLeg","LeftFoot"}, "RightFoot", false, function(dropdown) jumppartvaluesxd = dropdown end) spawn(function() runservice.Stepped:Connect(function() if AZURE_TmKALxRxSX.Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall then aimbotpartxd = jumppartvaluesxd else aimbotpartxd = oldvallol end end) end) spawn(function() uis.InputBegan:Connect(function (input) if input.KeyCode == botbindlol then AimbotBindEnabled = not AimbotBindEnabled if AimbotBindEnabled then AZURE_TmKALxRxSX = targetchosen() end end end) end) TargetLockSection:AddToggle("Enabled", false, function(parameter) target_aim.Aiming.Target.Enabled = parameter end) TargetLockSection:AddKeybind("Keybind",nil,function (val) target_aim.Aiming.Target.Key = val end) TargetLockSection:AddTextbox("Prediction", nil, function(State) target_aim.Aiming.Target.Prediction = State end) TargetLockSection:AddSlider("Jump Offset", -3,0,3,100, function(State) OriginalOffsetXDZX = State end) spawn(function() runservice.Stepped:Connect(function() if AZURE_TmKALRSX.Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall then target_aim.Aiming.Target.JumpOffset = OriginalOffsetXDZX else target_aim.Aiming.Target.JumpOffset = 0 end end) end) TargetLockSection:AddDropdown("Hit-Part", {"Head", "HumanoidRootPart", "UpperTorso", "LowerTorso"}, "HumanoidRootPart", false, function(dropdown) hit_partxd = dropdown end) TargetLockSection:AddToggle("Randomized", false, function(parameter) randomizatxionxd = parameter end) TargetLockSection:AddToggle("Notifications", false, function(parameter) target_aim.Aiming.Target.Alerts = parameter end) TargetLockSection:AddToggle("Look At", false, function(parameter) target_aim.Aiming.Target.LookAt = parameter end) TargetLockSection:AddToggle("View At", false, function(parameter) viewatxd = parameter end) spawn(function() runservice.Stepped:Connect(function() if target_aim.Aiming.Target.Enabled and viewatxd and TargetAimEnabled then workspace.CurrentCamera.CameraSubject = AZURE_TmKALRSX.Character.Humanoid spawn(function() if viewatxd == false then workspace.CurrentCamera.CameraSubject = player.Character.Humanoid end end) else workspace.CurrentCamera.CameraSubject = player.Character.Humanoid end end) end) local dotenabled = TargetLockSection:AddToggle("Dot", false, function(parameter) dotenabledlol = parameter end) dotenabled:AddColorpicker(Color3.fromRGB(168,122,207), function(ztx) colorxdlololxdxd = ztx end) TargetLockSection:AddToggle("Dot on Cursor", false, function(parameter) dotoncursorx = parameter end) local highlighxdxdxd = TargetLockSection:AddToggle("Highlight", false, function(parameter) hightlightendalbed = parameter end) highlighxdxdxd:AddColorpicker(Color3.fromRGB(168,122,207), function(ztx) fillcolorxd = ztx end) highlighxdxdxd:AddColorpicker(Color3.fromRGB(88,65,108), function(ztx) outlinecolorxdxdxd = ztx end) local highlight_instance = Instance.new("Highlight",game.CoreGui) spawn(function() runservice.Stepped:Connect(function() if target_aim.Aiming.Target.Enabled and hightlightendalbed and TargetAimEnabled then highlight_instance.Parent = AZURE_TmKALRSX.Character highlight_instance.FillColor = fillcolorxd highlight_instance.OutlineColor = outlinecolorxdxdxd spawn(function() if hightlightendalbed == false then highlight_instance.Parent = game.CoreGui end end) else highlight_instance.Parent = game.CoreGui end end) end) TargetLockSection:AddToggle("Stats", false, function(parameter) target_aim.Aiming.Target.TargetStats = parameter end) local dotDrawing = Drawing.new("Circle") spawn(function() dotDrawing.Filled = true dotDrawing.Visible = false dotDrawing.Thickness = 2 dotDrawing.Radius = 7 dotDrawing.NumSides = 60 end) local DotParent = Instance.new("Part",game.Workspace) local newBillboard = Instance.new("BillboardGui", DotParent) local newFrame = Instance.new("Frame", newBillboard) local newUiCornor = Instance.new("UICorner", newFrame) task.spawn(function () newBillboard.Name = "azure_billboarddot" newBillboard.Adornee = DotParent newBillboard.Size = UDim2.new(0.6, 0, 0.6, 0) newBillboard.AlwaysOnTop = true newFrame.Size = UDim2.new(1, 0, 1, 0) newFrame.BackgroundTransparency = 0 newUiCornor.CornerRadius = UDim.new(50, 50) DotParent.CanCollide = false DotParent.Anchored = true DotParent.CFrame = CFrame.new(0,2000,0) DotParent.Transparency = 1 end) spawn(function() runservice.Stepped:Connect(function() if target_aim.Aiming.Target.Enabled and dotenabledlol then dotDrawing.Color = colorxdlololxdxd newFrame.BackgroundColor3 = colorxdlololxdxd if TargetAimEnabled and dotenabledlol then DotParent.CFrame = CFrame.new(AZURE_TmKALRSX.Character[target_aim.Aiming.Target.TargetPart].Position+Vector3.new(0,target_aim.Aiming.Target.JumpOffset,0)+(AZURE_TmKALRSX.Character[target_aim.Aiming.Target.TargetPart].Velocity*target_aim.Aiming.Target.Prediction)) dotDrawing.Visible = false else DotParent.CFrame = CFrame.new(0,9999,0) if dotoncursorx then dotDrawing.Visible = true dotDrawing.Position = Vector2.new(mouse.X,mouse.Y + game:GetService("GuiService"):GetGuiInset().Y) spawn(function() if dotoncursorx == false then dotDrawing.Visible = false end end) end spawn(function() if dotoncursorx == false then dotDrawing.Visible = false end end) end else DotParent.CFrame = CFrame.new(0,9999,0) dotDrawing.Visible = false end end) end) spawn(function() runservice.Stepped:Connect(function() if randomizatxionxd then wait(0.6) player_gayparts = {"Head","UpperTorso","LowerTorso","HumanoidRootPart","RightUpperLeg","RightLowerLeg","LeftUpperLeg","LeftLowerLeg","RightUpperArm","RightLowerArm","LeftLowerArm","LeftUpperArm"} target_aim.Aiming.Target.TargetPart = player_gayparts[math.random(1,#player_gayparts)] else target_aim.Aiming.Target.TargetPart = hit_partxd end end) end) spawn(function() runservice.RenderStepped:Connect(function() if AimbotBindEnabled and aimbotenab and SmoothingEnabLOLL == false then local main_cframe = CFrame.new(workspace.CurrentCamera.CFrame.p, AZURE_TmKALxRxSX.Character[aimbotpartxd].Position + AZURE_TmKALxRxSX.Character[aimbotpartxd].Velocity/aimbotprediction) workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(main_cframe, 1, Enum.EasingStyle[smoothingtypexd], Enum.EasingDirection[easingdirectionxdxlol]) elseif AimbotBindEnabled and aimbotenab and SmoothingEnabLOLL == true then local main_cframe = CFrame.new(workspace.CurrentCamera.CFrame.p, AZURE_TmKALxRxSX.Character[aimbotpartxd].Position + AZURE_TmKALxRxSX.Character[aimbotpartxd].Velocity/aimbotprediction) workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(main_cframe, SmoothingValIg, Enum.EasingStyle[smoothingtypexd], Enum.EasingDirection[easingdirectionxdxlol]) end end) end) spawn(function() runservice.RenderStepped:Connect(function() if TargetAimEnabled and target_aim.Aiming.Target.Enabled and AZURE_TmKALRSX.Character:FindFirstChild("UpperTorso") then if target_aim.Aiming.Target.LookAt then player.Character.HumanoidRootPart.CFrame = CFrame.new(player.Character.HumanoidRootPart.CFrame.Position, Vector3.new(AZURE_TmKALRSX.Character.HumanoidRootPart.CFrame.X, player.Character.HumanoidRootPart.CFrame.Position.Y, AZURE_TmKALRSX.Character.HumanoidRootPart.CFrame.Z)) player.Character.Humanoid.AutoRotate = false spawn(function () if target_aim.Aiming.Target.LookAt == false then player.Character.Humanoid.AutoRotate = true end end) end else spawn(function() player.Character.Humanoid.AutoRotate = true end) end end) end) spawn(function() uis.InputBegan:Connect(function (input) if input.KeyCode == target_aim.Aiming.Target.Key and target_aim.Aiming.Target.Enabled then TargetAimEnabled = not TargetAimEnabled if TargetAimEnabled then AZURE_TmKALRSX = targetchosen() if target_aim.Aiming.Target.Alerts then Notify({ Title = "Azure [v."..Version.Value.."]", Description = "Targeting: " ..tostring(AZURE_TmKALRSX.Character.Humanoid.DisplayName), Duration = 3 }) end elseif not TargetAimEnabled then if target_aim.Aiming.Target.Alerts then Notify({ Title = "Azure ["..Version.Value.."]", Description = "Untargeting: " ..tostring(AZURE_TmKALRSX.Character.Humanoid.DisplayName), Duration = 3 }) end end end end) end) local mt = getrawmetatable(game) local old = mt.__namecall setreadonly(mt, false) mt.__namecall = newcclosure(function(...) local args = {...} if target_aim.Aiming.Target.Enabled and TargetAimEnabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then args[3] = AZURE_TmKALRSX.Character[target_aim.Aiming.Target.TargetPart].Position+Vector3.new(0.01,target_aim.Aiming.Target.JumpOffset,0.01)+(AZURE_TmKALRSX.Character[target_aim.Aiming.Target.TargetPart].Velocity*target_aim.Aiming.Target.Prediction) return old(unpack(args)) end return old(...) end) local Azure_TargetStats = Instance.new("ScreenGui") local Background = Instance.new("Frame") local Picture = Instance.new("ImageLabel") local Top = Instance.new("Frame") local UIGradient = Instance.new("UIGradient") local UIGradient_2 = Instance.new("UIGradient") local HealthBarBackground = Instance.new("Frame") local UIGradient_3 = Instance.new("UIGradient") local HealthBar = Instance.new("Frame") local UIGradient_4 = Instance.new("UIGradient") local NameOfTarget = Instance.new("TextLabel") spawn(function() Azure_TargetStats.Name = "Azure_TargetStats" Azure_TargetStats.Parent = game.CoreGui Azure_TargetStats.ZIndexBehavior = Enum.ZIndexBehavior.Sibling Background.Name = "Background" Background.Parent = Azure_TargetStats Background.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Background.BorderSizePixel = 0 Background.Position = UDim2.new(0.388957828, 0, 0.700122297, 0) Background.Size = UDim2.new(0, 358, 0, 71) Background.Visible = false Picture.Name = "Picture" Picture.Parent = Background Picture.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Picture.BorderSizePixel = 0 Picture.Position = UDim2.new(0.0279329624, 0, 0.0704225376, 0) Picture.Size = UDim2.new(0, 59, 0, 59) Picture.Transparency = 1 Picture.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png" Top.Name = "Top" Top.Parent = Background Top.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Top.BorderSizePixel = 0 Top.Position = UDim2.new(0, 0, -0.101449274, 0) Top.Size = UDim2.new(0, 358, 0, 7) UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(184, 159, 227)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 88, 156))} UIGradient.Rotation = 90 UIGradient.Parent = Top UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(52, 52, 52)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 0, 0))} UIGradient_2.Rotation = 90 UIGradient_2.Parent = Background HealthBarBackground.Name = "HealthBarBackground" HealthBarBackground.Parent = Background HealthBarBackground.BackgroundColor3 = Color3.fromRGB(255, 255, 255) HealthBarBackground.BorderSizePixel = 0 HealthBarBackground.Position = UDim2.new(0.215083793, 0, 0.348234326, 0) HealthBarBackground.Size = UDim2.new(0, 270, 0, 19) HealthBarBackground.Transparency = 1 UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(58, 58, 58)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(30, 30, 30))} UIGradient_3.Rotation = 90 UIGradient_3.Parent = HealthBarBackground HealthBar.Name = "HealthBar" HealthBar.Parent = HealthBarBackground HealthBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255) HealthBar.BorderSizePixel = 0 HealthBar.Position = UDim2.new(-0.00336122862, 0, 0.164894029, 0) HealthBar.Size = UDim2.new(0, 130, 0, 19) UIGradient_4.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(184, 159, 227)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 88, 156))} UIGradient_4.Rotation = 90 UIGradient_4.Parent = HealthBar NameOfTarget.Name = "NameOfTarget" NameOfTarget.Parent = Background NameOfTarget.BackgroundColor3 = Color3.fromRGB(255, 255, 255) NameOfTarget.BackgroundTransparency = 1.000 NameOfTarget.Position = UDim2.new(0.220670387, 0, 0.0704225376, 0) NameOfTarget.Size = UDim2.new(0, 268, 0, 19) NameOfTarget.Font = Enum.Font.Code NameOfTarget.TextColor3 = Color3.fromRGB(255, 255, 255) NameOfTarget.TextScaled = true NameOfTarget.TextSize = 14.000 NameOfTarget.TextStrokeTransparency = 0.000 NameOfTarget.TextWrapped = true end) local IsAlive = function(GetPlayer) return GetPlayer and GetPlayer.Character and GetPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil and GetPlayer.Character:FindFirstChild("Humanoid") ~= nil and GetPlayer.Character:FindFirstChild("Head") ~= nil and true or false end spawn(function() while wait() do if target_aim.Aiming.Target.TargetStats and target_aim.Aiming.Target.Enabled and TargetAimEnabled then if AZURE_TmKALRSX and IsAlive(AZURE_TmKALRSX) then Background.Visible = true NameOfTarget.Text = tostring(AZURE_TmKALRSX.Character.Humanoid.DisplayName).." ["..tostring(AZURE_TmKALRSX.Name).."]" Picture.Image = "rbxthumb://type=AvatarHeadShot&id=" ..AZURE_TmKALRSX.UserId.. "&w=420&h=420" HealthBar:TweenSize(UDim2.new(AZURE_TmKALRSX.Character.Humanoid.Health / AZURE_TmKALRSX.Character.Humanoid.MaxHealth, 0, 1, 0), "In", "Linear", 0.25) spawn(function() if target_aim.Aiming.Target.TargetStats == false then Background.Visible = false end end) end else Background.Visible = false end end end) function targetchosen() local distance = math.huge local zclosest local LocalPlayer = game.Players.LocalPlayer for i, v in pairs(game.Players:GetPlayers()) do if v ~= LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then local pos = workspace.CurrentCamera:WorldToViewportPoint(v.Character.PrimaryPart.Position) local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(LocalPlayer:GetMouse().X, LocalPlayer:GetMouse().Y)).magnitude if magnitude < distance then zclosest = v distance = magnitude end end end return zclosest end regera = 0 aroundtarget = function(speed, distance,height,target) regera = regera + speed player.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(regera), 0) * CFrame.new(0, height, distance) end