-- by Inshallah local Library = {} local Version = 2 function Library:CreateWindow() --[[ -1 = Not loaded 0 = Loaded ]] local UI_STATE = -1 local ScreenGui = Instance.new("ScreenGui") --syn.protect_gui(ScreenGui) local Elixir = Instance.new("Frame") local UIPadding = Instance.new("UIPadding") local TabFrame = Instance.new("Frame") local TabFrame_UIListLayout = Instance.new("UIListLayout") local PageFrame = Instance.new("Frame") local Roundify_3 = Instance.new("ImageLabel") local DragFrame = Instance.new("Frame") ScreenGui.Parent = game:GetService("CoreGui") ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Global Elixir.Name = "Elixir" Elixir.Parent = ScreenGui Elixir.AnchorPoint = Vector2.new(0.5, 0.5) Elixir.BackgroundColor3 = Color3.fromRGB(41, 50, 65) Elixir.BorderColor3 = Color3.fromRGB(27, 42, 53) Elixir.Position = UDim2.new(0.5, 0, 0.5, 0) Elixir.Size = UDim2.new(0, 465, 0, 450) Elixir.Active = true --[[ local height = 450 for i = 0, height, 5 do Elixir.Size = UDim2.new(0, 465, 0, i) task.wait() end]] Roundify_3.Name = "Roundify" Roundify_3.Parent = Elixir Roundify_3.AnchorPoint = Vector2.new(0.5, 0.5) Roundify_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Roundify_3.BackgroundTransparency = 1.000 Roundify_3.Position = UDim2.new(0.5, 0, 0.5, 0) Roundify_3.Size = UDim2.new(1, 24, 1, 24) Roundify_3.ZIndex = 0 Roundify_3.Image = "rbxassetid://3570695787" Roundify_3.ImageColor3 = Color3.fromRGB(41, 50, 65) Roundify_3.ScaleType = Enum.ScaleType.Slice Roundify_3.SliceCenter = Rect.new(100, 100, 100, 100) Roundify_3.SliceScale = 0.120 TabFrame.Name = "TabFrame" TabFrame.Parent = Elixir TabFrame.BackgroundColor3 = Color3.fromRGB(41, 50, 65) TabFrame.Position = UDim2.new(0, 0, 0.088888891, 0) TabFrame.Size = UDim2.new(0, 465, 0, 29) TabFrame_UIListLayout.Name = "TabFrame_UIListLayout" TabFrame_UIListLayout.Parent = TabFrame TabFrame_UIListLayout.FillDirection = Enum.FillDirection.Horizontal TabFrame_UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center TabFrame_UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder TabFrame_UIListLayout.Padding = UDim.new(0, 20) PageFrame.Name = "PageFrame" PageFrame.Parent = Elixir PageFrame.BackgroundColor3 = Color3.fromRGB(41, 50, 65) PageFrame.Position = UDim2.new(0, 0, 0.153333336, 0) PageFrame.Size = UDim2.new(0, 465, 0, 356) DragFrame.Name = "DragFrame" DragFrame.Parent = Elixir DragFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) DragFrame.BackgroundTransparency = 1 DragFrame.Position = UDim2.new(0, 0, -0.0266666673, 0) DragFrame.Size = UDim2.new(0, 465, 0, 52) DragFrame.ZIndex = 3 local ElixirUI = {} function ElixirUI:CreateTitle(title : string) local TitleFrame = Instance.new("Frame") local TitleLabel = Instance.new("TextLabel") title = title or "Title" TitleFrame.Name = "TitleFrame" TitleFrame.Parent = Elixir TitleFrame.BackgroundColor3 = Color3.fromRGB(41, 50, 65) TitleFrame.Size = UDim2.new(0, 465, 0, 40) TitleLabel.Name = "TitleLabel" TitleLabel.Parent = TitleFrame TitleLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TitleLabel.BackgroundTransparency = 1.000 TitleLabel.BorderColor3 = Color3.fromRGB(27, 42, 53) TitleLabel.BorderSizePixel = 0 TitleLabel.Position = UDim2.new(0.226666719, 0, 0, 0) TitleLabel.Size = UDim2.new(0, 245, 0, 40) TitleLabel.Font = Enum.Font.Gotham TitleLabel.Text = title TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) TitleLabel.TextSize = 28.000 TitleLabel.TextWrapped = true end function ElixirUI:CreateFooter(text : string) local FooterFrame = Instance.new("Frame") local FooterLabel = Instance.new("TextLabel") FooterFrame.Name = "FooterFrame" FooterFrame.Parent = Elixir FooterFrame.BackgroundColor3 = Color3.fromRGB(41, 50, 65) FooterFrame.Position = UDim2.new(0, 0, 0.944444418, 0) FooterFrame.Size = UDim2.new(0, 465, 0, 25) FooterLabel.Name = "FooterLabel" FooterLabel.Parent = FooterFrame FooterLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) FooterLabel.BackgroundTransparency = 1.000 FooterLabel.Position = UDim2.new(0.00442450633, 0, 0, 0) FooterLabel.Size = UDim2.new(0, 101, 0, 25) FooterLabel.Font = Enum.Font.GothamMedium FooterLabel.Text = text FooterLabel.TextColor3 = Color3.fromRGB(255, 255, 255) FooterLabel.TextSize = 14.000 FooterLabel.TextWrapped = false FooterLabel.TextXAlignment = Enum.TextXAlignment.Left UIPadding.Parent = FooterLabel UIPadding.PaddingLeft = UDim.new(0, 10) UIPadding.PaddingRight = UDim.new(0, 10) end -- Handle Everything local Tab_List = {} local CheckBox_List = {} function ElixirUI:Deploy() task.wait() -- Handle Checkboxes for _, k in pairs(CheckBox_List) do -- { Index, {Instance, Callback} } for index, g in pairs(k) do if typeof(g) == "function" then if k[index - 1]:WaitForChild("Value", 3).Value then if k[index - 1]:FindFirstChild("Value") == nil then warn("Something went wrong with", tostring(k[index - 1])) end g() end end end end -- Colorful Tabs for _, v in pairs(Tab_List) do if _ == 1 or _ == 2 then continue end -- Ignore First Tab and First Page if string.find(v.Name, "Button") then v.TextTransparency = 0.6 elseif string.find(v.Name, "Page") then v.Visible = false end end local UserInputService = game:GetService("UserInputService") local dragFrame = DragFrame local parentFrame = dragFrame.Parent local dragToggle, dragSpeed, dragStart, startPos = nil, 0.05, nil, nil local function updateInput(input) local delta = input.Position - dragStart local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) --local ScreenWidth, ScreenHeight = ScreenGui.AbsoluteSize.X, ScreenGui.AbsoluteSize.Y game:GetService('TweenService'):Create(parentFrame, TweenInfo.new(dragSpeed), {Position = position}):Play() end dragFrame.InputBegan:Connect(function(input) if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then dragToggle = true dragStart = input.Position startPos = parentFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragToggle = false end end) end end) UserInputService.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then if dragToggle then updateInput(input) end end end) local Instance = ElixirUI:GetInstance() local isToggled = ElixirUI:IsGuiOpen() local function onKeyPress(actionName, userInputState, inputObject) if (userInputState == Enum.UserInputState.Begin) then if not isToggled then isToggled = true Instance.Enabled = true else isToggled = false Instance.Enabled = false end end end game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.RightAlt) end function ElixirUI:FindPage(name : string) for _, v in pairs(Tab_List) do if v.Name == name.Name then return v end end end -- Indicator function ElixirUI:SetIndicator(indicatorInstance : TextLabel, text : string) indicatorInstance.Text = text end function ElixirUI:CreateIndicator() local Frame = Instance.new("Frame") local IndicatorText = Instance.new("TextLabel") local UIPadding_2 = Instance.new("UIPadding") Frame.Name = math.random(0, 9)..math.random(0, 9)..math.random(0, 9)..math.random(0, 9)..math.random(0, 9)..math.random(0, 9)..math.random(0, 9)..math.random(0, 9) Frame.Parent = ScreenGui Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame.BackgroundTransparency = 1.000 Frame.Position = UDim2.new(0, 0, 0.74, 0) Frame.Size = UDim2.new(0, 200, 0, 25) IndicatorText.Name = "Indicator" IndicatorText.Parent = Frame IndicatorText.BackgroundColor3 = Color3.fromRGB(255, 255, 255) IndicatorText.BackgroundTransparency = 1.000 IndicatorText.BorderSizePixel = 0 IndicatorText.Size = UDim2.new(0, 80, 0, 25) IndicatorText.Font = Enum.Font.Code IndicatorText.Text = "Elixir Indicator\n" IndicatorText.TextColor3 = Color3.fromRGB(195, 130, 240) IndicatorText.TextSize = 16.000 IndicatorText.TextXAlignment = Enum.TextXAlignment.Left local UIStroke = Instance.new("UIStroke", IndicatorText) UIStroke.Color = Color3.fromRGB(0, 0, 0) UIStroke.Thickness = 1 UIPadding_2.Parent = Frame UIPadding_2.PaddingLeft = UDim.new(0, 20) return Frame end function ElixirUI:CreateTab(tabName : string) local TabButton = Instance.new("TextButton") local NewPage = Instance.new("Frame") local NewPage_UIListLayout = Instance.new("UIListLayout") local NewPage_UIPadding = Instance.new("UIPadding") tabName = tabName or "New Tab" TabButton.Name = tabName:gsub(" ", "_") .. "_Button" TabButton.Parent = TabFrame TabButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TabButton.BackgroundTransparency = 1.000 TabButton.Size = UDim2.new(0, 75, 0, 29) TabButton.Font = Enum.Font.GothamMedium TabButton.Text = tabName TabButton.TextColor3 = Color3.fromRGB(255, 255, 255) TabButton.TextSize = 14.000 TabButton.TextWrapped = true TabButton.MouseButton1Click:Connect(function() for _, v in pairs(Tab_List) do if string.find(v.Name, "Button") then v.TextColor3 = Color3.fromRGB(255, 255, 255) v.TextTransparency = 0.6 elseif string.find(v.Name, "Page") then v.Visible = false end end TabButton.TextColor3 = Color3.fromRGB(175, 110, 240) TabButton.TextTransparency = 0 NewPage.Visible = true end) NewPage.Name = tabName:gsub(" ", "_") .. "_Page" NewPage.Parent = PageFrame NewPage.BackgroundColor3 = Color3.fromRGB(41, 50, 65) NewPage.Size = UDim2.new(0, 465, 0, 356) NewPage.Visible = true NewPage_UIListLayout.Name = "UIListLayout" NewPage_UIListLayout.Parent = NewPage NewPage_UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder NewPage_UIListLayout.Padding = UDim.new(0, 10) NewPage_UIPadding.Name = "UIPadding" NewPage_UIPadding.Parent = NewPage NewPage_UIPadding.PaddingLeft = UDim.new(0, 15) NewPage_UIPadding.PaddingTop = UDim.new(0, 15) table.insert(Tab_List, NewPage) table.insert(Tab_List, TabButton) return NewPage end function ElixirUI:CreateButton(page, label : string, callback) page = ElixirUI:FindPage(page) callback = callback or function() end -- Instances local Button = Instance.new("ImageButton") local TextLabel = Instance.new("TextLabel") -- Button Button.Name = "Button" Button.Parent = page Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Button.BackgroundTransparency = 1.000 Button.Position = UDim2.new(0, 0, 0.0586510263, 0) Button.Size = UDim2.new(0, 120, 0, 25) Button.Image = "rbxassetid://2790382281" Button.ScaleType = Enum.ScaleType.Slice Button.SliceCenter = Rect.new(4, 4, 252, 252) -- Button Label TextLabel.Parent = Button TextLabel.AnchorPoint = Vector2.new(0.5, 0.5) TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel.BackgroundTransparency = 1.000 TextLabel.BorderSizePixel = 0 TextLabel.Position = UDim2.new(0.5, 0, 0.5, 0) TextLabel.Size = UDim2.new(1, -5, 1, -5) TextLabel.Font = Enum.Font.GothamMedium TextLabel.Text = label TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0) TextLabel.TextSize = 14.000 Button.MouseButton1Click:Connect(function() callback() end) end function ElixirUI:CreateTextBox(page, title : string, defaultText : string) page = ElixirUI:FindPage(page) local TextBox = Instance.new("Frame") local TextBoxLabel = Instance.new("TextLabel") local TextBox_2 = Instance.new("TextBox") local Roundify = Instance.new("ImageLabel") local UIListLayout = Instance.new("UIListLayout") title = title or "TextBox Title" defaultText = defaultText or "" TextBox.Name = "TextBox" TextBox.Parent = page TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextBox.BackgroundTransparency = 1.000 TextBox.BorderColor3 = Color3.fromRGB(27, 42, 53) TextBox.Position = UDim2.new(0, 0, 0.1085044, 0) TextBox.Size = UDim2.new(0, 214, 0, 50) TextBoxLabel.Name = "TextBoxLabel" TextBoxLabel.Parent = TextBox TextBoxLabel.AnchorPoint = Vector2.new(0.5, 0.5) TextBoxLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextBoxLabel.BackgroundTransparency = 1.000 TextBoxLabel.BorderSizePixel = 0 TextBoxLabel.Position = UDim2.new(0.233645007, 0, 0.103339858, 0) TextBoxLabel.Size = UDim2.new(0.490654379, -5, 0.269970834, -5) TextBoxLabel.ZIndex = 1 TextBoxLabel.Font = Enum.Font.GothamMedium TextBoxLabel.Text = title TextBoxLabel.TextColor3 = Color3.fromRGB(255, 255, 255) TextBoxLabel.TextSize = 14.000 TextBoxLabel.TextXAlignment = Enum.TextXAlignment.Left TextBoxLabel.TextYAlignment = Enum.TextYAlignment.Top TextBox_2.Name = "_TextBox" -- Sort Obj by Alphabet TextBox_2.Parent = TextBox TextBox_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextBox_2.BackgroundTransparency = 1.000 TextBox_2.BorderSizePixel = 0 TextBox_2.Position = UDim2.new(0, 0, 0.269970864, 0) TextBox_2.Size = UDim2.new(0, 169, 0, 20) TextBox_2.ZIndex = 2 TextBox_2.ClearTextOnFocus = false TextBox_2.Font = Enum.Font.GothamMedium TextBox_2.Text = defaultText TextBox_2.TextColor3 = Color3.fromRGB(255, 255, 255) TextBox_2.TextSize = 13.000 TextBox_2.TextWrapped = true TextBox_2.TextXAlignment = Enum.TextXAlignment.Left Roundify.Name = "Roundify" Roundify.Parent = TextBox_2 Roundify.AnchorPoint = Vector2.new(0.5, 0.5) Roundify.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Roundify.BackgroundTransparency = 1.000 Roundify.Position = UDim2.new(0.5, 0, 0.5, 0) Roundify.Size = UDim2.new(1, 8, 1, 8) Roundify.Image = "rbxassetid://3570695787" Roundify.ImageTransparency = 0.9 Roundify.ScaleType = Enum.ScaleType.Slice Roundify.SliceCenter = Rect.new(100, 100, 100, 100) Roundify.SliceScale = 0.040 UIListLayout.Parent = TextBox UIListLayout.SortOrder = Enum.SortOrder.Name UIListLayout.Padding = UDim.new(0, 12) return TextBox_2 end function ElixirUI:CreateTextLabel(page, text : string) page = ElixirUI:FindPage(page) local TextLabel_3 = Instance.new("TextLabel") TextLabel_3.Parent = page TextLabel_3.AnchorPoint = Vector2.new(0.5, 0.5) TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel_3.BackgroundTransparency = 1.000 TextLabel_3.BorderSizePixel = 0 TextLabel_3.Position = UDim2.new(0.111111112, 0, 0.390117377, 0) TextLabel_3.Size = UDim2.new(0.233333364, -5, 0.0676247999, -5) TextLabel_3.Font = Enum.Font.GothamMedium TextLabel_3.Text = text or "Example Message" TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255) TextLabel_3.TextSize = 14.000 TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left end local CheckBoxOn_Color, CheckBoxOff_Color = Color3.fromRGB(150, 75, 220), Color3.fromRGB(31, 31, 31) function ElixirUI:GetBoolean(checkBox : ImageButton) return checkBox:WaitForChild("Value", 5).Value end function ElixirUI:ToggleCheckBox(checkBox : ImageButton) if ElixirUI:GetBoolean(checkBox) then checkBox.ImageColor3 = CheckBoxOff_Color else checkBox.ImageColor3 = CheckBoxOn_Color end checkBox:FindFirstChild("Value").Value = not checkBox:FindFirstChild("Value").Value end --[[ - page -> Page Instance - name -> Text - isEnabled -> Current Value - defaultValue -> Default Value - onCallback -> Call function when it's enabled (nullable). - offCallback -> Call function when it's disabled (nullable). ]] function ElixirUI:CreateCheckBox(page, name : string, isEnabled : boolean, defaultValue : boolean, onCallback, offCallback) onCallback = onCallback or function() end offCallback = offCallback or function() end page = ElixirUI:FindPage(page) local CheckBox = Instance.new("ImageButton") local TextLabel_2 = Instance.new("TextLabel") local UICorner = Instance.new("UICorner") CheckBox.Name = name CheckBox.Parent = page CheckBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255) CheckBox.BackgroundTransparency = 1 CheckBox.BorderSizePixel = 0 CheckBox.Position = UDim2.new(0, 0, 0.290322572, 0) CheckBox.Size = UDim2.new(0, 13, 0, 13) CheckBox.Image = "rbxassetid://2790382281" CheckBox.ImageTransparency = 0 if isEnabled then CheckBox.ImageColor3 = CheckBoxOn_Color else CheckBox.ImageColor3 = CheckBoxOff_Color end TextLabel_2.Parent = CheckBox TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel_2.BackgroundTransparency = 1.000 TextLabel_2.Position = UDim2.new(1.61538458, 0, -0.307692319, 0) TextLabel_2.Size = UDim2.new(0, 85, 0, 21) TextLabel_2.Font = Enum.Font.GothamMedium TextLabel_2.Text = name TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255) TextLabel_2.TextSize = 14.000 TextLabel_2.TextXAlignment = Enum.TextXAlignment.Left UICorner.CornerRadius = UDim.new(0, 6) UICorner.Parent = CheckBox local BoolValue = Instance.new("BoolValue") BoolValue.Parent = CheckBox BoolValue.Value = isEnabled -- test new callback BoolValue:GetPropertyChangedSignal("Value"):Connect(function() if (BoolValue.Value) then onCallback() else offCallback() end end) -- Toggle CheckBox.MouseButton1Click:Connect(function() ElixirUI:ToggleCheckBox(CheckBox) end) table.insert(CheckBox_List, {CheckBox, onCallback}) return CheckBox end function ElixirUI:SetTextColor() end function ElixirUI:SetBackgroundColor() end function ElixirUI:GetVersion() return Version end -- Get Instance / Get ScreenGUI function ElixirUI:GetInstance() return ScreenGui end function ElixirUI:IsGuiOpen() return ScreenGui.Enabled end function ElixirUI:IsLoaded() if ElixirUI:GetInstance() ~= nil and UI_STATE == 0 then return true end return false end function ElixirUI:DestroyInstance(instance : Instance) instance:Destroy() end function ElixirUI:Destroy() ScreenGui:Destroy() end UI_STATE = 0 -- Finish State return ElixirUI end return Library;