Advertisement
xX_Nobody_Xx

Lux Ui Library

Aug 4th, 2021 (edited)
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 25.58 KB | None | 0 0
  1. local Lib = {}
  2.  
  3. function Lib:CreateWindow(title, gameName)
  4.     local Container = Instance.new("ScreenGui")
  5.     local GuiBacking = Instance.new("ImageLabel")
  6.     local TextHolder = Instance.new("ImageLabel")
  7.     local Title = Instance.new("TextLabel")
  8.     local GameName = Instance.new("TextLabel")
  9.     local TabContainer = Instance.new("ImageLabel")
  10.     local TabListLayout = Instance.new("UIListLayout")
  11.     local Items = Instance.new("Frame")
  12.     local TextHolderBacking = Instance.new("ImageLabel")
  13.     local Tabs = Instance.new("ScrollingFrame")
  14.  
  15.     local open = true
  16.  
  17.     Container.Parent = game:GetService("CoreGui")
  18.     Container.Name = title
  19.  
  20.     GuiBacking.Name = "Container"
  21.     GuiBacking.Parent = Container
  22.     GuiBacking.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  23.     GuiBacking.BackgroundTransparency = 1.000
  24.     GuiBacking.BorderColor3 = Color3.fromRGB(27, 42, 53)
  25.     GuiBacking.Position = UDim2.new(0.309451252, 0, 0.279648572, 0)
  26.     GuiBacking.Size = UDim2.new(0, 500, 0, 300)
  27.     GuiBacking.Image = "rbxassetid://3570695787"
  28.     GuiBacking.ImageColor3 = Color3.fromRGB(45,45,45)
  29.     GuiBacking.ScaleType = Enum.ScaleType.Slice
  30.     GuiBacking.SliceCenter = Rect.new(100, 100, 100, 100)
  31.     GuiBacking.SliceScale = 0.040
  32.     GuiBacking.ClipsDescendants = true
  33.  
  34.     local UIS = game:GetService("UserInputService")
  35.     dragToggle = nil
  36.     local dragSpeed = 0
  37.     dragInput = nil
  38.     dragStart = nil
  39.     local dragPos = nil
  40.     function updateInput(input)
  41.         local Delta = input.Position - dragStart
  42.         local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  43.         game:GetService("TweenService"):Create(GuiBacking, TweenInfo.new(0.15), {Position = Position}):Play()
  44.     end
  45.     GuiBacking.InputBegan:Connect(function(input)
  46.         if GuiBacking.Visible == true then
  47.             if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  48.                 dragToggle = true
  49.                 dragStart = input.Position
  50.                 startPos = GuiBacking.Position
  51.                 input.Changed:Connect(function()
  52.                     if input.UserInputState == Enum.UserInputState.End then
  53.                         dragToggle = false
  54.                     end
  55.                 end)
  56.             end
  57.         end
  58.     end)
  59.     GuiBacking.InputChanged:Connect(function(input)
  60.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  61.             dragInput = input
  62.         end
  63.     end)
  64.     game:GetService("UserInputService").InputChanged:Connect(function(input)
  65.         if input == dragInput and dragToggle then
  66.             updateInput(input)
  67.         end
  68.     end)
  69.  
  70.     game:GetService("UserInputService").InputBegan:Connect(function(key)
  71.         if key.KeyCode==getgenv().key then 
  72.             if open then
  73.                 GuiBacking:TweenSize(UDim2.new(0,0,0,300))
  74.                 open = false
  75.                 wait(2.5)
  76.             else
  77.                 GuiBacking:TweenSize(UDim2.new(0,500,0,300))
  78.                 open = true
  79.                 wait(2.5)
  80.             end
  81.         end
  82.     end)
  83.  
  84.     TextHolder.Name = "TextHolder"
  85.     TextHolder.Parent = GuiBacking
  86.     TextHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87.     TextHolder.BackgroundTransparency = 1.000
  88.     TextHolder.Position = UDim2.new(-0.000757873524, 0, -0.000351409923, 0)
  89.     TextHolder.Size = UDim2.new(0, 157, 0, 72)
  90.     TextHolder.Image = "rbxassetid://3570695787"
  91.     TextHolder.ImageColor3 = Color3.fromRGB(35,35,35)
  92.     TextHolder.ScaleType = Enum.ScaleType.Slice
  93.     TextHolder.SliceCenter = Rect.new(100, 100, 100, 100)
  94.     TextHolder.SliceScale = 0.040
  95.  
  96.     TextHolderBacking.Name = "TextHolderBacking"
  97.     TextHolderBacking.Parent = TextHolder
  98.     TextHolderBacking.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  99.     TextHolderBacking.BackgroundTransparency = 1.000
  100.     TextHolderBacking.Size = UDim2.new(0, 157, 0, 52)
  101.     TextHolderBacking.Image = "rbxassetid://3570695787"
  102.     TextHolderBacking.ImageColor3 = Color3.fromRGB(15, 15, 15)
  103.     TextHolderBacking.ScaleType = Enum.ScaleType.Slice
  104.     TextHolderBacking.SliceCenter = Rect.new(100, 100, 100, 100)
  105.     TextHolderBacking.SliceScale = 0.040
  106.  
  107.     Title.Name = "Title"
  108.     Title.Parent = TextHolder
  109.     Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  110.     Title.BackgroundTransparency = 1.000
  111.     Title.BorderSizePixel = 0
  112.     Title.Position = UDim2.new(0.067, 0, 0.12, 0)
  113.     Title.Size = UDim2.new(0, 135, 0, 20)
  114.     Title.ZIndex = 4
  115.     Title.Font = Enum.Font.GothamBold
  116.     Title.Text = title
  117.     Title.TextColor3 = Color3.fromRGB(223, 225, 235)
  118.     Title.TextSize = 20.000
  119.  
  120.     GameName.Name = "GameName"
  121.     GameName.Parent = TextHolder
  122.     GameName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  123.     GameName.BackgroundTransparency = 1.000
  124.     GameName.BorderSizePixel = 0
  125.     GameName.Position = UDim2.new(0.067, 0, 0.395, 0)
  126.     GameName.Size = UDim2.new(0, 135, 0, 17)
  127.     GameName.ZIndex = 4
  128.     GameName.Font = Enum.Font.GothamBold
  129.     GameName.Text = gameName
  130.     GameName.TextColor3 = Color3.fromRGB(161, 163, 170)
  131.     GameName.TextSize = 15.000
  132.     GameName.TextYAlignment = Enum.TextYAlignment.Top
  133.  
  134.     TabContainer.Name = "TabContainer"
  135.     TabContainer.Parent = GuiBacking
  136.     TabContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  137.     TabContainer.BackgroundTransparency = 1.000
  138.     TabContainer.Position = UDim2.new(-0.00057025149, 0, 0.209648535, 0)
  139.     TabContainer.Size = UDim2.new(0, 157, 0, 237)
  140.     TabContainer.Image = "rbxassetid://3570695787"
  141.     TabContainer.ImageColor3 = Color3.fromRGB(35,35,35)
  142.     TabContainer.ScaleType = Enum.ScaleType.Slice
  143.     TabContainer.SliceCenter = Rect.new(100, 100, 100, 100)
  144.     TabContainer.SliceScale = 0.040
  145.  
  146.     Tabs.Parent = TabContainer
  147.     Tabs.Active = true
  148.     Tabs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  149.     Tabs.BackgroundTransparency = 1.000
  150.     Tabs.BorderSizePixel = 0
  151.     Tabs.Size = UDim2.new(0, 157, 0, 237)
  152.     Tabs.ScrollBarThickness = 0
  153.     Tabs.CanvasSize = UDim2.new(0, 0, 0, 0)
  154.     Tabs.Name = "Tabs"
  155.  
  156.     TabListLayout.Parent = Tabs
  157.     TabListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  158.     TabListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  159.     TabListLayout.Padding = UDim.new(0, 5)
  160.     TabListLayout.Name = "TabListLayout"
  161.  
  162.     Items.Name = "Items"
  163.     Items.Parent = GuiBacking
  164.     Items.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  165.     Items.BackgroundTransparency = 1.000
  166.     Items.BorderSizePixel = 0
  167.     Items.Position = UDim2.new(-0.000837594271, 0, -0.000351428986, 0)
  168.     Items.Size = UDim2.new(0, 500, 0, 300)
  169.  
  170.     function DestroyUI()
  171.         Container:Destroy()
  172.     end
  173.  
  174.     local InsideLib = {}
  175.  
  176.     function InsideLib:Tab(name)
  177.         Tabs.CanvasSize += UDim2.new(0, 0, .15, 0)
  178.  
  179.         local TabButton = Instance.new("TextButton")
  180.         local TabButtonRounded = Instance.new("ImageLabel")
  181.         local Tab = Instance.new("ScrollingFrame")
  182.         local UIListLayout_2 = Instance.new("UIListLayout")
  183.  
  184.         TabButton.Name = name
  185.         TabButton.Parent = Tabs
  186.         TabButton.BackgroundColor3 = Color3.fromRGB(16, 20, 36)
  187.         TabButton.BackgroundTransparency = 1.000
  188.         TabButton.BorderSizePixel = 0
  189.         TabButton.Position = UDim2.new(0.0159235671, 0, 0.147679329, 0)
  190.         TabButton.Size = UDim2.new(0, 136, 0, 30)
  191.         TabButton.ZIndex = 2
  192.         TabButton.Font = Enum.Font.GothamBold
  193.         TabButton.Text = name
  194.         TabButton.TextColor3 = Color3.fromRGB(161, 163, 170)
  195.         TabButton.TextSize = 14.000
  196.         TabButton.MouseButton1Click:Connect(function()
  197.             for i, v in pairs(Items:GetChildren()) do
  198.                 if v.Name ~= TabButton.Name then
  199.                     v.Visible = false
  200.                     local tabname = v.Name
  201.                     Tabs:WaitForChild(tabname).TextColor3 = Color3.fromRGB(161, 163, 170)
  202.                 else
  203.                     v.Visible = true
  204.                     local tabname = v.Name
  205.                     Tabs:WaitForChild(tabname).TextColor3 = Color3.fromRGB(223, 225, 235)
  206.                 end
  207.             end
  208.         end)
  209.  
  210.  
  211.         TabButtonRounded.Name = "TabButtonRounded"
  212.         TabButtonRounded.Parent = TabButton
  213.         TabButtonRounded.Active = true
  214.         TabButtonRounded.AnchorPoint = Vector2.new(0.5, 0.5)
  215.         TabButtonRounded.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  216.         TabButtonRounded.BackgroundTransparency = 1.000
  217.         TabButtonRounded.Position = UDim2.new(0.5, 0, 0.5, 0)
  218.         TabButtonRounded.Selectable = true
  219.         TabButtonRounded.Size = UDim2.new(1, 0, 1, 0)
  220.         TabButtonRounded.Image = "rbxassetid://3570695787"
  221.         TabButtonRounded.ImageColor3 = Color3.fromRGB(15,15,15)
  222.         TabButtonRounded.ScaleType = Enum.ScaleType.Slice
  223.         TabButtonRounded.SliceCenter = Rect.new(100, 100, 100, 100)
  224.         TabButtonRounded.SliceScale = 0.040
  225.  
  226.         Tab.Name = name
  227.         Tab.Parent = Items
  228.         Tab.Active = true
  229.         Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  230.         Tab.BackgroundTransparency = 1.000
  231.         Tab.Position = UDim2.new(0.31400001, 0, 0.0422001146, 0)
  232.         Tab.Size = UDim2.new(0, 343, 0, 274)
  233.         Tab.CanvasSize = UDim2.new(0, 0, 0, 0)
  234.         Tab.Visible = false
  235.         Tab.ScrollBarThickness = 0
  236.  
  237.         UIListLayout_2.Parent = Tab
  238.         UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  239.         UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  240.         UIListLayout_2.Padding = UDim.new(0, 5)
  241.  
  242.         local InsideInsideLib = {}
  243.  
  244.         function InsideInsideLib:Button(name, callback)
  245.             Tab.CanvasSize += UDim2.new(0, 0, .115, 0)
  246.  
  247.             local callback = callback or function() end
  248.  
  249.             local Button = Instance.new("TextButton")
  250.             local ButtonRounded = Instance.new("ImageLabel")
  251.             local cursor = Instance.new("ImageButton")
  252.             name = name or "New Button"
  253.  
  254.             Button.Parent = Tab
  255.             Button.BackgroundColor3 = Color3.fromRGB(16, 20, 36)
  256.             Button.BackgroundTransparency = 1.000
  257.             Button.BorderSizePixel = 0
  258.             Button.Position = UDim2.new(0.301749259, 0, 0, 0)
  259.             Button.Size = UDim2.new(0, 296, 0, 30)
  260.             Button.ZIndex = 2
  261.             Button.Font = Enum.Font.GothamBold
  262.             Button.TextColor3 = Color3.fromRGB(223, 225, 235)
  263.             Button.TextSize = 14.000
  264.             Button.Text = name
  265.             Button.Name = "Button"
  266.  
  267.             ButtonRounded.Name = "ButtonRounded"
  268.             ButtonRounded.Parent = Button
  269.             ButtonRounded.Active = true
  270.             ButtonRounded.AnchorPoint = Vector2.new(0.5, 0.5)
  271.             ButtonRounded.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  272.             ButtonRounded.BackgroundTransparency = 1.000
  273.             ButtonRounded.Position = UDim2.new(0.5, 0, 0.5, 0)
  274.             ButtonRounded.Selectable = true
  275.             ButtonRounded.Size = UDim2.new(1, 0, 1, 0)
  276.             ButtonRounded.Image = "rbxassetid://3570695787"
  277.             ButtonRounded.ImageColor3 = Color3.fromRGB(15,15,15)
  278.             ButtonRounded.ScaleType = Enum.ScaleType.Slice
  279.             ButtonRounded.SliceCenter = Rect.new(100, 100, 100, 100)
  280.             ButtonRounded.SliceScale = 0.040
  281.  
  282.             cursor.Name = "cursor"
  283.             cursor.Parent = Button
  284.             cursor.BackgroundTransparency = 1.000
  285.             cursor.Position = UDim2.new(-0.00173042913, 0, 0, 0)
  286.             cursor.Size = UDim2.new(0, 30, 0, 30)
  287.             cursor.ZIndex = 2
  288.             cursor.Image = "rbxassetid://6764432293"
  289.             cursor.ImageRectOffset = Vector2.new(400, 0)
  290.             cursor.ImageRectSize = Vector2.new(100, 100)
  291.  
  292.             Button.MouseButton1Down:Connect(function()
  293.                 pcall(callback)
  294.             end)
  295.         end
  296.  
  297.         function InsideInsideLib:Toggle(name, callback)
  298.             Tab.CanvasSize += UDim2.new(0, 0, .115, 0)
  299.             local enabled = false
  300.  
  301.             name = name or "New Toggle"
  302.             callback = callback or function() end
  303.  
  304.             local ToggleBacking = Instance.new("ImageLabel")
  305.             local Text = Instance.new("TextLabel")
  306.             local CheckBox = Instance.new("ImageLabel")
  307.             local CheckBoxText = Instance.new("TextLabel")
  308.             local ToggleButton = Instance.new("TextButton")
  309.  
  310.             ToggleBacking.Name = "Toggle"
  311.             ToggleBacking.Parent = Tab
  312.             ToggleBacking.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  313.             ToggleBacking.BackgroundTransparency = 1.000
  314.             ToggleBacking.Position = UDim2.new(0.0787172019, 0, 0.127737224, 0)
  315.             ToggleBacking.Size = UDim2.new(0, 296, 0, 30)
  316.             ToggleBacking.Image = "rbxassetid://3570695787"
  317.             ToggleBacking.ImageColor3 = Color3.fromRGB(15, 15, 15)
  318.             ToggleBacking.ScaleType = Enum.ScaleType.Slice
  319.             ToggleBacking.SliceCenter = Rect.new(100, 100, 100, 100)
  320.             ToggleBacking.SliceScale = 0.040
  321.  
  322.             Text.Name = "Text"
  323.             Text.Parent = ToggleBacking
  324.             Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  325.             Text.BackgroundTransparency = 1.000
  326.             Text.BorderSizePixel = 0
  327.             Text.Size = UDim2.new(0, 268, 0, 30)
  328.             Text.Font = Enum.Font.GothamBold
  329.             Text.TextColor3 = Color3.fromRGB(223, 225, 235)
  330.             Text.TextSize = 14.000
  331.             Text.Text = name
  332.  
  333.             CheckBox.Name = "CheckBox"
  334.             CheckBox.Parent = ToggleBacking
  335.             CheckBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  336.             CheckBox.BackgroundTransparency = 1.000
  337.             CheckBox.Position = UDim2.new(0.905405402, 0, 0.100000001, 0)
  338.             CheckBox.Size = UDim2.new(0, 24, 0, 24)
  339.             CheckBox.Image = "rbxassetid://3570695787"
  340.             CheckBox.ImageColor3 = Color3.fromRGB(35, 35, 35)
  341.             CheckBox.ScaleType = Enum.ScaleType.Slice
  342.             CheckBox.SliceCenter = Rect.new(100, 100, 100, 100)
  343.             CheckBox.SliceScale = 0.040
  344.  
  345.             CheckBoxText.Name = "CheckBoxText"
  346.             CheckBoxText.Parent = CheckBox
  347.             CheckBoxText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  348.             CheckBoxText.BackgroundTransparency = 1.000
  349.             CheckBoxText.BorderSizePixel = 0
  350.             CheckBoxText.Size = UDim2.new(0, 24, 0, 24)
  351.             CheckBoxText.Font = Enum.Font.GothamBold
  352.             CheckBoxText.Text = ""
  353.             CheckBoxText.TextColor3 = Color3.fromRGB(255, 255, 255)
  354.             CheckBoxText.TextSize = 19.000
  355.  
  356.             ToggleButton.Name = "ToggleButton"
  357.             ToggleButton.Parent = ToggleBacking
  358.             ToggleButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  359.             ToggleButton.BackgroundTransparency = 1.000
  360.             ToggleButton.BorderSizePixel = 0
  361.             ToggleButton.Size = UDim2.new(0, 296, 0, 30)
  362.             ToggleButton.Font = Enum.Font.SourceSans
  363.             ToggleButton.Text = ""
  364.             ToggleButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  365.             ToggleButton.TextSize = 14.000
  366.  
  367.             local function Fire()
  368.                 enabled = not enabled
  369.                 CheckBoxText.Text = enabled and "X" or ""
  370.                 pcall(callback, enabled)
  371.             end
  372.  
  373.             ToggleButton.MouseButton1Click:Connect(Fire)
  374.         end
  375.  
  376.         function InsideInsideLib:Slider(name, minvalue, maxvalue, callback)
  377.             Tab.CanvasSize += UDim2.new(0, 0, .115, 0)
  378.  
  379.             minvalue = minvalue or 0
  380.             maxvalue = maxvalue or 100
  381.  
  382.             callback = callback or function() end
  383.  
  384.             name = name or "New Slider"
  385.  
  386.             local mouse = game.Players.LocalPlayer:GetMouse()
  387.             local uis = game:GetService("UserInputService")
  388.             local Value;
  389.  
  390.             local Slider = Instance.new("ImageLabel")
  391.             local Name = Instance.new("TextLabel")
  392.             local Num = Instance.new("TextLabel")
  393.             local Main = Instance.new("TextButton")
  394.             local SliderTop = Instance.new("ImageLabel")
  395.             local SliderIner = Instance.new("ImageLabel")
  396.  
  397.             Slider.Name = "Slider"
  398.             Slider.Parent = Tab
  399.             Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  400.             Slider.BackgroundTransparency = 1.000
  401.             Slider.Position = UDim2.new(0.354227394, 0, 0.255474448, 0)
  402.             Slider.Size = UDim2.new(0, 296, 0, 30)
  403.             Slider.Image = "rbxassetid://3570695787"
  404.             Slider.ImageColor3 = Color3.fromRGB(15, 15, 15)
  405.             Slider.ScaleType = Enum.ScaleType.Slice
  406.             Slider.SliceCenter = Rect.new(100, 100, 100, 100)
  407.             Slider.SliceScale = 0.040
  408.  
  409.             Name.Name = "Text"
  410.             Name.Parent = Slider
  411.             Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  412.             Name.BackgroundTransparency = 1.000
  413.             Name.BorderSizePixel = 0
  414.             Name.Size = UDim2.new(0, 235, 0, 17)
  415.             Name.Font = Enum.Font.GothamBold
  416.             Name.Text = name
  417.             Name.TextColor3 = Color3.fromRGB(223, 225, 235)
  418.             Name.TextSize = 14.000
  419.  
  420.             Num.Name = "Num"
  421.             Num.Parent = Slider
  422.             Num.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  423.             Num.BackgroundTransparency = 1.000
  424.             Num.BorderSizePixel = 0
  425.             Num.Position = UDim2.new(0.793918908, 0, 0, 0)
  426.             Num.Size = UDim2.new(0, 61, 0, 17)
  427.             Num.Font = Enum.Font.GothamBold
  428.             Num.Text = "250"
  429.             Num.TextColor3 = Color3.fromRGB(223, 225, 235)
  430.             Num.TextSize = 14.000
  431.  
  432.             Main.Name = "Main"
  433.             Main.Parent = Slider
  434.             Main.BackgroundColor3 = Color3.fromRGB(223, 225, 235)
  435.             Main.BackgroundTransparency = 1.000
  436.             Main.BorderSizePixel = 0
  437.             Main.ClipsDescendants = true
  438.             Main.Position = UDim2.new(0.0135135138, 0, 0.566666663, 0)
  439.             Main.Size = UDim2.new(0, 288, 0, 9)
  440.             Main.Font = Enum.Font.SourceSans
  441.             Main.Text = ""
  442.             Main.TextColor3 = Color3.fromRGB(0, 0, 0)
  443.             Main.TextSize = 14.000
  444.  
  445.             SliderTop.Name = "SliderTop"
  446.             SliderTop.Parent = Main
  447.             SliderTop.Active = true
  448.             SliderTop.AnchorPoint = Vector2.new(0.5, 0.5)
  449.             SliderTop.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  450.             SliderTop.BackgroundTransparency = 1.000
  451.             SliderTop.Position = UDim2.new(0.5, 0, 0.5, 0)
  452.             SliderTop.Selectable = true
  453.             SliderTop.Size = UDim2.new(1, 0, 1, 0)
  454.             SliderTop.Image = "rbxassetid://3570695787"
  455.             SliderTop.ImageColor3 = Color3.fromRGB(35,35,35)
  456.             SliderTop.ScaleType = Enum.ScaleType.Slice
  457.             SliderTop.SliceCenter = Rect.new(100, 100, 100, 100)
  458.             SliderTop.SliceScale = 0.040
  459.  
  460.             SliderIner.Name = "SliderIner"
  461.             SliderIner.Parent = Main
  462.             SliderIner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  463.             SliderIner.BackgroundTransparency = 0.000
  464.             SliderIner.Size = UDim2.new(0, 0, 0, 9)
  465.             SliderIner.Image = "rbxassetid://3570695787"
  466.             SliderIner.ImageColor3 = Color3.fromRGB(223, 225, 235)
  467.             SliderIner.ScaleType = Enum.ScaleType.Slice
  468.             SliderIner.SliceCenter = Rect.new(100, 100, 100, 100)
  469.             SliderIner.SliceScale = 0.040
  470.  
  471.             Main.MouseButton1Down:Connect(function()
  472.                 Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 288) * SliderIner.AbsoluteSize.X) + tonumber(minvalue)) or 0
  473.                 pcall(function()
  474.                     callback(Value)
  475.                 end)
  476.                 SliderIner.Size = UDim2.new(0, math.clamp(mouse.X - SliderIner.AbsolutePosition.X, 0, 288), 0, 16)
  477.                 moveconnection = mouse.Move:Connect(function()
  478.                     Num.Text = Value
  479.                     Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 288) * SliderIner.AbsoluteSize.X) + tonumber(minvalue))
  480.                     pcall(function()
  481.                         callback(Value)
  482.                     end)
  483.                     SliderIner.Size = UDim2.new(0, math.clamp(mouse.X - SliderIner.AbsolutePosition.X, 0, 288), 0, 16)
  484.                 end)
  485.                 releaseconnection = uis.InputEnded:Connect(function(Mouse)
  486.                     if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  487.                         Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 288) * SliderIner.AbsoluteSize.X) + tonumber(minvalue))
  488.                         pcall(function()
  489.                             callback(Value)
  490.                         end)
  491.                         SliderIner.Size = UDim2.new(0, math.clamp(mouse.X - SliderIner.AbsolutePosition.X, 0, 288), 0, 16)
  492.                         moveconnection:Disconnect()
  493.                         releaseconnection:Disconnect()
  494.                     end
  495.                 end)
  496.             end)
  497.         end
  498.  
  499.         function InsideInsideLib:Label(text, Size)
  500.             Tab.CanvasSize += UDim2.new(0, 0, .115, 0)
  501.  
  502.             local Label = Instance.new("ImageLabel")
  503.             local Text = Instance.new("TextLabel")
  504.  
  505.             text = text or "New Lable"
  506.  
  507.             Size = Size or 15
  508.  
  509.             Label.Name = "Label"
  510.             Label.Parent = Tab
  511.             Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  512.             Label.BackgroundTransparency = 1.000
  513.             Label.Position = UDim2.new(0.0685131177, 0, 0.383211672, 0)
  514.             Label.Size = UDim2.new(0, 296, 0, 30)
  515.             Label.Image = "rbxassetid://3570695787"
  516.             Label.ImageColor3 = Color3.fromRGB(15, 15, 15)
  517.             Label.ScaleType = Enum.ScaleType.Slice
  518.             Label.SliceCenter = Rect.new(100, 100, 100, 100)
  519.             Label.SliceScale = 0.040
  520.  
  521.             Text.Name = "Text"
  522.             Text.Parent = Label
  523.             Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  524.             Text.BackgroundTransparency = 1.000
  525.             Text.BorderSizePixel = 0
  526.             Text.Size = UDim2.new(0, 295, 0, 30)
  527.             Text.Font = Enum.Font.GothamBold
  528.             Text.TextColor3 = Color3.fromRGB(223, 225, 235)
  529.             Text.TextSize = Size
  530.             Text.Text = text
  531.         end
  532.  
  533.         function InsideInsideLib:HotkeyLabel(name, key)
  534.             Tab.CanvasSize += UDim2.new(0, 0, .115, 0)
  535.  
  536.             local HotkeyLabel = Instance.new("ImageLabel")
  537.             local Text = Instance.new("TextLabel")
  538.             local Frame = Instance.new("ImageLabel")
  539.             local KeyText = Instance.new("TextLabel")
  540.             local keyboard = Instance.new("ImageButton")
  541.  
  542.             name = name or "New Hotkey Label"
  543.  
  544.             HotkeyLabel.Name = "Hotkey Label"
  545.             HotkeyLabel.Parent = Tab
  546.             HotkeyLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  547.             HotkeyLabel.BackgroundTransparency = 1.000
  548.             HotkeyLabel.Position = UDim2.new(0.0685131177, 0, 0.383211672, 0)
  549.             HotkeyLabel.Size = UDim2.new(0, 296, 0, 30)
  550.             HotkeyLabel.Image = "rbxassetid://3570695787"
  551.             HotkeyLabel.ImageColor3 = Color3.fromRGB(15, 15, 15)
  552.             HotkeyLabel.ScaleType = Enum.ScaleType.Slice
  553.             HotkeyLabel.SliceCenter = Rect.new(100, 100, 100, 100)
  554.             HotkeyLabel.SliceScale = 0.040
  555.  
  556.             Text.Name = "Text"
  557.             Text.Parent = HotkeyLabel
  558.             Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  559.             Text.BackgroundTransparency = 1.000
  560.             Text.BorderSizePixel = 0
  561.             Text.Position = UDim2.new(0.111857235, 0, 0, 0)
  562.             Text.Size = UDim2.new(0, 234, 0, 30)
  563.             Text.Font = Enum.Font.GothamBold
  564.             Text.TextColor3 = Color3.fromRGB(223, 225, 235)
  565.             Text.TextSize = 14.000
  566.             Text.Text = name
  567.  
  568.             Frame.Name = "Frame"
  569.             Frame.Parent = HotkeyLabel
  570.             Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  571.             Frame.BackgroundTransparency = 1.000
  572.             Frame.Position = UDim2.new(0.905405402, 0, 0.100000001, 0)
  573.             Frame.Size = UDim2.new(0, 24, 0, 24)
  574.             Frame.Image = "rbxassetid://3570695787"
  575.             Frame.ImageColor3 = Color3.fromRGB(35, 35, 35)
  576.             Frame.ScaleType = Enum.ScaleType.Slice
  577.             Frame.SliceCenter = Rect.new(100, 100, 100, 100)
  578.             Frame.SliceScale = 0.040
  579.  
  580.             KeyText.Name = "KeyText"
  581.             KeyText.Parent = Frame
  582.             KeyText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  583.             KeyText.BackgroundTransparency = 1.000
  584.             KeyText.BorderSizePixel = 0
  585.             KeyText.Size = UDim2.new(0, 24, 0, 24)
  586.             KeyText.Font = Enum.Font.GothamBold
  587.             KeyText.Text = key
  588.             KeyText.TextColor3 = Color3.fromRGB(255, 255, 255)
  589.             KeyText.TextSize = 19.000
  590.  
  591.             keyboard.Name = "keyboard"
  592.             keyboard.Parent = HotkeyLabel
  593.             keyboard.BackgroundTransparency = 1.000
  594.             keyboard.Position = UDim2.new(0.0105058821, 0, -0.0303253178, 0)
  595.             keyboard.Size = UDim2.new(0, 30, 0, 30)
  596.             keyboard.ZIndex = 2
  597.             keyboard.Image = "rbxassetid://3926305904"
  598.             keyboard.ImageRectOffset = Vector2.new(724, 444)
  599.             keyboard.ImageRectSize = Vector2.new(36, 36)
  600.         end
  601.    
  602.         return InsideInsideLib;
  603.     end
  604.  
  605.     return InsideLib;
  606. end
  607.  
  608. return Lib;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement