Advertisement
8599

Untitled

Feb 11th, 2025 (edited)
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 95.24 KB | None | 0 0
  1. --[[
  2.     GET/REQUEST UPDATES HERE: https://discord.gg/rc3TDqKmjN
  3.     Creator: linenhs (discord.com)
  4.  
  5.     [ * Links:
  6.          Documentation: https://reallinen.gitbook.io/3d-ui-linui-documentation/
  7.          V3rmillion Thread: https://v3rm.net/threads/linui-3d-roblox-ui-library.6666/
  8.     ]
  9.  
  10.     This automatically deletes connections on re-execution, basically reducing lag [ You shouldn't lag with this UI Library ]
  11.     PLS Credit me If ur going to use OR Fork or Do anything rlly, this was kinda hard to make and took over 3 days
  12.  
  13.     * The Y, Z, R AND G Parameters save on re-execute. To change or remove them, open exploit workspace fodler -> LinenModule -> (GAME_PLACE_ID).txt
  14.     * UI Config saves per game, not globally
  15. ]]
  16.  
  17. -- 2000+ Lines, crazy isn't it?
  18. -- Version: 1
  19.  
  20. STRING = "Fixes:"
  21. --[[
  22.     * Fixed UI click-related bugs
  23.     * Fixed/Added breathing
  24.     * Fixed Toggles inverting wrong callback
  25.     * Made more hard to detect
  26.     * Fixed Colorpicker overriding screen
  27. ]]
  28.  
  29. STRING = "Updates:"
  30. --[[
  31.     * Added Colorpicker
  32. ]]
  33.  
  34. local __original_require = require
  35. local function require(link)
  36.  
  37.     if type(link)=="number" then return __original_require(link) end
  38.     if type(link)~="string" then return nil; end
  39.     local suc,err = pcall(function() return game:HttpGet(link) end)
  40.     -- >.< Deku Demz Is Gay  --
  41.     if suc then return err; end
  42.     return nil
  43.  
  44. end
  45.  
  46. pcall(loadstring(require("https://api.irisapp.ca/Scripts/IrisInstanceProtect.lua"))) -- Basically try to make it undetectable
  47.  
  48. local LinenModule: { print: "function( ... )", Loop: "function( func, seconds, yeild, ... )" } = loadstring(require("https://reallinen.github.io/Files/Scripts/LinenModule.lua"))()
  49. local Storage: { Data: {}, Load: "function( folder_name: string )" }, Http: { GET: "function( link: string )" }, Cache: { add: "function( name: string, object: anything/dynamic )", del: "function( name: string )" } = LinenModule["Storage"], LinenModule["Http"], LinenModule["Cache"]
  50.    
  51. for i,v in next, LinenModule do
  52.     if i=="print" then continue; end
  53.     getgenv()[i] = v
  54. end
  55.  
  56. LinenModule:Load()
  57. --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  58. local RunService = game:GetService("RunService")
  59. local HttpService = game:GetService("HttpService")
  60. local TeleportService = game:GetService("TeleportService")
  61.  
  62. local TS, UIS = game:GetService("TweenService"), game:GetService("UserInputService")
  63. local Player = game:GetService("Players").LocalPlayer
  64.  
  65. local Character: Model, Head: Part, HumanoidRootPart: Part, Humanoid: Humanoid, Torso: Part, PlayerGui: PlayerGui = Player.Character or Player.CharacterAdded:Wait(), nil, nil, nil, nil, Player:FindFirstChild("PlayerGui");
  66. local pm_mouse = Player:GetMouse()
  67.  
  68. Loop(function()
  69.     Character = Player.Character or nil
  70.     if typeof(Character)~="Instance" then return; end;    
  71.     Head, HumanoidRootPart, Humanoid, Torso, PlayerGui = Character:FindFirstChild("Head"), Character:FindFirstChild("HumanoidRootPart"), Character:FindFirstChild("Humanoid"), (Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso") or Character:FindFirstChild("LowerTorso")), Player:FindFirstChild("PlayerGui");
  72. end)
  73.  
  74. Storage.Load()
  75. --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Modules
  76. local Path, Mouse = {}, {}
  77.  
  78. Path.Index = function(inst, ...: string)
  79.     if typeof(inst)~="Instance" then return false, "First Argument must be an Instance"; end
  80.     local base = inst
  81.  
  82.     for i,v in next, {...} do
  83.         if type(v)~="nil" then
  84.             local indexedSuccessfully, result = pcall(function()
  85.                 return base[v]
  86.             end)
  87.  
  88.             if indexedSuccessfully and type(result)~="nil" then
  89.                 base = result
  90.             else
  91.                 base = nil
  92.                 break;
  93.             end
  94.         end
  95.     end
  96.  
  97.     return base
  98. end
  99. Path.findPath = function(str: string)
  100.     if type(str)~="string" then return"First argument must be a string" end
  101.  
  102.     local gameInstances = {
  103.         ["game"] = game,
  104.         ["Workspace"] = workspace,
  105.         ["Players"] = game:GetService("Players"),
  106.         ["Lighting"] = game:GetService("Lighting"),
  107.         ["NetworkClient"] = game:GetService("NetworkClient"),
  108.         ["ReplicatedFirst"] = game:GetService("ReplicatedFirst"),
  109.         ["ReplicatedStorage"] = game:GetService("ReplicatedStorage"),
  110.         ["StarterGui"] = game:GetService("StarterGui"),
  111.         ["StarterPack"] = game:GetService("StarterPack"),
  112.         ["Teams"] = game:GetService("Teams"),
  113.         ["SoundService"] = game:GetService("SoundService"),
  114.     }  
  115.  
  116.     for i,v in next, gameInstances do local storedName, storedValue = i, v;gameInstances[i] = nil;gameInstances[storedName:lower()] = storedValue end
  117.     local parsed = string.split(str, ".")
  118.     local base = game;
  119.  
  120.     for i,v in next, parsed do
  121.         if not base then break; end
  122.         if type(v)=="string" then
  123.  
  124.             if gameInstances[v:lower()] then
  125.                 base = gameInstances[v:lower()]
  126.                 continue;
  127.             end
  128.             -- ~~~~~~~~~~~~~~~~~~~~    
  129.             local foundObj = Path.Index(base, v)           
  130.             if not foundObj then
  131.                 return nil
  132.             else
  133.                 base = foundObj
  134.             end
  135.         end
  136.     end
  137.  
  138.     return base
  139. end
  140.  
  141. function Mouse:MouseBetweenPoints(pointA,pointB)
  142.     local mouseVector = Vector2.new(pm_mouse.X, pm_mouse.Y)
  143.     local pointAVector = Vector2.new(pointA.X.Offset,pointA.Y.Offset)
  144.     local pointBVector = Vector2.new(pointB.X.Offset,pointB.Y.Offset)
  145.     return ((mouseVector.X > pointAVector.X and mouseVector.Y > pointAVector.Y) and (mouseVector.X < pointBVector.X and mouseVector.Y < pointBVector.Y))
  146. end
  147.  
  148. function Mouse:MouseInFrame(frame)
  149.     local pointAVector = frame.AbsolutePosition
  150.     local pointBVector = frame.AbsolutePosition + frame.AbsoluteSize
  151.     return Mouse:MouseBetweenPoints(UDim2.fromOffset(pointAVector.X,pointAVector.Y),UDim2.fromOffset(pointBVector.X,pointBVector.Y))
  152. end
  153.  
  154. Mouse["Mouse"] = pm_mouse
  155. --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Part: Creator
  156. local generatedName = "LU_"..HttpService:GenerateGUID()
  157. getgenv()["Linui"] = getgenv()["Linui"] or "_"..math.random(1, 9)..math.random(1, 9)..math.random(1, 9)..math.random(1, 9)..math.random(1, 9)..math.random(1, 9)..math.random(1, 9)..math.random(1, 9)..math.random(1, 9)
  158.  
  159. local Part = Instance.new("Part")
  160. Part.Name = generatedName
  161. Part.Anchored = true
  162. Part.CanCollide = false
  163. Part.Locked = true
  164. Part.Transparency = 1
  165. Part.Size = Vector3.new(22.517, 11.59, 2)
  166.  
  167. if type(ProtectInstance)=="function" then -- If ur exploit doesn't support and you get detected, oh well, read documentation to see what ur exploit has to support to avoid most detections
  168.     ProtectInstance(Part) -- Thanks Iris <3
  169. end
  170.  
  171. Part.Parent = workspace
  172.     -- print(Part.Parent) -- nil [ The part is hooked to return nil ] [ ONLY IF UR EXPLOIT SUPPORTS ProtectInstance ]
  173.  
  174. local Objects = Instance.new("Folder")
  175. local Examples = Instance.new("Folder")
  176.  
  177. Objects.Name = "Objects"
  178. Objects.Parent = Part
  179.  
  180. Examples.Name = "Examples"
  181. Examples.Parent = Part
  182.  
  183. Cache.add(Objects)
  184. Cache.add(Part)
  185.  
  186. local UI, Frame = nil, nil;
  187. local Config = { ["Keys"] = {}, ["Cooldowns"] = {}, ["UI"] = {}, Breathing = true }
  188. local Library = { }
  189.  
  190. local function HandleEvent(BindableEvent, callback)
  191.     return BindableEvent and type(callback)=="function" and (function() local event = BindableEvent:Connect(callback); Cache.add(event); return event end)() or (function() Cache.add(BindableEvent);return BindableEvent end)()
  192. end
  193. local function WrapFunction(callback, ...)
  194.     return typeof(callback)=="function" and coroutine.wrap(callback)(...) or false
  195. end
  196.  
  197. local handleChildSize; handleChildSize = function(child: Instance, Frame, ...) -- Written by the one and only Linen#3485 | Basically makes sure the ScrollingFrame is auto-scaled to the size of the elements inside
  198.  
  199.     local arg = {...}
  200.     local WhitelistedNames = {
  201.         ["ImageButton"] = true,
  202.         ["ImageLabel"] = true,
  203.         ["Button"] = true,
  204.         ["TextLabel"] = true,
  205.         ["Frame"] = true,
  206.         ["ScrollingFrame"] = true
  207.     }
  208.  
  209.     if WhitelistedNames[child.ClassName] then
  210.         child:GetPropertyChangedSignal("Size"):Connect(function()
  211.             if typeof(Frame)=="Instance" and Frame:IsA("ScrollingFrame") then
  212.                 Frame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  213.             end
  214.         end)
  215.     end
  216.  
  217.     local Cached = {}
  218.     HandleEvent(child.ChildAdded:Connect(function(_child)
  219.         Cached[_child] = _child
  220.         handleChildSize(_child, Frame, unpack(arg))
  221.     end))
  222.  
  223.     for a, b in next, child:GetDescendants() do
  224.         if not Cached[b] then
  225.             Cached[b] = b
  226.             handleChildSize(b, Frame, unpack(arg))
  227.         end
  228.     end
  229. end
  230.  
  231. do -- Main UI
  232.     UI = Instance.new("SurfaceGui")
  233.  
  234.     UI["ResetOnSpawn"] = false
  235.     UI["Face"] = Enum.NormalId.Back
  236.     UI["SizingMode"] = Enum.SurfaceGuiSizingMode.PixelsPerStud
  237.     UI["ClipsDescendants"] = true
  238.     UI["Adornee"] = Part
  239.     UI["Name"] = "UI"
  240.     UI["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling
  241.     UI["AlwaysOnTop"] = true
  242.     UI["Parent"] = Part
  243.  
  244.     Frame = Instance.new("ImageButton")
  245.     Frame["BorderSizePixel"] = 0
  246.     Frame["Name"] = "Frame"
  247.     Frame["BackgroundColor3"] = Color3.fromRGB(30.00000011175871, 30.00000011175871, 30.00000011175871)
  248.     Frame["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  249.     Frame["Size"] = UDim2.new(0.8960000276565552, 0, 1, 0)
  250.     Frame["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  251.     Frame["ImageTransparency"] = 1
  252.     Frame["Position"] = UDim2.new(0.052000001072883606, 0, 0, 0)
  253.     Frame["BackgroundTransparency"] = 1
  254.     Frame["Parent"] = UI
  255.    
  256.     local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  257.     UIAspectRatioConstraint["AspectRatio"] = 1.75
  258.     UIAspectRatioConstraint["Parent"] = Frame
  259.    
  260.     local UICorner = Instance.new("UICorner")
  261.     UICorner["CornerRadius"] = UDim.new(0, 0)
  262.     UICorner["Parent"] = Frame
  263.    
  264.     local Main = Instance.new("ImageLabel")
  265.     Main["BorderSizePixel"] = 0
  266.     Main["ScaleType"] = Enum.ScaleType.Tile
  267.     Main["BackgroundColor3"] = Color3.fromRGB(16.000000946223736, 16.000000946223736, 16.000000946223736)
  268.     Main["Name"] = "Main"
  269.     Main["ImageTransparency"] = 1
  270.     Main["Image"] = "rbxassetid://14228549334"
  271.     Main["Size"] = UDim2.new(0.4762379229068756, 0, 0.9121286869049072, 0)
  272.     Main["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  273.     Main["ResampleMode"] = Enum.ResamplerMode.Pixelated
  274.     Main["BackgroundTransparency"] = 0.20000000298023224
  275.     Main["Position"] = UDim2.new(0.2609618008136749, 0, 0.043316829949617386, 0)
  276.     Main["Parent"] = Frame
  277.    
  278.     local PlayerName = Instance.new("TextLabel")
  279.     PlayerName["TextWrapped"] = true
  280.     PlayerName["BorderSizePixel"] = 0
  281.     PlayerName["RichText"] = true
  282.     PlayerName["Name"] = "PlayerName"
  283.     PlayerName["TextScaled"] = true
  284.     PlayerName["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  285.     PlayerName["FontFace"] = Font.new("rbxassetid://12187370000", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  286.     PlayerName["Size"] = UDim2.new(0.21115538477897644, 0, 0.06368563324213028, 0)
  287.     PlayerName["Position"] = UDim2.new(0.39319005608558655, 0, 0.017617134377360344, 0)
  288.     PlayerName["TextColor3"] = Color3.fromRGB(255, 255, 255)
  289.     PlayerName["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  290.     PlayerName["Text"] = "8360"
  291.     PlayerName["BackgroundTransparency"] = 1
  292.     PlayerName["TextSize"] = 20
  293.     PlayerName["Parent"] = Main
  294.    
  295.     local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
  296.     UITextSizeConstraint["MaxTextSize"] = 20
  297.     UITextSizeConstraint["Parent"] = PlayerName
  298.    
  299.     local HoverHandler = Instance.new("TextButton")
  300.     HoverHandler["TextWrapped"] = true
  301.     HoverHandler["BorderSizePixel"] = 0
  302.     HoverHandler["Name"] = "HoverHandler"
  303.     HoverHandler["TextSize"] = 14
  304.     HoverHandler["TextScaled"] = true
  305.     HoverHandler["BackgroundColor3"] = Color3.fromRGB(30.00000011175871, 30.00000011175871, 30.00000011175871)
  306.     HoverHandler["FontFace"] = Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  307.     HoverHandler["Size"] = UDim2.new(1.106918215751648, 0, 1.0638298988342285, 0)
  308.     HoverHandler["Position"] = UDim2.new(-0.050314463675022125, 0, -0.06382978707551956, 0)
  309.     HoverHandler["TextColor3"] = Color3.fromRGB(0, 0, 0)
  310.     HoverHandler["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  311.     HoverHandler["Text"] = ""
  312.     HoverHandler["Font"] = Enum.Font.SourceSans
  313.     HoverHandler["BackgroundTransparency"] = 1
  314.     HoverHandler["Parent"] = PlayerName
  315.    
  316.     local UITextSizeConstraint_1 = Instance.new("UITextSizeConstraint")
  317.     UITextSizeConstraint_1["MaxTextSize"] = 14
  318.     UITextSizeConstraint_1["Parent"] = HoverHandler
  319.    
  320.     local Line = Instance.new("Frame")
  321.     Line["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  322.     Line["Name"] = "Line"
  323.     Line["Size"] = UDim2.new(0.29216468334198, 0, 0.0013550135772675276, 0)
  324.     Line["BorderColor3"] = Color3.fromRGB(255, 255, 255)
  325.     Line["Position"] = UDim2.new(0.3533494770526886, 0, 0.0704626515507698, 0)
  326.     Line["Parent"] = Main
  327.    
  328.     local UICorner_1 = Instance.new("UICorner")
  329.     UICorner_1["CornerRadius"] = UDim.new(0, 0)
  330.     UICorner_1["Parent"] = Main
  331.    
  332.     local UIAspectRatioConstraint_1 = Instance.new("UIAspectRatioConstraint")
  333.     UIAspectRatioConstraint_1["AspectRatio"] = 0.9137048125267029
  334.     UIAspectRatioConstraint_1["Parent"] = Main
  335.    
  336.     local Left = Instance.new("Frame")
  337.     Left["BorderSizePixel"] = 0
  338.     Left["BackgroundColor3"] = Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)
  339.     Left["Name"] = "Left"
  340.     Left["Size"] = UDim2.new(0.2501583695411682, 0, 0.913366436958313, 0)
  341.     Left["BackgroundTransparency"] = 1
  342.     Left["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  343.     Left["Position"] = UDim2.new(0.004263971466571093, 0, 0.043316785246133804, 0)
  344.     Left["Parent"] = Frame
  345.    
  346.     local Frame_1 = Instance.new("ScrollingFrame")
  347.     Frame_1["Active"] = true
  348.     Frame_1["BorderSizePixel"] = 0
  349.     Frame_1["Name"] = "Frame"
  350.     Frame_1["Size"] = UDim2.new(1, 0, 0.9937794804573059, 0)
  351.     Frame_1["ScrollBarImageColor3"] = Color3.fromRGB(0, 0, 0)
  352.     Frame_1["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  353.     Frame_1["ScrollBarThickness"] = 0
  354.     Frame_1["BackgroundTransparency"] = 1
  355.     Frame_1["Position"] = UDim2.new(-8.628197178950359e-08, 0, -4.135500475399567e-08, 0)
  356.     Frame_1["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  357.     Frame_1["Parent"] = Left
  358.    
  359.  
  360.     local UIAspectRatioConstraint_2 = Instance.new("UIAspectRatioConstraint")
  361.     UIAspectRatioConstraint_2["AspectRatio"] = 0.48230084776878357
  362.     UIAspectRatioConstraint_2["Parent"] = Frame_1
  363.    
  364.     local UIListLayout = Instance.new("UIListLayout")
  365.     UIListLayout["HorizontalAlignment"] = Enum.HorizontalAlignment.Center
  366.     UIListLayout["Padding"] = UDim.new(0, 2)
  367.     UIListLayout["SortOrder"] = Enum.SortOrder.LayoutOrder
  368.     UIListLayout["Parent"] = Frame_1
  369.    
  370.     local UICorner_2 = Instance.new("UICorner")
  371.     UICorner_2["CornerRadius"] = UDim.new(0.029999999329447746, 0)
  372.     UICorner_2["Parent"] = Left
  373.    
  374.     local UIAspectRatioConstraint_3 = Instance.new("UIAspectRatioConstraint")
  375.     UIAspectRatioConstraint_3["AspectRatio"] = 0.4793006479740143
  376.     UIAspectRatioConstraint_3["Parent"] = Left
  377.    
  378.     local Right = Instance.new("Frame")
  379.     Right["BorderSizePixel"] = 0
  380.     Right["BackgroundColor3"] = Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)
  381.     Right["Name"] = "Right"
  382.     Right["Size"] = UDim2.new(0.2501583397388458, 0, 0.9133663773536682, 0)
  383.     Right["BackgroundTransparency"] = 0.4000000059604645
  384.     Right["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  385.     Right["Position"] = UDim2.new(0.7447751760482788, 0, 0.043316829949617386, 0)
  386.     Right["Parent"] = Frame
  387.    
  388.     local Frame_2 = Instance.new("ScrollingFrame")
  389.     Frame_2["Active"] = true
  390.     Frame_2["BorderSizePixel"] = 0
  391.     Frame_2["Name"] = "Frame"
  392.     Frame_2["Size"] = UDim2.new(0.9244498014450073, 0, 0.9186992049217224, 0)
  393.     Frame_2["ScrollBarImageColor3"] = Color3.fromRGB(0, 0, 0)
  394.     Frame_2["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  395.     Frame_2["ScrollBarThickness"] = 6
  396.     Frame_2["BackgroundTransparency"] = 1
  397.     Frame_2["Position"] = UDim2.new(0.039578892290592194, 0, 0.06910569220781326, 0)
  398.     Frame_2["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  399.     Frame_2["Parent"] = Right
  400.  
  401.     local UIListLayout_1 = Instance.new("UIListLayout")
  402.     UIListLayout_1["HorizontalAlignment"] = Enum.HorizontalAlignment.Center
  403.     UIListLayout_1["Padding"] = UDim.new(0, 4)
  404.     UIListLayout_1["SortOrder"] = Enum.SortOrder.LayoutOrder
  405.     UIListLayout_1["Parent"] = Frame_2
  406.    
  407.     local UIAspectRatioConstraint_4 = Instance.new("UIAspectRatioConstraint")
  408.     UIAspectRatioConstraint_4["AspectRatio"] = 0.48230084776878357
  409.     UIAspectRatioConstraint_4["Parent"] = Frame_2
  410.    
  411.     local MINIMIZE = Instance.new("TextButton")
  412.     MINIMIZE["TextWrapped"] = true
  413.     MINIMIZE["BorderSizePixel"] = 0
  414.     MINIMIZE["Name"] = "MINIMIZE"
  415.     MINIMIZE["TextSize"] = 14
  416.     MINIMIZE["TextScaled"] = true
  417.     MINIMIZE["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  418.     MINIMIZE["FontFace"] = Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  419.     MINIMIZE["Size"] = UDim2.new(0.04810125753283501, 0, 0.024390242993831635, 0)
  420.     MINIMIZE["Position"] = UDim2.new(0.8405062556266785, 0, 0.008130080997943878, 0)
  421.     MINIMIZE["TextColor3"] = Color3.fromRGB(0, 0, 0)
  422.     MINIMIZE["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  423.     MINIMIZE["Text"] = ""
  424.     MINIMIZE["Font"] = Enum.Font.SourceSans
  425.     MINIMIZE["Parent"] = Right
  426.    
  427.     local UITextSizeConstraint_2 = Instance.new("UITextSizeConstraint")
  428.     UITextSizeConstraint_2["MaxTextSize"] = 14
  429.     UITextSizeConstraint_2["Parent"] = MINIMIZE
  430.    
  431.     local UICorner_3 = Instance.new("UICorner")
  432.     UICorner_3["CornerRadius"] = UDim.new(1, 0)
  433.     UICorner_3["Parent"] = MINIMIZE
  434.    
  435.     local UIGradient = Instance.new("UIGradient")
  436.     UIGradient["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(145.00000655651093, 145.00000655651093, 10.000000353902578)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(191.00000381469727, 143.00000667572021, 0)) })
  437.     UIGradient["Parent"] = MINIMIZE
  438.    
  439.     local EXIT = Instance.new("TextButton")
  440.     EXIT["TextWrapped"] = true
  441.     EXIT["BorderSizePixel"] = 0
  442.     EXIT["Name"] = "EXIT"
  443.     EXIT["TextSize"] = 14
  444.     EXIT["TextScaled"] = true
  445.     EXIT["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  446.     EXIT["FontFace"] = Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  447.     EXIT["Size"] = UDim2.new(0.04810125753283501, 0, 0.024390242993831635, 0)
  448.     EXIT["Position"] = UDim2.new(0.9164556264877319, 0, 0.008130080997943878, 0)
  449.     EXIT["TextColor3"] = Color3.fromRGB(0, 0, 0)
  450.     EXIT["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  451.     EXIT["Text"] = ""
  452.     EXIT["Font"] = Enum.Font.SourceSans
  453.     EXIT["Parent"] = Right
  454.    
  455.     local UITextSizeConstraint_3 = Instance.new("UITextSizeConstraint")
  456.     UITextSizeConstraint_3["MaxTextSize"] = 14
  457.     UITextSizeConstraint_3["Parent"] = EXIT
  458.    
  459.     local UICorner_4 = Instance.new("UICorner")
  460.     UICorner_4["CornerRadius"] = UDim.new(1, 0)
  461.     UICorner_4["Parent"] = EXIT
  462.    
  463.     local UIGradient_1 = Instance.new("UIGradient")
  464.     UIGradient_1["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(145.00000655651093, 6.000000117346644, 8.000000473111868)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(191.00000381469727, 0, 0)) })
  465.     UIGradient_1["Parent"] = EXIT
  466.    
  467.     local UICorner_5 = Instance.new("UICorner")
  468.     UICorner_5["CornerRadius"] = UDim.new(0.029999999329447746, 0)
  469.     UICorner_5["Parent"] = Right
  470.    
  471.     local UIAspectRatioConstraint_5 = Instance.new("UIAspectRatioConstraint")
  472.     UIAspectRatioConstraint_5["AspectRatio"] = 0.4793006479740143
  473.     UIAspectRatioConstraint_5["Parent"] = Right
  474.    
  475.     local UIAspectRatioConstraint_6 = Instance.new("UIAspectRatioConstraint")
  476.     UIAspectRatioConstraint_6["AspectRatio"] = 1.9428621530532837
  477.     UIAspectRatioConstraint_6["Parent"] = UI
  478.    
  479. end
  480.  
  481. do -- UI Elements
  482.  
  483.     local UI_Examples = Examples
  484.     local Keybind = Instance.new("Frame")
  485.     Keybind["BorderSizePixel"] = 0
  486.     Keybind["BackgroundColor3"] = Color3.fromRGB(0, 0, 0)
  487.     Keybind["Name"] = "Keybind"
  488.     Keybind["Size"] = UDim2.new(0, 272, 0, 41)
  489.     Keybind["BackgroundTransparency"] = 1
  490.     Keybind["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  491.     Keybind["Position"] = UDim2.new(0.08406495302915573, 0, 4.501474037965636e-08, 0)
  492.     Keybind["Parent"] = UI_Examples
  493.    
  494.     local ViewKeybind = Instance.new("ImageButton")
  495.     ViewKeybind["BorderSizePixel"] = 0
  496.     ViewKeybind["Name"] = "ViewKeybind"
  497.     ViewKeybind["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  498.     ViewKeybind["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  499.     ViewKeybind["Size"] = UDim2.new(0.31966525316238403, 0, 0.5718939900398254, 0)
  500.     ViewKeybind["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  501.     ViewKeybind["ImageTransparency"] = 1
  502.     ViewKeybind["Position"] = UDim2.new(0.5060985684394836, 0, 0.21320509910583496, 0)
  503.     ViewKeybind["Parent"] = Keybind
  504.    
  505.     local Label = Instance.new("TextLabel")
  506.     Label["TextWrapped"] = true
  507.     Label["BorderSizePixel"] = 0
  508.     Label["Name"] = "Label"
  509.     Label["TextScaled"] = true
  510.     Label["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  511.     Label["FontFace"] = Font.new("rbxassetid://12187360881", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  512.     Label["Size"] = UDim2.new(1.74003267288208, 0, 1.2190746068954468, 0)
  513.     Label["Position"] = UDim2.new(-1.829146385192871, 0, -0.13377799093723297, 0)
  514.     Label["LayoutOrder"] = 100
  515.     Label["TextColor3"] = Color3.fromRGB(255, 255, 255)
  516.     Label["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  517.     Label["Text"] = "Example Keybind"
  518.     Label["BackgroundTransparency"] = 1
  519.     Label["TextXAlignment"] = Enum.TextXAlignment.Right
  520.     Label["TextSize"] = 11
  521.     Label["Parent"] = ViewKeybind
  522.    
  523.     local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
  524.     UITextSizeConstraint["MaxTextSize"] = 17
  525.     UITextSizeConstraint["Parent"] = Label
  526.    
  527.     local UIGradient = Instance.new("UIGradient")
  528.     UIGradient["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)) })
  529.     UIGradient["Parent"] = ViewKeybind
  530.    
  531.     local UICorner = Instance.new("UICorner")
  532.     UICorner["CornerRadius"] = UDim.new(0, 4)
  533.     UICorner["Parent"] = ViewKeybind
  534.    
  535.     local Button = Instance.new("TextButton")
  536.     Button["TextWrapped"] = true
  537.     Button["BorderSizePixel"] = 0
  538.     Button["RichText"] = true
  539.     Button["Name"] = "Button"
  540.     Button["TextSize"] = 15
  541.     Button["TextScaled"] = true
  542.     Button["BackgroundColor3"] = Color3.fromRGB(107.00000122189522, 107.00000122189522, 107.00000122189522)
  543.     Button["FontFace"] = Font.new("rbxasset://fonts/families/Jura.json", Enum.FontWeight.Regular, Enum.FontStyle.Italic)
  544.     Button["Size"] = UDim2.new(0.9151746034622192, 0, 0.9446877837181091, 0)
  545.     Button["Position"] = UDim2.new(0.03450300544500351, 0, 0.012664435431361198, 0)
  546.     Button["TextColor3"] = Color3.fromRGB(255, 255, 255)
  547.     Button["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  548.     Button["Text"] = "..."
  549.     Button["BackgroundTransparency"] = 1
  550.     Button["Parent"] = ViewKeybind
  551.    
  552.     local UITextSizeConstraint_1 = Instance.new("UITextSizeConstraint")
  553.     UITextSizeConstraint_1["MaxTextSize"] = 15
  554.     UITextSizeConstraint_1["Parent"] = Button
  555.    
  556.     local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  557.     UIAspectRatioConstraint["AspectRatio"] = 3.5923664569854736
  558.     UIAspectRatioConstraint["Parent"] = Button
  559.    
  560.     local UIAspectRatioConstraint_1 = Instance.new("UIAspectRatioConstraint")
  561.     UIAspectRatioConstraint_1["AspectRatio"] = 3.7082154750823975
  562.     UIAspectRatioConstraint_1["Parent"] = ViewKeybind
  563.    
  564.     local UIAspectRatioConstraint_2 = Instance.new("UIAspectRatioConstraint")
  565.     UIAspectRatioConstraint_2["AspectRatio"] = 6.634146213531494
  566.     UIAspectRatioConstraint_2["Parent"] = Keybind
  567.    
  568.     local Label_1 = Instance.new("Frame")
  569.     Label_1["BorderSizePixel"] = 0
  570.     Label_1["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  571.     Label_1["Name"] = "Label"
  572.     Label_1["Size"] = UDim2.new(0, 181, 0, 25)
  573.     Label_1["BackgroundTransparency"] = 0.10000000149011612
  574.     Label_1["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  575.     Label_1["Position"] = UDim2.new(0.2133532166481018, 0, 0.15854917466640472, 0)
  576.     Label_1["Parent"] = UI_Examples
  577.    
  578.     local UICorner_1 = Instance.new("UICorner")
  579.     UICorner_1["CornerRadius"] = UDim.new(0, 4)
  580.     UICorner_1["Parent"] = Label_1
  581.    
  582.     local UIGradient_1 = Instance.new("UIGradient")
  583.     UIGradient_1["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)) })
  584.     UIGradient_1["Parent"] = Label_1
  585.    
  586.     local Label_2 = Instance.new("TextLabel")
  587.     Label_2["TextWrapped"] = true
  588.     Label_2["BorderSizePixel"] = 0
  589.     Label_2["RichText"] = true
  590.     Label_2["Name"] = "Label"
  591.     Label_2["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  592.     Label_2["FontFace"] = Font.new("rbxassetid://12187360881", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  593.     Label_2["Size"] = UDim2.new(0.9079903364181519, 0, 0.5775953531265259, 0)
  594.     Label_2["Position"] = UDim2.new(0.04080722853541374, 0, 0.1931622326374054, 0)
  595.     Label_2["TextColor3"] = Color3.fromRGB(255, 255, 255)
  596.     Label_2["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  597.     Label_2["Text"] = "Example"
  598.     Label_2["BackgroundTransparency"] = 1
  599.     Label_2["TextSize"] = 14
  600.     Label_2["Parent"] = Label_1
  601.    
  602.     local UITextSizeConstraint_2 = Instance.new("UITextSizeConstraint")
  603.     UITextSizeConstraint_2["MaxTextSize"] = 17
  604.     UITextSizeConstraint_2["Parent"] = Label_2
  605.    
  606.     local Slider = Instance.new("Frame")
  607.     Slider["BorderSizePixel"] = 0
  608.     Slider["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  609.     Slider["Name"] = "Slider"
  610.     Slider["Size"] = UDim2.new(0, 305, 0, 52)
  611.     Slider["BackgroundTransparency"] = 1
  612.     Slider["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  613.     Slider["Position"] = UDim2.new(0.033602237701416016, 0, 0.0649019330739975, 0)
  614.     Slider["Parent"] = UI_Examples
  615.    
  616.     local ViewSlider = Instance.new("ImageButton")
  617.     ViewSlider["BorderSizePixel"] = 0
  618.     ViewSlider["Name"] = "ViewSlider"
  619.     ViewSlider["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  620.     ViewSlider["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  621.     ViewSlider["Size"] = UDim2.new(0.5929999947547913, 0, 0.4350000023841858, 0)
  622.     ViewSlider["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  623.     ViewSlider["ImageTransparency"] = 1
  624.     ViewSlider["Position"] = UDim2.new(0.20327869057655334, 0, 0.49191224575042725, 0)
  625.     ViewSlider["Parent"] = Slider
  626.    
  627.     local Label_3 = Instance.new("TextLabel")
  628.     Label_3["TextWrapped"] = true
  629.     Label_3["BorderSizePixel"] = 0
  630.     Label_3["Name"] = "Label"
  631.     Label_3["TextScaled"] = true
  632.     Label_3["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  633.     Label_3["FontFace"] = Font.new("rbxassetid://12187360881", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  634.     Label_3["Size"] = UDim2.new(1.0000004768371582, 0, 1.0139235258102417, 0)
  635.     Label_3["Position"] = UDim2.new(-0.005524936132133007, 0, -1.1642091274261475, 0)
  636.     Label_3["LayoutOrder"] = 100
  637.     Label_3["TextColor3"] = Color3.fromRGB(255, 255, 255)
  638.     Label_3["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  639.     Label_3["Text"] = "View"
  640.     Label_3["BackgroundTransparency"] = 1
  641.     Label_3["TextSize"] = 17
  642.     Label_3["Parent"] = ViewSlider
  643.    
  644.     local UITextSizeConstraint_3 = Instance.new("UITextSizeConstraint")
  645.     UITextSizeConstraint_3["MaxTextSize"] = 17
  646.     UITextSizeConstraint_3["Parent"] = Label_3
  647.    
  648.     local Button_1 = Instance.new("ImageButton")
  649.     Button_1["BorderSizePixel"] = 0
  650.     Button_1["Name"] = "Button"
  651.     Button_1["BackgroundColor3"] = Color3.fromRGB(107.00000122189522, 107.00000122189522, 107.00000122189522)
  652.     Button_1["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  653.     Button_1["Size"] = UDim2.new(0.5703652501106262, 0, 1.0141061544418335, 0)
  654.     Button_1["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  655.     Button_1["Position"] = UDim2.new(-6.744216420884186e-07, 0, -0.019752129912376404, 0)
  656.     Button_1["LayoutOrder"] = 1
  657.     Button_1["Parent"] = ViewSlider
  658.    
  659.     local UIGradient_2 = Instance.new("UIGradient")
  660.     UIGradient_2["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(60.00000022351742, 164.00000542402267, 255)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(35.00000171363354, 105.00000134110451, 255)) })
  661.     UIGradient_2["Parent"] = Button_1
  662.    
  663.     local UICorner_2 = Instance.new("UICorner")
  664.     UICorner_2["CornerRadius"] = UDim.new(0, 4)
  665.     UICorner_2["Parent"] = Button_1
  666.    
  667.     local UIGradient_3 = Instance.new("UIGradient")
  668.     UIGradient_3["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)) })
  669.     UIGradient_3["Parent"] = ViewSlider
  670.    
  671.     local UICorner_3 = Instance.new("UICorner")
  672.     UICorner_3["CornerRadius"] = UDim.new(0, 4)
  673.     UICorner_3["Parent"] = ViewSlider
  674.    
  675.     local Value = Instance.new("TextLabel")
  676.     Value["TextWrapped"] = true
  677.     Value["BorderSizePixel"] = 0
  678.     Value["Name"] = "Value"
  679.     Value["TextScaled"] = true
  680.     Value["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  681.     Value["FontFace"] = Font.new("rbxassetid://12187368843", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  682.     Value["Size"] = UDim2.new(0.42130911350250244, 0, 0.9000000357627869, 0)
  683.     Value["Position"] = UDim2.new(0.28419923782348633, 0, 0, 0)
  684.     Value["LayoutOrder"] = 100
  685.     Value["TextColor3"] = Color3.fromRGB(255, 255, 255)
  686.     Value["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  687.     Value["Text"] = "1/100"
  688.     Value["BackgroundTransparency"] = 1
  689.     Value["TextSize"] = 17
  690.     Value["Parent"] = ViewSlider
  691.    
  692.     local UITextSizeConstraint_4 = Instance.new("UITextSizeConstraint")
  693.     UITextSizeConstraint_4["MaxTextSize"] = 16
  694.     UITextSizeConstraint_4["Parent"] = Value
  695.    
  696.     local UIAspectRatioConstraint_3 = Instance.new("UIAspectRatioConstraint")
  697.     UIAspectRatioConstraint_3["AspectRatio"] = 7.995800018310547
  698.     UIAspectRatioConstraint_3["Parent"] = ViewSlider
  699.    
  700.     local UIAspectRatioConstraint_4 = Instance.new("UIAspectRatioConstraint")
  701.     UIAspectRatioConstraint_4["AspectRatio"] = 5.865384578704834
  702.     UIAspectRatioConstraint_4["Parent"] = Slider
  703.    
  704.     local Toggle = Instance.new("Frame")
  705.     Toggle["BorderSizePixel"] = 0
  706.     Toggle["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  707.     Toggle["Name"] = "Toggle"
  708.     Toggle["Size"] = UDim2.new(0, 305, 0, 35)
  709.     Toggle["BackgroundTransparency"] = 1
  710.     Toggle["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  711.     Toggle["Position"] = UDim2.new(0.033602237701416016, 0, 0.17700520157814026, 0)
  712.     Toggle["Parent"] = UI_Examples
  713.    
  714.     local ViewToggle = Instance.new("ImageButton")
  715.     ViewToggle["BorderSizePixel"] = 0
  716.     ViewToggle["Name"] = "ViewToggle"
  717.     ViewToggle["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  718.     ViewToggle["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  719.     ViewToggle["Size"] = UDim2.new(0.16853027045726776, 0, 0.5778570771217346, 0)
  720.     ViewToggle["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  721.     ViewToggle["ImageTransparency"] = 1
  722.     ViewToggle["Position"] = UDim2.new(0.6262291073799133, 0, 0.08806588500738144, 0)
  723.     ViewToggle["Parent"] = Toggle
  724.    
  725.     local Label_4 = Instance.new("TextLabel")
  726.     Label_4["TextWrapped"] = true
  727.     Label_4["BorderSizePixel"] = 0
  728.     Label_4["Name"] = "Label"
  729.     Label_4["TextScaled"] = true
  730.     Label_4["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  731.     Label_4["FontFace"] = Font.new("rbxassetid://12187360881", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  732.     Label_4["Size"] = UDim2.new(2.33683705329895, 0, 1.5443432331085205, 0)
  733.     Label_4["Position"] = UDim2.new(-2.529090404510498, 0, -0.27982988953590393, 0)
  734.     Label_4["LayoutOrder"] = 100
  735.     Label_4["TextColor3"] = Color3.fromRGB(255, 255, 255)
  736.     Label_4["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  737.     Label_4["Text"] = "Fly"
  738.     Label_4["BackgroundTransparency"] = 1
  739.     Label_4["TextSize"] = 17
  740.     Label_4["Parent"] = ViewToggle
  741.    
  742.     local UITextSizeConstraint_5 = Instance.new("UITextSizeConstraint")
  743.     UITextSizeConstraint_5["MaxTextSize"] = 17
  744.     UITextSizeConstraint_5["Parent"] = Label_4
  745.    
  746.     local Button_2 = Instance.new("ImageButton")
  747.     Button_2["BorderSizePixel"] = 0
  748.     Button_2["Name"] = "Button"
  749.     Button_2["BackgroundColor3"] = Color3.fromRGB(107.00000122189522, 107.00000122189522, 107.00000122189522)
  750.     Button_2["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  751.     Button_2["Size"] = UDim2.new(0.4749999940395355, 0, 1.0140000581741333, 0)
  752.     Button_2["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  753.     Button_2["ImageTransparency"] = 0.20000000298023224
  754.     Button_2["Position"] = UDim2.new(0.5249999761581421, 0, -0.019999999552965164, 0)
  755.     Button_2["LayoutOrder"] = 1
  756.     Button_2["Parent"] = ViewToggle
  757.    
  758.     local UIGradient_4 = Instance.new("UIGradient")
  759.     UIGradient_4["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(60.00000022351742, 164.00000542402267, 255)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(35.00000171363354, 105.00000134110451, 255)) })
  760.     UIGradient_4["Parent"] = Button_2
  761.    
  762.     local UICorner_4 = Instance.new("UICorner")
  763.     UICorner_4["CornerRadius"] = UDim.new(0, 4)
  764.     UICorner_4["Parent"] = Button_2
  765.    
  766.     local UIAspectRatioConstraint_5 = Instance.new("UIAspectRatioConstraint")
  767.     UIAspectRatioConstraint_5["AspectRatio"] = 1.190542459487915
  768.     UIAspectRatioConstraint_5["Parent"] = Button_2
  769.    
  770.     local UIGradient_5 = Instance.new("UIGradient")
  771.     UIGradient_5["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)) })
  772.     UIGradient_5["Parent"] = ViewToggle
  773.    
  774.     local UICorner_5 = Instance.new("UICorner")
  775.     UICorner_5["CornerRadius"] = UDim.new(0, 4)
  776.     UICorner_5["Parent"] = ViewToggle
  777.    
  778.     local UIAspectRatioConstraint_6 = Instance.new("UIAspectRatioConstraint")
  779.     UIAspectRatioConstraint_6["AspectRatio"] = 2.5414950847625732
  780.     UIAspectRatioConstraint_6["Parent"] = ViewToggle
  781.    
  782.     local UIAspectRatioConstraint_7 = Instance.new("UIAspectRatioConstraint")
  783.     UIAspectRatioConstraint_7["AspectRatio"] = 8.714285850524902
  784.     UIAspectRatioConstraint_7["Parent"] = Toggle
  785.    
  786.     local Button_3 = Instance.new("ImageButton")
  787.     Button_3["BorderSizePixel"] = 0
  788.     Button_3["Name"] = "Button"
  789.     Button_3["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  790.     Button_3["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  791.     Button_3["Size"] = UDim2.new(0, 181, 0, 25)
  792.     Button_3["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  793.     Button_3["ImageTransparency"] = 1
  794.     Button_3["BackgroundTransparency"] = 0.10000000149011612
  795.     Button_3["Parent"] = UI_Examples
  796.    
  797.     local Label_5 = Instance.new("TextLabel")
  798.     Label_5["TextWrapped"] = true
  799.     Label_5["BorderSizePixel"] = 0
  800.     Label_5["Name"] = "Label"
  801.     Label_5["TextScaled"] = true
  802.     Label_5["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  803.     Label_5["FontFace"] = Font.new("rbxassetid://12187360881", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  804.     Label_5["Size"] = UDim2.new(0.45495179295539856, 0, 0.5775954127311707, 0)
  805.     Label_5["Position"] = UDim2.new(0.2673265039920807, 0, 0.19316236674785614, 0)
  806.     Label_5["TextColor3"] = Color3.fromRGB(255, 255, 255)
  807.     Label_5["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  808.     Label_5["Text"] = "Click Me"
  809.     Label_5["BackgroundTransparency"] = 1
  810.     Label_5["TextSize"] = 17
  811.     Label_5["Parent"] = Button_3
  812.    
  813.     local UITextSizeConstraint_6 = Instance.new("UITextSizeConstraint")
  814.     UITextSizeConstraint_6["MaxTextSize"] = 17
  815.     UITextSizeConstraint_6["Parent"] = Label_5
  816.    
  817.     local UIGradient_6 = Instance.new("UIGradient")
  818.     UIGradient_6["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)) })
  819.     UIGradient_6["Parent"] = Button_3
  820.    
  821.     local UICorner_6 = Instance.new("UICorner")
  822.     UICorner_6["CornerRadius"] = UDim.new(0, 4)
  823.     UICorner_6["Parent"] = Button_3
  824.    
  825.     local UIAspectRatioConstraint_8 = Instance.new("UIAspectRatioConstraint")
  826.     UIAspectRatioConstraint_8["AspectRatio"] = 7.239999771118164
  827.     UIAspectRatioConstraint_8["Parent"] = Button_3
  828.    
  829.     local Section = Instance.new("Frame")
  830.     Section["BorderSizePixel"] = 0
  831.     Section["BackgroundColor3"] = Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)
  832.     Section["Name"] = "Section"
  833.     Section["Size"] = UDim2.new(1.0000001192092896, 0, 0.2596045434474945, 0)
  834.     Section["BackgroundTransparency"] = 0.4000000059604645
  835.     Section["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  836.     Section["Position"] = UDim2.new(-4.314098589475179e-08, 0, -1.0403466532693528e-08, 0)
  837.     Section["Parent"] = UI_Examples
  838.    
  839.     local UICorner_7 = Instance.new("UICorner")
  840.     UICorner_7["CornerRadius"] = UDim.new(0, 0)
  841.     UICorner_7["Parent"] = Section
  842.    
  843.     local _Frame = Instance.new("ScrollingFrame")
  844.     _Frame["Active"] = true
  845.     _Frame["BorderSizePixel"] = 0
  846.     _Frame["Name"] = "_Frame"
  847.     _Frame["Size"] = UDim2.new(0.9612776041030884, 0, 0.88478022813797, 0)
  848.     _Frame["ScrollBarImageColor3"] = Color3.fromRGB(0, 0, 0)
  849.     _Frame["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  850.     _Frame["ScrollBarThickness"] = 1
  851.     _Frame["BackgroundTransparency"] = 1
  852.     _Frame["Position"] = UDim2.new(0.019791053608059883, 0, 0.09656893461942673, 0)
  853.     _Frame["BackgroundColor3"] = Color3.fromRGB(0, 0, 0)
  854.     _Frame["Parent"] = Section
  855.     handleChildSize(_Frame, _Frame)
  856.  
  857.     local UIListLayout = Instance.new("UIListLayout")
  858.     UIListLayout["HorizontalAlignment"] = Enum.HorizontalAlignment.Center
  859.     UIListLayout["Padding"] = UDim.new(0, 1)
  860.     UIListLayout["SortOrder"] = Enum.SortOrder.LayoutOrder
  861.     UIListLayout["Parent"] = _Frame
  862.    
  863.     local Label_6 = Instance.new("TextButton")
  864.     Label_6["TextWrapped"] = true
  865.     Label_6["BorderSizePixel"] = 0
  866.     Label_6["Name"] = "Label"
  867.     Label_6["TextSize"] = 15
  868.     Label_6["TextScaled"] = true
  869.     Label_6["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  870.     Label_6["FontFace"] = Font.new("rbxassetid://12187360881", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  871.     Label_6["Size"] = UDim2.new(0.8821135759353638, 0, 0.057419367134571075, 0)
  872.     Label_6["Position"] = UDim2.new(0.05654578655958176, 0, 0.013049855828285217, 0)
  873.     Label_6["TextColor3"] = Color3.fromRGB(255, 255, 255)
  874.     Label_6["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  875.     Label_6["Text"] = "Home Tab"
  876.     Label_6["BackgroundTransparency"] = 1
  877.     Label_6["Parent"] = Section
  878.    
  879.     local UITextSizeConstraint_7 = Instance.new("UITextSizeConstraint")
  880.     UITextSizeConstraint_7["MaxTextSize"] = 15
  881.     UITextSizeConstraint_7["Parent"] = Label_6
  882.    
  883.     local Line = Instance.new("Frame")
  884.     Line["BackgroundColor3"] = Color3.fromRGB(0, 0, 0)
  885.     Line["Name"] = "Line"
  886.     Line["Size"] = UDim2.new(0.29216468334198, 0, 0.0013550135772675276, 0)
  887.     Line["BorderColor3"] = Color3.fromRGB(255, 255, 255)
  888.     Line["Position"] = UDim2.new(0.353349506855011, 0, 0.07307261973619461, 0)
  889.     Line["Parent"] = Section
  890.    
  891.     -------------------------------------------
  892.  
  893.     local ColorPicker = Instance.new("Frame")
  894.     ColorPicker["BorderSizePixel"] = 0
  895.     ColorPicker["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  896.     ColorPicker["Name"] = "ColorPicker"
  897.     ColorPicker["Size"] = UDim2.new(0, 186, 0, 33)
  898.     ColorPicker["BackgroundTransparency"] = 1
  899.     ColorPicker["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  900.     ColorPicker["Position"] = UDim2.new(0.21557384729385376, 0, 0.2920585572719574, 0)
  901.     ColorPicker["Parent"] = Examples
  902.    
  903.     local ViewColor = Instance.new("ImageButton")
  904.     ViewColor["BorderSizePixel"] = 0
  905.     ViewColor["Name"] = "ViewColor"
  906.     ViewColor["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  907.     ViewColor["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  908.     ViewColor["Size"] = UDim2.new(0, 181, 0, 102)
  909.     ViewColor["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  910.     ViewColor["ImageTransparency"] = 1
  911.     ViewColor["Position"] = UDim2.new(0, 2, 0, 6)
  912.     ViewColor["BackgroundTransparency"] = 0.10000000149011612
  913.     ViewColor["Parent"] = ColorPicker
  914.    
  915.     local Label = Instance.new("TextLabel")
  916.     Label["TextWrapped"] = true
  917.     Label["BorderSizePixel"] = 0
  918.     Label["Name"] = "Label"
  919.     Label["TextScaled"] = true
  920.     Label["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  921.     Label["FontFace"] = Font.new("rbxassetid://12187360881", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  922.     Label["Size"] = UDim2.new(0.7607182264328003, 0, 0.5775953531265259, 0)
  923.     Label["Position"] = UDim2.new(0.04080655425786972, 0, 0.19316284358501434, 0)
  924.     Label["TextColor3"] = Color3.fromRGB(255, 255, 255)
  925.     Label["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  926.     Label["Text"] = "Color Picker"
  927.     Label["BackgroundTransparency"] = 1
  928.     Label["TextXAlignment"] = Enum.TextXAlignment.Left
  929.     Label["TextSize"] = 17
  930.     Label["Parent"] = ViewColor
  931.    
  932.     local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
  933.     UITextSizeConstraint["MaxTextSize"] = 17
  934.     UITextSizeConstraint["Parent"] = Label
  935.    
  936.     local UIGradient = Instance.new("UIGradient")
  937.     UIGradient["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)) })
  938.     UIGradient["Parent"] = ViewColor
  939.    
  940.     local UICorner = Instance.new("UICorner")
  941.     UICorner["CornerRadius"] = UDim.new(0, 2)
  942.     UICorner["Parent"] = ViewColor
  943.    
  944.     local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  945.     UIAspectRatioConstraint["AspectRatio"] = 7.239999771118164
  946.     UIAspectRatioConstraint["Parent"] = ViewColor
  947.    
  948.     local Frame = Instance.new("Frame")
  949.     Frame["BorderSizePixel"] = 0
  950.     Frame["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  951.     Frame["Size"] = UDim2.new(0, 181, 0, 1)
  952.     Frame["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  953.     Frame["Visible"] = false
  954.     Frame["Position"] = UDim2.new(-0.0027583844494074583, 0, 0.9709985256195068, 0)
  955.     Frame["Parent"] = ViewColor
  956.    
  957.     local UIGradient_1 = Instance.new("UIGradient")
  958.     UIGradient_1["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)) })
  959.     UIGradient_1["Parent"] = Frame
  960.    
  961.     local UICorner_1 = Instance.new("UICorner")
  962.     UICorner_1["CornerRadius"] = UDim.new(0, 0)
  963.     UICorner_1["Parent"] = Frame
  964.    
  965.     local ColourWheel = Instance.new("ImageButton")
  966.     ColourWheel["Active"] = false
  967.     ColourWheel["BorderSizePixel"] = 0
  968.     ColourWheel["Name"] = "ColourWheel"
  969.     ColourWheel["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  970.     ColourWheel["Selectable"] = false
  971.     ColourWheel["AnchorPoint"] = Vector2.new(0.5, 0.5)
  972.     ColourWheel["Image"] = "http://www.roblox.com/asset/?id=6020299385"
  973.     ColourWheel["Size"] = UDim2.new(0.4989059567451477, 0, 0.576551616191864, 0)
  974.     ColourWheel["ImageTransparency"] = 0.20000000298023224
  975.     ColourWheel["Position"] = UDim2.new(0.3513452708721161, 0, 0.38342663645744324, 0)
  976.     ColourWheel["BackgroundTransparency"] = 1
  977.     ColourWheel["Parent"] = Frame
  978.    
  979.     local UIAspectRatioConstraint_1 = Instance.new("UIAspectRatioConstraint")
  980.     UIAspectRatioConstraint_1["AspectRatio"] = 0.9999999403953552
  981.     UIAspectRatioConstraint_1["Parent"] = ColourWheel
  982.    
  983.     local Picker = Instance.new("ImageLabel")
  984.     Picker["BorderSizePixel"] = 0
  985.     Picker["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  986.     Picker["Name"] = "Picker"
  987.     Picker["AnchorPoint"] = Vector2.new(0.5, 0.5)
  988.     Picker["Image"] = "http://www.roblox.com/asset/?id=3678860011"
  989.     Picker["Size"] = UDim2.new(0.09002578258514404, 0, 0.09002579748630524, 0)
  990.     Picker["BackgroundTransparency"] = 1
  991.     Picker["Position"] = UDim2.new(0.5000001192092896, 0, 0.4915757179260254, 0)
  992.     Picker["Parent"] = ColourWheel
  993.    
  994.     local DarknessPicker = Instance.new("ImageButton")
  995.     DarknessPicker["BorderSizePixel"] = 0
  996.     DarknessPicker["Name"] = "DarknessPicker"
  997.     DarknessPicker["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  998.     DarknessPicker["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  999.     DarknessPicker["Size"] = UDim2.new(0.09908635914325714, 0, 0.5836986303329468, 0)
  1000.     DarknessPicker["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1001.     DarknessPicker["ImageTransparency"] = 1
  1002.     DarknessPicker["Position"] = UDim2.new(0.7619521021842957, 0, 0.1122029647231102, 0)
  1003.     DarknessPicker["Parent"] = Frame
  1004.    
  1005.     local Slider = Instance.new("ImageLabel")
  1006.     Slider["ZIndex"] = 2
  1007.     Slider["BorderSizePixel"] = 0
  1008.     Slider["SliceCenter"] = Rect.new(100, 100, 100, 100)
  1009.     Slider["ScaleType"] = Enum.ScaleType.Slice
  1010.     Slider["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1011.     Slider["Name"] = "Slider"
  1012.     Slider["ImageTransparency"] = 0.20000000298023224
  1013.     Slider["AnchorPoint"] = Vector2.new(0.5, 0.5)
  1014.     Slider["Image"] = "rbxassetid://3570695787"
  1015.     Slider["Size"] = UDim2.new(1.000001072883606, 0, 0.02650105394423008, 0)
  1016.     Slider["ImageColor3"] = Color3.fromRGB(86.00000247359276, 86.00000247359276, 86.00000247359276)
  1017.     Slider["BackgroundTransparency"] = 1
  1018.     Slider["Position"] = UDim2.new(0.5000037550926208, 0, 0.07336077094078064, 0)
  1019.     Slider["SliceScale"] = 0.11999999731779099
  1020.     Slider["Parent"] = DarknessPicker
  1021.    
  1022.     local UIGradient_2 = Instance.new("UIGradient")
  1023.     UIGradient_2["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0)) })
  1024.     UIGradient_2["Rotation"] = 90
  1025.     UIGradient_2["Parent"] = DarknessPicker
  1026.    
  1027.     local UICorner_2 = Instance.new("UICorner")
  1028.     UICorner_2["CornerRadius"] = UDim.new(0, 4)
  1029.     UICorner_2["Parent"] = DarknessPicker
  1030.    
  1031.     local R = Instance.new("TextBox")
  1032.     R["BorderSizePixel"] = 0
  1033.     R["TextEditable"] = false
  1034.     R["Name"] = "R"
  1035.     R["BackgroundColor3"] = Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)
  1036.     R["FontFace"] = Font.new("rbxassetid://12187368843", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  1037.     R["Size"] = UDim2.new(0, 32, 0, 17)
  1038.     R["Position"] = UDim2.new(0.14917127788066864, 0, 0.8080062866210938, 0)
  1039.     R["TextSize"] = 13
  1040.     R["TextColor3"] = Color3.fromRGB(255, 255, 255)
  1041.     R["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1042.     R["Text"] = "255"
  1043.     R["ClearTextOnFocus"] = false
  1044.     R["Parent"] = Frame
  1045.    
  1046.     local TextLabel = Instance.new("TextLabel")
  1047.     TextLabel["BorderSizePixel"] = 0
  1048.     TextLabel["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1049.     TextLabel["FontFace"] = Font.new("rbxasset://fonts/families/Balthazar.json", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  1050.     TextLabel["Size"] = UDim2.new(0, 19, 0, 17)
  1051.     TextLabel["Position"] = UDim2.new(-0.7738265991210938, 0, 0, 0)
  1052.     TextLabel["TextColor3"] = Color3.fromRGB(255, 255, 255)
  1053.     TextLabel["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1054.     TextLabel["Text"] = "R"
  1055.     TextLabel["Font"] = Enum.Font.Fantasy
  1056.     TextLabel["BackgroundTransparency"] = 1
  1057.     TextLabel["TextSize"] = 16
  1058.     TextLabel["Parent"] = R
  1059.    
  1060.     local G = Instance.new("TextBox")
  1061.     G["BorderSizePixel"] = 0
  1062.     G["TextEditable"] = false
  1063.     G["Name"] = "G"
  1064.     G["BackgroundColor3"] = Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)
  1065.     G["FontFace"] = Font.new("rbxassetid://12187368843", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  1066.     G["Size"] = UDim2.new(0, 32, 0, 17)
  1067.     G["Position"] = UDim2.new(0.49000000953674316, 0, 0.8080000281333923, 0)
  1068.     G["TextSize"] = 13
  1069.     G["TextColor3"] = Color3.fromRGB(255, 255, 255)
  1070.     G["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1071.     G["Text"] = "255"
  1072.     G["ClearTextOnFocus"] = false
  1073.     G["Parent"] = Frame
  1074.    
  1075.     local TextLabel_1 = Instance.new("TextLabel")
  1076.     TextLabel_1["BorderSizePixel"] = 0
  1077.     TextLabel_1["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1078.     TextLabel_1["FontFace"] = Font.new("rbxasset://fonts/families/Balthazar.json", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  1079.     TextLabel_1["Size"] = UDim2.new(0, 19, 0, 17)
  1080.     TextLabel_1["Position"] = UDim2.new(-0.7738265991210938, 0, 0, 0)
  1081.     TextLabel_1["TextColor3"] = Color3.fromRGB(255, 255, 255)
  1082.     TextLabel_1["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1083.     TextLabel_1["Text"] = "G"
  1084.     TextLabel_1["Font"] = Enum.Font.Fantasy
  1085.     TextLabel_1["BackgroundTransparency"] = 1
  1086.     TextLabel_1["TextSize"] = 16
  1087.     TextLabel_1["Parent"] = G
  1088.    
  1089.     local B = Instance.new("TextBox")
  1090.     B["BorderSizePixel"] = 0
  1091.     B["TextEditable"] = false
  1092.     B["Name"] = "B"
  1093.     B["BackgroundColor3"] = Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)
  1094.     B["FontFace"] = Font.new("rbxassetid://12187368843", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  1095.     B["Size"] = UDim2.new(0, 32, 0, 17)
  1096.     B["Position"] = UDim2.new(0.7979999780654907, 0, 0.8080000281333923, 0)
  1097.     B["TextSize"] = 13
  1098.     B["TextColor3"] = Color3.fromRGB(255, 255, 255)
  1099.     B["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1100.     B["Text"] = "255"
  1101.     B["ClearTextOnFocus"] = false
  1102.     B["Parent"] = Frame
  1103.    
  1104.     local TextLabel_2 = Instance.new("TextLabel")
  1105.     TextLabel_2["BorderSizePixel"] = 0
  1106.     TextLabel_2["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1107.     TextLabel_2["FontFace"] = Font.new("rbxasset://fonts/families/Balthazar.json", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  1108.     TextLabel_2["Size"] = UDim2.new(0, 19, 0, 17)
  1109.     TextLabel_2["Position"] = UDim2.new(-0.7738265991210938, 0, 0, 0)
  1110.     TextLabel_2["TextColor3"] = Color3.fromRGB(255, 255, 255)
  1111.     TextLabel_2["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1112.     TextLabel_2["Text"] = "B"
  1113.     TextLabel_2["Font"] = Enum.Font.Fantasy
  1114.     TextLabel_2["BackgroundTransparency"] = 1
  1115.     TextLabel_2["TextSize"] = 16
  1116.     TextLabel_2["Parent"] = B
  1117.    
  1118.     local ColorDisplay = Instance.new("ImageLabel")
  1119.     ColorDisplay["BorderSizePixel"] = 0
  1120.     ColorDisplay["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1121.     ColorDisplay["Name"] = "ColorDisplay"
  1122.     ColorDisplay["ImageTransparency"] = 1
  1123.     ColorDisplay["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  1124.     ColorDisplay["Size"] = UDim2.new(0, 24, 0, 17)
  1125.     ColorDisplay["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1126.     ColorDisplay["Position"] = UDim2.new(0.8313602209091187, 0, 0.15369506180286407, 0)
  1127.     ColorDisplay["Parent"] = ViewColor
  1128.    
  1129.     local UICorner_3 = Instance.new("UICorner")
  1130.     UICorner_3["CornerRadius"] = UDim.new(0, 4)
  1131.     UICorner_3["Parent"] = ColorDisplay
  1132.    
  1133.     local Line = Instance.new("Frame")
  1134.     Line["BorderSizePixel"] = 0
  1135.     Line["BackgroundColor3"] = Color3.fromRGB(0, 0, 0)
  1136.     Line["Name"] = "Line"
  1137.     Line["Size"] = UDim2.new(0, 178, 0, 1)
  1138.     Line["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1139.     Line["Position"] = UDim2.new(0.01104770042002201, 0, 0.9709985256195068, 0)
  1140.     Line["Parent"] = ViewColor
  1141.    
  1142.     ------------------------------------------------
  1143.  
  1144.  
  1145.     local Dropdown = Instance.new("Frame")
  1146.     Dropdown["BorderSizePixel"] = 0
  1147.     Dropdown["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1148.     Dropdown["Name"] = "Dropdown"
  1149.     Dropdown["Size"] = UDim2.new(0, 186, 0, 32)
  1150.     Dropdown["BackgroundTransparency"] = 1
  1151.     Dropdown["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1152.     Dropdown["Position"] = UDim2.new(0.21557384729385376, 0, 0.2920585572719574, 0)
  1153.     Dropdown["Parent"] = Examples
  1154.    
  1155.     local ViewDropdown = Instance.new("ImageButton")
  1156.     ViewDropdown["BorderSizePixel"] = 0
  1157.     ViewDropdown["Name"] = "ViewDropdown"
  1158.     ViewDropdown["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1159.     ViewDropdown["Image"] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  1160.     ViewDropdown["Size"] = UDim2.new(0, 181, 0, 102)
  1161.     ViewDropdown["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1162.     ViewDropdown["ImageTransparency"] = 1
  1163.     ViewDropdown["Position"] = UDim2.new(0, 2, 0, 6)
  1164.     ViewDropdown["BackgroundTransparency"] = 0.10000000149011612
  1165.     ViewDropdown["Parent"] = Dropdown
  1166.    
  1167.     local Label = Instance.new("TextLabel")
  1168.     Label["TextWrapped"] = true
  1169.     Label["BorderSizePixel"] = 0
  1170.     Label["Name"] = "Label"
  1171.     Label["TextScaled"] = true
  1172.     Label["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1173.     Label["FontFace"] = Font.new("rbxassetid://12187360881", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  1174.     Label["Size"] = UDim2.new(0.7767943739891052, 0, 0.5775953531265259, 0)
  1175.     Label["Position"] = UDim2.new(0.04080655425786972, 0, 0.19316284358501434, 0)
  1176.     Label["TextColor3"] = Color3.fromRGB(255, 255, 255)
  1177.     Label["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1178.     Label["Text"] = "Dropdown"
  1179.     Label["BackgroundTransparency"] = 1
  1180.     Label["TextXAlignment"] = Enum.TextXAlignment.Left
  1181.     Label["TextSize"] = 17
  1182.     Label["Parent"] = ViewDropdown
  1183.    
  1184.     local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
  1185.     UITextSizeConstraint["MaxTextSize"] = 17
  1186.     UITextSizeConstraint["Parent"] = Label
  1187.    
  1188.     local UIGradient = Instance.new("UIGradient")
  1189.     UIGradient["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)) })
  1190.     UIGradient["Parent"] = ViewDropdown
  1191.    
  1192.     local UICorner = Instance.new("UICorner")
  1193.     UICorner["CornerRadius"] = UDim.new(0, 2)
  1194.     UICorner["Parent"] = ViewDropdown
  1195.    
  1196.     local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  1197.     UIAspectRatioConstraint["AspectRatio"] = 7.239999771118164
  1198.     UIAspectRatioConstraint["Parent"] = ViewDropdown
  1199.    
  1200.     local Symbol = Instance.new("TextLabel")
  1201.     Symbol["TextWrapped"] = true
  1202.     Symbol["BorderSizePixel"] = 0
  1203.     Symbol["Name"] = "Symbol"
  1204.     Symbol["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1205.     Symbol["FontFace"] = Font.new("rbxassetid://12187360881", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  1206.     Symbol["Size"] = UDim2.new(0.09944687783718109, 0, 0.5775953531265259, 0)
  1207.     Symbol["Position"] = UDim2.new(0.9004735946655273, 0, 0.19316284358501434, 0)
  1208.     Symbol["TextColor3"] = Color3.fromRGB(255, 255, 255)
  1209.     Symbol["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1210.     Symbol["Text"] = ">"
  1211.     Symbol["BackgroundTransparency"] = 1
  1212.     Symbol["TextXAlignment"] = Enum.TextXAlignment.Left
  1213.     Symbol["TextSize"] = 16
  1214.     Symbol["Parent"] = ViewDropdown
  1215.    
  1216.     local UITextSizeConstraint_1 = Instance.new("UITextSizeConstraint")
  1217.     UITextSizeConstraint_1["MaxTextSize"] = 17
  1218.     UITextSizeConstraint_1["Parent"] = Symbol
  1219.    
  1220.     local Frame = Instance.new("Frame")
  1221.     Frame["BorderSizePixel"] = 0
  1222.     Frame["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1223.     Frame["Size"] = UDim2.new(0, 181, 0, 0)
  1224.     Frame["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1225.     Frame["Visible"] = false
  1226.     Frame["Position"] = UDim2.new(-0.002761082025244832, 0, 0.9710034132003784, 0)
  1227.     Frame["Parent"] = ViewDropdown
  1228.    
  1229.     local UIGradient_1 = Instance.new("UIGradient")
  1230.     UIGradient_1["Color"] = ColorSequence.new({  ColorSequenceKeypoint.new(0, Color3.fromRGB(20.000000707805157, 20.000000707805157, 20.000000707805157)) , ColorSequenceKeypoint.new(1, Color3.fromRGB(10.000000353902578, 10.000000353902578, 10.000000353902578)) })
  1231.     UIGradient_1["Parent"] = Frame
  1232.    
  1233.     local UICorner_1 = Instance.new("UICorner")
  1234.     UICorner_1["CornerRadius"] = UDim.new(0, 0)
  1235.     UICorner_1["Parent"] = Frame
  1236.    
  1237.     local Button = Instance.new("TextButton")
  1238.     Button["BorderSizePixel"] = 0
  1239.     Button["Name"] = "Button"
  1240.     Button["TextSize"] = 17
  1241.     Button["TextYAlignment"] = Enum.TextYAlignment.Bottom
  1242.     Button["BackgroundColor3"] = Color3.fromRGB(255, 255, 255)
  1243.     Button["FontFace"] = Font.new("rbxassetid://12187373592", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
  1244.     Button["Size"] = UDim2.new(0, 180, 0, 21)
  1245.     Button["TextColor3"] = Color3.fromRGB(17.00000088661909, 117.00000062584877, 167.00000524520874)
  1246.     Button["BorderColor3"] = Color3.fromRGB(0, 0, 0)
  1247.     Button["BackgroundTransparency"] = 1
  1248.     Button["Parent"] = Frame
  1249.    
  1250.     local UIListLayout = Instance.new("UIListLayout")
  1251.     UIListLayout["Padding"] = UDim.new(0, 2)
  1252.     UIListLayout["SortOrder"] = Enum.SortOrder.LayoutOrder
  1253.     UIListLayout["Parent"] = Frame 
  1254.    
  1255.    
  1256. end
  1257.  
  1258. do -- UI Functions
  1259.  
  1260.     local _UIExist = tick()
  1261.     local UIExist = function()
  1262.         return (pcall(function()return Part.Name, Part.Parent~=nil and Part or error() end))
  1263.     end
  1264.  
  1265.     function Library:Slider( Data: { Text: string, Tab: Frame, Callback: { text: string } }, Min: number, Max: number, Minimum: number, Maximum: number )
  1266.  
  1267.         Data = type(Data)=="table" and Data or {}
  1268.         Data.Name = Data.Name or Data.Text or "Example"
  1269.         Data.Tab = Data.Tab and (function() for i,v in next, Frame:GetDescendants() do if v.ClassName:find("Frame") and v.Name==Data.Tab then return v end end end)() or Frame:FindFirstChild("Right")
  1270.         --Data.Tab = Data.Tab and (function() for i,v in next, Frame:GetDescendants() do if v.ClassName:find("Frame") and v.Name==Data.Tab then return v end end end)() or Frame:FindFirstChild("Right")
  1271.    
  1272.         Data.Min = Data.Min or Data.Minimum or Data.min or Data.minimum or 1
  1273.         Data.Max = Data.Max or Data.Maximum or Data.max or Data.maximum or 10
  1274.    
  1275.         Data.Min = Data.Min > -1 and Data.Min or 1
  1276.         Data.Max = Data.Max > Data.Min and Data.Max or Data.Min + 10
  1277.         Data.Value = Data.Value and ( Data.Value >= Data.Min and Data.Value <= Data.Max ) and Data.Value or math.random(Data.Min, Data.Max)
  1278.    
  1279.         Data.Position = Data.Position or nil
  1280.         Data.Callback = Data.Callback or function() end
  1281.         Data.Step = Data.Step and Data.Step/100 or 0.01
  1282.    
  1283.         local SliderExample = Examples:FindFirstChild("Slider")
  1284.         local SliderDown = false
  1285.         if not SliderExample then return; end
  1286.    
  1287.         SliderExample = SliderExample:Clone()
  1288.         SliderExample.Name = Data.Name
  1289.         SliderExample.Visible = true
  1290.    
  1291.         SliderExample.ViewSlider.Label.Text = Data.Name
  1292.         SliderExample.ViewSlider.Value.Text = `{Data.Min}/{Data.Max}`
  1293.         SliderExample.ViewSlider.Position = Data.Position or SliderExample.ViewSlider.Position
  1294.         SliderExample.Parent = (Data.Tab:FindFirstChildOfClass("ScrollingFrame") and Data.Tab:FindFirstChildOfClass("ScrollingFrame"):FindFirstChildOfClass("ScrollingFrame") or Data.Tab:FindFirstChildOfClass("ScrollingFrame")) or Data.Tab
  1295.    
  1296.         local bar = SliderExample
  1297.         local mouse = Mouse.Mouse
  1298.        
  1299.         local MouseWasDown = false
  1300.         local cachedValue = Data.Value
  1301.         local prevalue = Data.Value
  1302.        
  1303.         HandleEvent(bar.MouseEnter:Connect(function()
  1304.             SliderDown = true
  1305.         end))
  1306.        
  1307.         HandleEvent(bar.MouseMoved:Connect(function(X, Y)
  1308.            
  1309.             if not UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) then return; end
  1310.             if not SliderDown then return; end
  1311.             if not UIExist() then return; end
  1312.            
  1313.             MouseWasDown = true
  1314.             local percent = ((X) - bar.ViewSlider.AbsolutePosition.X) / bar.ViewSlider.AbsoluteSize.X
  1315.             if cachedValue then percent = (Data.Value - Data.Min) / (Data.Max - Data.Min) end
  1316.    
  1317.             percent = math.clamp(percent, 0, 1)
  1318.             local value = cachedValue or math.floor(Data.Min + (Data.Max - Data.Min) * percent)
  1319.    
  1320.             if value ~= (string.split(SliderExample.ViewSlider.Value.Text, "/")[1] or Min) then
  1321.                 if not Data.WaitForMouse then
  1322.                     local called, message = pcall(Data.Callback, tonumber(value), Data, prevalue)
  1323.                     if not called then
  1324.                         warn("[ Linui Library: Slider Bug ] "..Data.Name..": "..message)
  1325.                     end
  1326.                     prevalue = tonumber(Data.Value)
  1327.                 end
  1328.             end
  1329.            
  1330.             SliderExample.ViewSlider.Value.Text = `{value}/{Data.Max}`
  1331.             TS:Create(bar.ViewSlider.Button, TweenInfo.new(0.1), { Size = UDim2.new(percent, 0, 1, 0) }):Play()
  1332.            
  1333.             Data.Value = value
  1334.             cachedValue = nil
  1335.            
  1336.         end))
  1337.        
  1338.         HandleEvent(bar.MouseLeave:Connect(function()
  1339.             SliderDown = false
  1340.         end))
  1341.        
  1342.         WrapFunction(function()
  1343.             while task.wait() do
  1344.                 if not UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) then
  1345.                     if MouseWasDown then
  1346.                         MouseWasDown = false
  1347.                         if Data.WaitForMouse then
  1348.                            
  1349.                             pcall(Data.Callback, tonumber(Data.Value), prevalue)
  1350.                             prevalue = tonumber(Data.Value)
  1351.                         end
  1352.                     end
  1353.                 end
  1354.             end
  1355.         end)
  1356.         --=====================================
  1357.         local SliderTable = { Object = SliderExample.ViewSlider }
  1358.    
  1359.         function SliderTable:Set(value, nocall)
  1360.             if not UIExist() then return; end
  1361.             value = type(value)=="number" and value or Data.Value or Data.Min
  1362.    
  1363.             local percent = (value - Data.Min) / (Data.Max - Data.Min)
  1364.             percent = math.clamp(percent, 0, 1)
  1365.    
  1366.             SliderExample.ViewSlider.Value.Text = `{value}/{Data.Max}`
  1367.             TS:Create(bar.ViewSlider.Button, TweenInfo.new(0.1), { Size = UDim2.new(percent, 0, 1, 0) }):Play()
  1368.            
  1369.             if not nocall then
  1370.                 local called, message = pcall(Data.Callback, tonumber(value), prevalue)
  1371.                 if not called then
  1372.                     warn("[ Linui Library: Slider Bug ] "..Data.Name..": "..message)
  1373.                 end
  1374.             end
  1375.         end
  1376.    
  1377.         function SliderTable:Get()
  1378.             return Data.Value or Data.Min or 1
  1379.         end
  1380.    
  1381.         function SliderTable:Text(value)
  1382.             if not UIExist() then return; end
  1383.             value = type(value)=="string" and value or nil
  1384.             if value then
  1385.                 SliderExample.ViewSlider.Label.Text = value
  1386.             end
  1387.         end
  1388.        
  1389.         SliderTable:Set(Data.Value, Data.NoCall)
  1390.         return SliderTable
  1391.     end
  1392.    
  1393.     function Library:Label( Data: { Text: string, Tab: Frame } )
  1394.        
  1395.         Data = type(Data)=="table" and Data or {}
  1396.         Data.Text = Data.Text or Data.Name or "Example"
  1397.         Data.Tab = Data.Tab and (function() for i,v in next, Frame:GetDescendants() do if v.ClassName:find("Frame") and v.Name==Data.Tab then return v end end end)() or Frame:FindFirstChild("Right")
  1398.    
  1399.         local LabelExample = Examples:FindFirstChild('Label')
  1400.         if not LabelExample then return; end
  1401.        
  1402.         LabelExample = LabelExample:Clone()
  1403.         LabelExample.Label.Text = Data.Text
  1404.         LabelExample.Parent = (Data.Tab:FindFirstChildOfClass("ScrollingFrame") and Data.Tab:FindFirstChildOfClass("ScrollingFrame"):FindFirstChildOfClass("ScrollingFrame") or Data.Tab:FindFirstChildOfClass("ScrollingFrame")) or Data.Tab
  1405.        
  1406.         local LabelTable = { Object = LabelExample.Label }
  1407.        
  1408.         function LabelTable:Get(value)
  1409.             if not UIExist() then return ""; end
  1410.             return LabelExample.Label.Text 
  1411.         end
  1412.        
  1413.         function LabelTable:Text(value)
  1414.             if not UIExist() then return; end
  1415.             value = type(value)=="string" and value or nil
  1416.             if value then
  1417.                 LabelExample.Label.Text = value
  1418.             end
  1419.         end
  1420.        
  1421.         return LabelTable
  1422.     end
  1423.    
  1424.     function Library:Button( Data: { Text: string, Tab: Frame, Callback: {} } )
  1425.    
  1426.         Data = type(Data)=="table" and Data or {}
  1427.         Data.Text = Data.Text or Data.Name or "Example"
  1428.         Data.Tab = Data.Tab and (function() for i,v in next, Frame:GetDescendants() do if v.ClassName:find("Frame") and v.Name==Data.Tab then return v end end end)() or Frame:FindFirstChild("Right")
  1429.         Data.Callback = type(Data.Callback)=="function" and Data.Callback or function() end
  1430.    
  1431.         local ButtonExample = Examples:FindFirstChild('Button')
  1432.         if not ButtonExample then return; end
  1433.    
  1434.         ButtonExample = ButtonExample:Clone()
  1435.         ButtonExample.Label.Text = Data.Text
  1436.         local event = HandleEvent(ButtonExample.MouseButton1Click:Connect(Data.Callback))
  1437.         ButtonExample.Parent = (Data.Tab:FindFirstChildOfClass("ScrollingFrame") and Data.Tab:FindFirstChildOfClass("ScrollingFrame"):FindFirstChildOfClass("ScrollingFrame") or Data.Tab:FindFirstChildOfClass("ScrollingFrame")) or Data.Tab
  1438.    
  1439.         local ButtonTable = { Object = ButtonExample.Label }
  1440.        
  1441.         function ButtonTable:Callback()
  1442.             if Data.Callback then
  1443.                 local suc, message = pcall(Data.Callback)
  1444.                 if not suc then
  1445.                     warn("[ Linui Library: Button Bug ] "..Data.Text.." | "..message)
  1446.                 end
  1447.             end
  1448.         end
  1449.        
  1450.         function ButtonTable:Change(callback)
  1451.             if not UIExist() then return; end
  1452.             callback = type(callback)=="function" and callback or nil
  1453.             if callback then
  1454.                 Data.Callback = callback
  1455.                 if event then event:Disconnect() end
  1456.                 event = ButtonExample.MouseButton1Click:Connect(Data.Callback)
  1457.             end
  1458.         end
  1459.        
  1460.         function ButtonTable:Text(value)
  1461.             if not UIExist() then return; end
  1462.             value = type(value)=="string" and value or nil
  1463.             if value then
  1464.                 ButtonExample.Label.Text = value
  1465.             end
  1466.         end
  1467.    
  1468.         return ButtonTable
  1469.     end
  1470.    
  1471.     function Library:Toggle( Data: { Text: string, Tab: Frame, Value: boolean } )
  1472.        
  1473.         Data = type(Data)=="table" and Data or {}
  1474.         Data.Text = Data.Text or Data.Name or "Example"
  1475.         Data.Tab = Data.Tab and (function() for i,v in next, Frame:GetDescendants() do if v.ClassName:find("Frame") and v.Name==Data.Tab then return v end end end)() or Frame:FindFirstChild("Right")
  1476.         Data.Value = (type(Data.Value)=="boolean" or false) and Data.Value or false
  1477.         Data.Callback = type(Data.Callback)=="function" and Data.Callback or function() end
  1478.    
  1479.         local ToggleExample = Examples:FindFirstChild('Toggle')
  1480.         if not ToggleExample then return; end
  1481.        
  1482.         local Tweening = false
  1483.         local State = Data.Value
  1484.        
  1485.         ToggleExample = ToggleExample:Clone()
  1486.         ToggleExample.ViewToggle.Label.Text = Data.Text
  1487.         ToggleExample.Parent = (Data.Tab:FindFirstChildOfClass("ScrollingFrame") and Data.Tab:FindFirstChildOfClass("ScrollingFrame"):FindFirstChildOfClass("ScrollingFrame") or Data.Tab:FindFirstChildOfClass("ScrollingFrame")) or Data.Tab
  1488.        
  1489.         local ToggleConfig = {
  1490.            
  1491.             ["true"] = function()
  1492.                 -- Position: {0, 0},{-0.02, 0}
  1493.                 -- Size: {0.475, 0},{1.014, 0}
  1494.                 -- ImageTransparency: 0.6
  1495.                 if Tweening then return; end
  1496.                 if not UIExist() then return; end
  1497.                 Tweening = true
  1498.    
  1499.                 if(pcall(function()return ToggleExample.ViewToggle.Button end)) then
  1500.                     TS:Create(ToggleExample.ViewToggle.Button, TweenInfo.new(.2, Enum.EasingStyle.Sine), {
  1501.                         Position = UDim2.new(unpack{ 0, 0, -0.02, 0 }),
  1502.                         Size = UDim2.new(unpack{ 0.534, 0, 1.014, 0 }),
  1503.                         ImageTransparency = .6
  1504.                     }):Play()
  1505.                 end
  1506.    
  1507.                 task.wait(.2)
  1508.                 State = not State
  1509.                 Tweening = false
  1510.    
  1511.                 return State
  1512.             end,
  1513.            
  1514.             ["false"] = function()
  1515.                 -- Position: {0.525, 0},{-0.02, 0}
  1516.                 -- Size: {0.475, 0},{1.014, 0}
  1517.                 -- ImageTransparency: .2
  1518.                 if Tweening then return; end
  1519.                 if not UIExist() then return; end
  1520.                 Tweening = true
  1521.                
  1522.                 if(pcall(function()return ToggleExample.ViewToggle.Button end)) then
  1523.                     TS:Create(ToggleExample.ViewToggle.Button, TweenInfo.new(.2, Enum.EasingStyle.Sine), {
  1524.                         Position = UDim2.new(unpack{ 0.525, 0, -0.02, 0 }),
  1525.                         Size = UDim2.new(unpack{ 0.475, 0, 1.014, 0 }),
  1526.                         ImageTransparency = .2
  1527.                     }):Play()
  1528.                 end
  1529.                
  1530.                 task.wait(.2)
  1531.                 State = not State
  1532.                 Tweening = false
  1533.                
  1534.                 return State
  1535.             end,
  1536.            
  1537.         }
  1538.        
  1539.         ToggleConfig["nil"] = ToggleConfig["false"]
  1540.         --------------
  1541.         local ToggleHandler = (function(nocall)
  1542.             local OldState = State
  1543.             if State then -- True, toggling false
  1544.                 local called, message = pcall(ToggleConfig["true"])
  1545.                 if not called then
  1546.                     State = not State
  1547.                     warn("[ Linui Library: Toggle 'State' Bug ] "..Data.Name..": "..message)
  1548.                 end
  1549.  
  1550.  
  1551.             else -- False, toggling true
  1552.                 local called, message = pcall(ToggleConfig["false"])
  1553.                 if not called then
  1554.                     State = not State
  1555.                     warn("[ Linui Library: Toggle 'State' Bug ] "..Data.Name..": "..message)
  1556.                 end
  1557.             end
  1558.  
  1559.             if State ~= OldState and not nocall then
  1560.                 local called, message = pcall(Data.Callback, State, OldState)
  1561.                 if not called then
  1562.                     warn("[ Linui Library: Toggle Bug ] "..Data.Name..": "..message)
  1563.                 end
  1564.             end
  1565.         end)
  1566.        
  1567.         State = not State
  1568.         ToggleHandler(true, Data.NoCall)
  1569.        
  1570.         if not UIExist() or not (pcall(function()return ToggleExample.ViewToggle.MouseButton1Click end)) then return; end
  1571.         HandleEvent(ToggleExample.ViewToggle.MouseButton1Click, ToggleHandler)
  1572.         HandleEvent(ToggleExample.ViewToggle.Button.MouseButton1Click, ToggleHandler)
  1573.         --------------
  1574.         local ToggleLibrary = { Object = ToggleExample.ViewToggle }
  1575.        
  1576.         function ToggleLibrary:Set(value)
  1577.             if type(value)=="boolean" then
  1578.                 ToggleHandler(not value)
  1579.             end
  1580.         end
  1581.        
  1582.         function ToggleLibrary:Get()
  1583.             repeat task.wait() until not Tweening -- Waits incase player toggles the toggle
  1584.             return State
  1585.         end
  1586.        
  1587.         function ToggleLibrary:Toggle()
  1588.             repeat task.wait() until not Tweening -- Waits incase player toggles the toggle
  1589.             ToggleHandler(State)
  1590.         end
  1591.         --------------
  1592.         return ToggleLibrary
  1593.     end
  1594.    
  1595.     function Library:Keybind( Data: { Text: string, Tab: Frame, Value: Enum | string } )
  1596.        
  1597.         Data = type(Data)=="table" and Data or {}
  1598.         Data.Text = Data.Text or Data.Name or "Test Keybind"
  1599.         Data.Tab = Data.Tab and (function() for i,v in next, Frame:GetDescendants() do if v.ClassName:find("Frame") and v.Name==Data.Tab then return v end end end)() or Frame:FindFirstChild("Right")
  1600.         Data.Value = (typeof(Data.Value)=="Enum" and Data.Value.Name) or (typeof(Data.Value)=="string" and Data.Value) or nil
  1601.         Data.Value = type(Data.Value)=="string" and Data.Value or "K"
  1602.        
  1603.         Data.OnChange = type(Data.OnChange)=="function" and Data.OnChange or function() end
  1604.         Data.Callback = type(Data.Callback)=="function" and Data.Callback or function() end
  1605.        
  1606.         local KeybindExample = Examples:FindFirstChild('Keybind')
  1607.         if not KeybindExample then return; end
  1608.        
  1609.         local WaitingForKey = false
  1610.         local KeyCooldown = false
  1611.        
  1612.         local CurrentKey = Data.Value
  1613.         local LoopExist = false
  1614.    
  1615.         KeybindExample = KeybindExample:Clone()
  1616.         KeybindExample.ViewKeybind.Label.Text = Data.Text
  1617.         KeybindExample.ViewKeybind.Button.Text = Data.Value
  1618.         KeybindExample.Parent = (Data.Tab:FindFirstChildOfClass("ScrollingFrame") and Data.Tab:FindFirstChildOfClass("ScrollingFrame"):FindFirstChildOfClass("ScrollingFrame") or Data.Tab:FindFirstChildOfClass("ScrollingFrame")) or Data.Tab
  1619.  
  1620.  
  1621.         HandleEvent(UIS.InputBegan:Connect(function(keycode, chat)
  1622.             if chat or KeyCooldown then return; end
  1623.             KeyCooldown = true
  1624.             -------------------------------------
  1625.    
  1626.             local keyname = (keycode["KeyCode"]["Name"] or ""):lower();
  1627.             local real_keyname = (keycode["KeyCode"]["Name"] or "")
  1628.             if keyname=="unknown" then
  1629.                 for i,v in next, Enum.UserInputType:GetEnumItems() do
  1630.                     if keycode.UserInputType==v and v and type(v["Name"])=='string' then
  1631.                         keyname = v["Name"]:lower()
  1632.                         real_keyname = v["Name"]
  1633.                     end
  1634.                 end
  1635.             end
  1636.            
  1637.             if keyname=="unknown" then
  1638.                 KeyCooldown = false
  1639.                 return;
  1640.             end
  1641.             -------------------------------------
  1642.             local upper = {}
  1643.             local KBName = ""
  1644.            
  1645.             local generate = function(...)
  1646.                 for i , v in next, {...} do
  1647.                     KBName ..= tostring(v)
  1648.                 end
  1649.             end
  1650.            
  1651.             for i = 1, #real_keyname do
  1652.                 local key = string.sub(real_keyname, i, i)
  1653.                 if key == key:upper() then
  1654.                     upper[#upper+1] = key
  1655.                  end
  1656.             end
  1657.             if #upper >= 3 then
  1658.                 generate(unpack(upper))
  1659.             else
  1660.                 KBName = real_keyname
  1661.             end
  1662.             -------------------------------------      
  1663.             if not UIExist() then return; end
  1664.             if WaitingForKey then          
  1665.                
  1666.                 if keyname:find("movement") or keyname:find("space") then return end -- Disgard any movement functions
  1667.    
  1668.                 KeybindExample.ViewKeybind.Button.Text = KBName
  1669.                 local oldCurrentKey = CurrentKey
  1670.  
  1671.                 CurrentKey = KBName
  1672.                 WaitingForKey = false
  1673.                 KeyCooldown = false
  1674.                 LoopExist = false
  1675.    
  1676.                 local called, message = pcall(Data.OnChange, real_keyname, (oldCurrentKey or KBName), KBName)
  1677.                 if not called then
  1678.                     warn("[ Linui Library: Keybind 'OnChange' Bug ] "..Data.Name..": "..message)
  1679.                 end
  1680.             else
  1681.                
  1682.                 KeybindExample.ViewKeybind.Button.Text = CurrentKey
  1683.                 CurrentKey = CurrentKey
  1684.                 KeyCooldown = false
  1685.    
  1686.                 if KBName == CurrentKey then
  1687.                     local called, message = pcall(Data.Callback, real_keyname, KBName)
  1688.                     if not called then
  1689.                         warn("[ Linui Library: Keybind Bug ] "..Data.Name..": "..message)
  1690.                     end
  1691.                 end
  1692.             end    
  1693.            
  1694.         end))
  1695.        
  1696.         HandleEvent(KeybindExample.ViewKeybind.Button.MouseButton1Click:Connect(function()
  1697.    
  1698.             WaitingForKey = not WaitingForKey
  1699.             if WaitingForKey and not LoopExist then
  1700.                
  1701.                 local start = ""
  1702.                 LoopExist = true
  1703.                
  1704.                 local currentTime = tick()
  1705.                 KeybindExample.ViewKeybind.Button.Text = "."
  1706.                
  1707.                 while task.wait() and Frame and LoopExist and UIExist() do
  1708.                    
  1709.                     if #start >= 3 then start = "." else start ..= "." end
  1710.                     if (tick() - currentTime) >= .2 then
  1711.                         WaitingForKey = true
  1712.                         currentTime = tick()
  1713.                         if not UIExist() then return; end
  1714.                         KeybindExample.ViewKeybind.Button.Text = start
  1715.                     end
  1716.                 end
  1717.                
  1718.                 WaitingForKey = false
  1719.                 LoopExist = false
  1720.             end
  1721.            
  1722.         end))
  1723.        
  1724.         local KeybindLib = { Object = KeybindExample.ViewKeybind }
  1725.         return KeybindLib
  1726.     end
  1727.    
  1728.     function Library:Dropdown( Data: { Text: string, Tab: Frame, Data: {} } )
  1729.  
  1730.         Data = type(Data)=="table" and Data or {}
  1731.         Data.Text = Data.Text or Data.Name or "Test Dropdown"
  1732.         Data.Data = type(Data.Data)=="table" and Data.Data or {}
  1733.         Data.Tab = Data.Tab and (function() for i,v in next, Frame:GetDescendants() do if v.ClassName:find("Frame") and v.Name==Data.Tab then return v end end end)() or Frame:FindFirstChild("Right")
  1734.         Data.Callback = Data.Callback or function() end
  1735.  
  1736.         local DropdownExample = Examples:FindFirstChild("Dropdown")
  1737.         if not DropdownExample then return; end
  1738.  
  1739.         DropdownExample = DropdownExample:Clone()
  1740.         DropdownExample.Parent = (Data.Tab:FindFirstChildOfClass("ScrollingFrame") and Data.Tab:FindFirstChildOfClass("ScrollingFrame"):FindFirstChildOfClass("ScrollingFrame") or Data.Tab:FindFirstChildOfClass("ScrollingFrame")) or Data.Tab
  1741.        
  1742.         local Dropdown = DropdownExample.ViewDropdown
  1743.         Dropdown.Label.Text = Data.Text
  1744.  
  1745.         local Frame = Dropdown.Frame
  1746.         local ExampleButton = Frame.Button:Clone()
  1747.         local Symbol = Dropdown.Symbol
  1748.         local parentFrame = Dropdown.Parent
  1749.        
  1750.         local Toggled, Cooldown = false, false
  1751.         local parentFrame_Size = parentFrame.Size
  1752.         local addSize = 26
  1753.         local dropdownLib = { Object = Dropdown, Data = {} }
  1754.        
  1755.         HandleEvent(Dropdown.MouseButton1Click:Connect(function()
  1756.    
  1757.             if Cooldown then return; end
  1758.             Cooldown = true
  1759.             if Toggled then    
  1760.  
  1761.                 Symbol.Text = "<"
  1762.                 local ObjInFrame = 0
  1763.  
  1764.                 for _, child: Frame in next, Frame:GetChildren() do
  1765.                     if (pcall(function() return child.Name, child.Position, child.Size, child.BackgroundColor3 end)) then
  1766.                         TS:Create(child, TweenInfo.new(.5), { TextTransparency = 1, Size = UDim2.fromOffset(child.Size.X.Offset, 0) }):Play()
  1767.                         ObjInFrame += 1
  1768.                     end
  1769.                 end
  1770.  
  1771.                 pcall(function()
  1772.                     Frame:TweenSize(UDim2.fromOffset(Frame.Size.X.Offset, 0), nil, nil, .5)
  1773.                     parentFrame:TweenSize(parentFrame_Size, nil, nil, .5)
  1774.                 end)
  1775.                
  1776.                 task.wait(.5)
  1777.                 Frame.Visible = false
  1778.             else
  1779.                
  1780.                 local ObjInFrame = 0
  1781.                 Frame.Visible = true
  1782.                
  1783.                 for _, child: Frame in next, Frame:GetChildren() do
  1784.                     if (pcall(function() return child.Name, child.Position, child.Size, child.BackgroundColor3 end)) then
  1785.                         TS:Create(child, TweenInfo.new(.5), { TextTransparency = 0, Size = UDim2.fromOffset(child.Size.X.Offset, ExampleButton.Size.Y.Offset) }):Play()
  1786.                         ObjInFrame += 1
  1787.                     end
  1788.                 end
  1789.                
  1790.                 Symbol.Text = ">"
  1791.                 Frame:TweenSize(UDim2.fromOffset(Frame.Size.X.Offset, addSize * ObjInFrame), nil, nil, .5)
  1792.                 parentFrame:TweenSize(UDim2.fromOffset(parentFrame_Size.X.Offset, parentFrame_Size.Y.Offset + (addSize * ObjInFrame)), nil, nil, .5)
  1793.                 task.wait(.5)
  1794.                
  1795.             end
  1796.            
  1797.             Cooldown = false
  1798.             Toggled = not Toggled
  1799.         end))
  1800.        
  1801.         HandleEvent(Frame.ChildAdded:Connect(function(child)
  1802.             if (pcall(function() return child.Name, child.Position, child.Size, child.BackgroundColor3 end)) then
  1803.                 Frame.Size = UDim2.fromOffset(Frame.Size.X.Offset, Frame.Size.Y.Offset + addSize)
  1804.                 dropdownLib.Data[child.Name] = child
  1805.  
  1806.                 if Toggled then
  1807.  
  1808.                     local ObjInFrame = 0
  1809.                     Frame.Visible = true
  1810.                    
  1811.                     for _, child in next, Frame:GetChildren() do
  1812.                         if (pcall(function() return child.Name, child.Position, child.Size, child.BackgroundColor3 end)) then
  1813.                             ObjInFrame += 1
  1814.                         end
  1815.                     end
  1816.  
  1817.                     pcall(function()
  1818.                         parentFrame:TweenSize(UDim2.fromOffset(parentFrame_Size.X.Offset, parentFrame_Size.Y.Offset + (addSize * ObjInFrame)), nil, nil, .5)
  1819.                     end)
  1820.  
  1821.                 end
  1822.             end
  1823.         end))
  1824.        
  1825.         HandleEvent(Frame.ChildRemoved:Connect(function(child)
  1826.             if (pcall(function() return child.Name, child.Position, child.Size, child.BackgroundColor3 end)) then
  1827.                 Frame.Size = UDim2.fromOffset(Frame.Size.X.Offset, Frame.Size.Y.Offset - addSize)
  1828.                 dropdownLib.Data[child.Name] = nil
  1829.  
  1830.                 if Toggled then
  1831.  
  1832.                     local ObjInFrame = 0
  1833.                     Frame.Visible = true
  1834.                    
  1835.                     for _, child in next, Frame:GetChildren() do
  1836.                         if (pcall(function() return child.Name, child.Position, child.Size, child.BackgroundColor3 end)) then
  1837.                             ObjInFrame += 1
  1838.                         end
  1839.                     end
  1840.  
  1841.                     pcall(function()
  1842.                         parentFrame:TweenSize(UDim2.fromOffset(parentFrame_Size.X.Offset, parentFrame_Size.Y.Offset + (addSize * ObjInFrame)), nil, nil, .5)
  1843.                     end)
  1844.                    
  1845.                 end
  1846.             end
  1847.         end))
  1848.        
  1849.         Symbol.Text = "<"
  1850.         Frame.Visible = false
  1851.         Frame.Size = UDim2.fromOffset(Frame.Size.X.Offset, 0)
  1852.  
  1853.         local Selected = nil
  1854.  
  1855.         function dropdownLib:Remove( value )
  1856.             for i, child in next, Frame:GetChildren() do
  1857.                 if (pcall(function() return child.Name, child.Position, child.Size, child.BackgroundColor3 end)) then
  1858.                     if not value then
  1859.                         child:Destroy()
  1860.                     else
  1861.                         if child.Name == value then
  1862.                             child:Destroy()
  1863.                         end
  1864.                     end
  1865.                 end
  1866.             end
  1867.             dropdownLib:Refresh()
  1868.         end
  1869.        
  1870.         function dropdownLib:Delete(...)
  1871.             return dropdownLib:Remove(...)
  1872.         end
  1873.  
  1874.         function dropdownLib:Add( value: string )
  1875.             if type(value)=="string" then
  1876.  
  1877.                 local btn: TextButton = ExampleButton:Clone()
  1878.                 btn.Text = value
  1879.                 btn.Name = value
  1880.                 btn.Parent = Frame
  1881.                
  1882.                 HandleEvent(btn.MouseButton1Click, function()
  1883.  
  1884.                     btn.TextColor3 = Color3.fromRGB()
  1885.                     local oldSelName = Selected and Selected.Name or ""
  1886.                    
  1887.                     if oldSelName~="" then
  1888.                         local Stroke: UIStroke = Selected:FindFirstChildOfClass("UIStroke")
  1889.                         if Stroke then Stroke:Destroy() end
  1890.                         Selected.TextColor3 = Color3.fromRGB(17, 117, 167)
  1891.                     end
  1892.  
  1893.                     local UIStroke = Instance.new("UIStroke")
  1894.                     UIStroke["Color"] = Color3.fromRGB(255, 255, 255)
  1895.                     UIStroke["Thickness"] = 0.20000000298023224
  1896.                     UIStroke["Parent"] = btn
  1897.  
  1898.                     btn.TextColor3 = Color3.fromRGB(26, 177, 252)
  1899.                     Selected = btn
  1900.  
  1901.                     if not Data.KeepText then
  1902.                         pcall(function() Dropdown.Label.Text = value end) -- IDK, ITS 4 AM
  1903.                     end
  1904.  
  1905.                     local passed, message = pcall(Data.Callback, value, oldSelName)
  1906.                     if not passed then
  1907.                         warn("[ Linui Library: Dropdown Bug ] "..Data.Name..": "..message)
  1908.                     end
  1909.                 end)
  1910.             else
  1911.                 return;
  1912.             end
  1913.         end
  1914.  
  1915.         function dropdownLib:Get( value: string )
  1916.             for i, child in next, Frame:GetChildren() do
  1917.                 if (pcall(function() return child.Name, child.Position, child.Size, child.BackgroundColor3 end)) then
  1918.                     if not value then
  1919.                         return nil;
  1920.                     else
  1921.                         if child.Name == value then
  1922.                             return child
  1923.                         end
  1924.                     end
  1925.                 end
  1926.             end
  1927.             return nil
  1928.         end
  1929.  
  1930.         function dropdownLib:All()
  1931.             return dropdownLib.Data
  1932.         end
  1933.  
  1934.         function dropdownLib:Refresh(data: {})
  1935.  
  1936.             task.spawn(function()
  1937.                 if type(data)=="table" then
  1938.                     dropdownLib:Remove()
  1939.                     for i,v in next, data do
  1940.                         dropdownLib:Add(v)
  1941.                     end
  1942.                     return;
  1943.                 end
  1944.                 ---------------
  1945.                 repeat task.wait() until not Cooldown
  1946.                 Cooldown = true
  1947.    
  1948.                 if not Toggled then    
  1949.                     Symbol.Text = "<"
  1950.  
  1951.                     pcall(function()
  1952.                         Frame:TweenSize(UDim2.fromOffset(Frame.Size.X.Offset, 0), nil, nil, .5)
  1953.                         parentFrame:TweenSize(parentFrame_Size, nil, nil, .5)
  1954.                     end)
  1955.                    
  1956.                     task.wait(.5)
  1957.                     Frame.Visible = false
  1958.                 else
  1959.                    
  1960.                     local ObjInFrame = 0
  1961.                     Frame.Visible = true
  1962.                    
  1963.                     for _, child in next, Frame:GetChildren() do
  1964.                         if (pcall(function() return child.Name, child.Position, child.Size, child.BackgroundColor3 end)) then
  1965.                             ObjInFrame += 1
  1966.                         end
  1967.                     end
  1968.                    
  1969.                     Symbol.Text = ">"
  1970.                     pcall(function()
  1971.                         Frame:TweenSize(UDim2.fromOffset(Frame.Size.X.Offset, addSize * ObjInFrame), nil, nil, .5)
  1972.                         parentFrame:TweenSize(UDim2.fromOffset(parentFrame_Size.X.Offset, parentFrame_Size.Y.Offset + (addSize * ObjInFrame)), nil, nil, .5)
  1973.                     end)
  1974.                     task.wait(.5)
  1975.                    
  1976.                 end
  1977.                 Cooldown = false
  1978.             end)
  1979.         end
  1980.  
  1981.         dropdownLib:Refresh(Data.Data)
  1982.  
  1983.         if Frame:FindFirstChild("Button") then
  1984.             Frame.Button:Destroy()
  1985.         end
  1986.  
  1987.         return dropdownLib
  1988.     end
  1989.  
  1990.     function Library:Color( Data: { Text: string, Tab: Frame, Data: {} } )
  1991.  
  1992.         Data = type(Data)=="table" and Data or {}
  1993.         Data.Text = Data.Text or Data.Name or "Test Color"
  1994.         Data.Data = type(Data.Data)=="table" and Data.Data or {}
  1995.         Data.Tab = Data.Tab and (function() for i,v in next, Frame:GetDescendants() do if v.ClassName:find("Frame") and v.Name==Data.Tab then return v end end end)() or Frame:FindFirstChild("Right")
  1996.         Data.Callback = Data.Callback or function() end
  1997.  
  1998.         local ColorExample = Examples:FindFirstChild("ColorPicker")
  1999.         if not ColorExample then return; end
  2000.  
  2001.         ColorExample = ColorExample:Clone()
  2002.         ColorExample.Parent = (Data.Tab:FindFirstChildOfClass("ScrollingFrame") and Data.Tab:FindFirstChildOfClass("ScrollingFrame"):FindFirstChildOfClass("ScrollingFrame") or Data.Tab:FindFirstChildOfClass("ScrollingFrame")) or Data.Tab
  2003.        
  2004.         local ViewColor = ColorExample:FindFirstChild("ViewColor")
  2005.         ViewColor.Label.Text = Data.Text
  2006.  
  2007.         local frame = ViewColor:FindFirstChild("Frame")
  2008.         local colorpicker = frame.Parent.Parent
  2009.        
  2010.         local colourWheel: ImageButton = frame:WaitForChild("ColourWheel")
  2011.         local wheelPicker: ImageButton = colourWheel:WaitForChild("Picker")
  2012.        
  2013.         local darknessPicker = frame:WaitForChild("DarknessPicker")
  2014.         local darknessSlider: ImageButton = darknessPicker:WaitForChild("Slider")
  2015.        
  2016.         local colourDisplay = ViewColor:WaitForChild("ColorDisplay")
  2017.         local UIS = game:GetService("UserInputService")
  2018.         local TS = game:GetService("TweenService")
  2019.        
  2020.         local R, G, B = frame:FindFirstChild("R"), frame:FindFirstChild("G"), frame:FindFirstChild("B")
  2021.         local buttonDown = false
  2022.         local movingSlider = false
  2023.         local colorlib = {}
  2024.  
  2025.         local function updateMouse(mousePos)
  2026.    
  2027.             local centreOfWheel = Vector2.new(colourWheel.AbsolutePosition.X + (colourWheel.AbsoluteSize.X/2), colourWheel.AbsolutePosition.Y + (colourWheel.AbsoluteSize.Y/2))
  2028.             local distanceFromWheel = (mousePos - centreOfWheel).Magnitude
  2029.        
  2030.        
  2031.             if distanceFromWheel <= colourWheel.AbsoluteSize.X/2 then
  2032.                 wheelPicker:TweenPosition(UDim2.new(0, mousePos.X - colourWheel.AbsolutePosition.X, 0, mousePos.Y - colourWheel.AbsolutePosition.Y), nil, nil, .05)
  2033.             end
  2034.            
  2035.             if movingSlider then
  2036.                 darknessSlider:TweenPosition(UDim2.new(darknessSlider.Position.X.Scale, 0, 0,
  2037.                     math.clamp(
  2038.                         mousePos.Y - darknessPicker.AbsolutePosition.Y,
  2039.                         0,
  2040.                         darknessPicker.AbsoluteSize.Y)
  2041.                     )   , nil, nil, .05)
  2042.             end
  2043.            
  2044.             return centreOfWheel
  2045.         end
  2046.        
  2047.         local function updateColour(centreOfWheel)
  2048.        
  2049.             local colourPickerCentre = Vector2.new(
  2050.                 colourWheel.Picker.AbsolutePosition.X + (colourWheel.Picker.AbsoluteSize.X/2),
  2051.                 colourWheel.Picker.AbsolutePosition.Y + (colourWheel.Picker.AbsoluteSize.Y/2)
  2052.             )
  2053.            
  2054.             local h = (math.pi - math.atan2(colourPickerCentre.Y - centreOfWheel.Y, colourPickerCentre.X - centreOfWheel.X)) / (math.pi * 2)
  2055.             local s = (centreOfWheel - colourPickerCentre).Magnitude / (colourWheel.AbsoluteSize.X/2)
  2056.             local v = math.abs((darknessSlider.AbsolutePosition.Y - darknessPicker.AbsolutePosition.Y) / darknessPicker.AbsoluteSize.Y - 1)
  2057.             local hsv = Color3.fromHSV(math.clamp(h, 0, 1), math.clamp(s, 0, 1), math.clamp(v, 0, 1))
  2058.            
  2059.             TS:Create(colourDisplay, TweenInfo.new( movingSlider and .05 or .1 ), {
  2060.                 BackgroundColor3 = hsv
  2061.             }):Play()
  2062.            
  2063.             darknessPicker.UIGradient.Color = ColorSequence.new{
  2064.                 ColorSequenceKeypoint.new(0, hsv),
  2065.                 ColorSequenceKeypoint.new(1, Color3.new(0, 0, 0))
  2066.             }
  2067.            
  2068.             TS:Create(darknessSlider, TweenInfo.new( movingSlider and .05 or .1 ), {
  2069.                 ImageColor3 = hsv
  2070.             }):Play()
  2071.            
  2072.             colorlib:Set(hsv)
  2073.            
  2074.         end
  2075.        
  2076.         local ShowCooldown = false
  2077.         local originalSize = frame.Size
  2078.         local _originalSize = ColorExample.Size
  2079.  
  2080.         HandleEvent(ViewColor.MouseButton1Click:Connect(function()
  2081.             if ShowCooldown then return; end
  2082.             ShowCooldown = true
  2083.  
  2084.             if not frame.Visible then
  2085.                 frame.Size = UDim2.fromOffset(frame.Size.X.Offset, 0)
  2086.                 ColorExample.Size = frame.Size
  2087.                 frame.Visible = true
  2088.                 ColorExample:TweenSize(UDim2.new(0, 181, 0, 180), nil, nil, .5)
  2089.                 frame:TweenSize(UDim2.new(0, 181, 0, 144), nil, nil, .5)
  2090.                 task.wait(.6)
  2091.             else
  2092.                 frame.Size = UDim2.new(0, 181, 0, 144)
  2093.                 ColorExample.Size = UDim2.new(0, 181, 0, 160)
  2094.                 frame.Visible = true
  2095.                 ColorExample:TweenSize(_originalSize, nil, nil, .5)
  2096.                 frame:TweenSize(UDim2.fromOffset(frame.Size.X.Offset, 0), nil, nil, .5)
  2097.                 task.wait(.6)
  2098.                 frame.Visible = false
  2099.             end
  2100.  
  2101.             ShowCooldown = false
  2102.         end))
  2103.  
  2104.         HandleEvent(colourWheel.MouseMoved:Connect(function(x, y)
  2105.             local mouse_position = Vector2.new(x, y)
  2106.             if UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) then
  2107.                 buttonDown = true
  2108.                 updateColour(updateMouse(mouse_position))
  2109.             else
  2110.                 buttonDown = false
  2111.             end
  2112.         end))
  2113.  
  2114.         HandleEvent(darknessPicker.MouseMoved:Connect(function(x, y)
  2115.             local mouse_position = Vector2.new(x, y)
  2116.             if UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) then
  2117.                 movingSlider = true
  2118.                 updateColour(updateMouse(mouse_position))
  2119.             else
  2120.                 movingSlider = false
  2121.             end
  2122.         end))
  2123.  
  2124.         ----------------------------------------
  2125.         function colorlib:Set( color: Color3, nocall: boolean )
  2126.             if typeof(color)=="Color3" then
  2127.  
  2128.                 TS:Create(colourDisplay, TweenInfo.new( movingSlider and .05 or .1 ), {
  2129.                     BackgroundColor3 = color
  2130.                 }):Play()
  2131.  
  2132.                 local _R, _G, _B = color.R * 255, color.G * 255, color.B * 255 -- I love complicating my code [ Im joking I did this for fun ]
  2133.                 _R, _G, _B = tostring(_R):split(".")[1], tostring(_G):split(".")[1], tostring(_B):split(".")[1]
  2134.    
  2135.                 if typeof(R)=="Instance" and R.ClassName:match("Text") then R.Text = _R end
  2136.                 if typeof(G)=="Instance" and G.ClassName:match("Text") then G.Text = _G end
  2137.                 if typeof(B)=="Instance" and B.ClassName:match("Text") then B.Text = _B end
  2138.  
  2139.                 if not nocall then
  2140.                     local called, message = pcall(Data.Callback, color)
  2141.                     if not called then
  2142.                         warn("[ Linui Library: ColorPicker Bug ] "..Data.Name..": "..message)
  2143.                     end
  2144.                 end
  2145.             end
  2146.         end
  2147.  
  2148.         function colorlib:Text( value: string )
  2149.             if type(value)=="string" then
  2150.                 ViewColor.Label.Text = value
  2151.             end
  2152.         end
  2153.  
  2154.         function colorlib:Get()
  2155.             repeat task.wait(.06) until not buttonDown -- If they're picking a color, wait for them to be finished
  2156.             return colourDisplay.BackgroundColor3
  2157.         end
  2158.  
  2159.         if Data.Color then
  2160.             colorlib:Set(Data.Color, Data.nocall)
  2161.         end
  2162.  
  2163.         frame.Visible = Data.Hide
  2164.         return colorlib
  2165.     end
  2166.  
  2167.     function Library:Section(name)
  2168.        
  2169.         name = type(name)=="string" and name or "ExmapleSection"
  2170.         local sectionLib = {}
  2171.         local HideCooldown = false
  2172.        
  2173.         local Section = Instance.new("Frame")
  2174.         local UICorner = Instance.new("UICorner")
  2175.         local _Frame = Instance.new("ScrollingFrame")
  2176.    
  2177.         local Label = Instance.new("TextButton")
  2178.         local Line = Instance.new("Frame")
  2179.        
  2180.         local UIListLayout = Instance.new("UIListLayout")
  2181.         local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
  2182.    
  2183.         --Properties:
  2184.    
  2185.         Section.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  2186.         Section.BackgroundTransparency = 0.400
  2187.         Section.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2188.         Section.BorderSizePixel = 0
  2189.         Section.Position = UDim2.new(-4.31409859e-08, 0, -1.04034665e-08, 0)
  2190.         Section.Size = UDim2.new(1.00000012, 0, 0.259604543, 0)
  2191.    
  2192.         UICorner.CornerRadius = UDim.new(0, 0)
  2193.         UICorner.Parent = Section
  2194.    
  2195.         _Frame.Name = "_Frame"
  2196.         _Frame.Parent = Section
  2197.         _Frame.Active = true
  2198.         _Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  2199.         _Frame.BackgroundTransparency = 1.000
  2200.         _Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2201.         _Frame.BorderSizePixel = 0
  2202.         _Frame.Position = UDim2.new(0.0197910536, 0, 0.0965689346, 0)
  2203.         _Frame.Size = UDim2.new(0.961277604, 0, 0.884780228, 0)
  2204.         _Frame.ScrollBarThickness = 1
  2205.    
  2206.         Label.Name = "Label"
  2207.         Label.Parent = Section
  2208.         Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2209.         Label.BackgroundTransparency = 1.000
  2210.         Label.BorderColor3 = Color3.fromRGB(0, 0, 0)
  2211.         Label.BorderSizePixel = 0
  2212.         Label.Position = UDim2.new(0.0565457866, 0, 0.0130498558, 0)
  2213.         Label.Size = UDim2.new(0.882113576, 0, 0.0574193671, 0)
  2214.         Label.Text = name
  2215.         Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  2216.         Label.TextScaled = true
  2217.         Label.TextSize = 15.000
  2218.         Label.TextWrapped = true
  2219.    
  2220.         UITextSizeConstraint.Parent = Label
  2221.         UITextSizeConstraint.MaxTextSize = 14
  2222.        
  2223.         UIListLayout.Padding = UDim.new(0, 1)
  2224.         UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2225.         UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  2226.         UIListLayout.Parent = _Frame
  2227.        
  2228.         Line.Name = "Line"
  2229.         Line.Parent = Section
  2230.         Line.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  2231.         Line.BorderColor3 = Color3.fromRGB(255, 255, 255)
  2232.         Line.Position = UDim2.new(0.353349507, 0, 0.0730726197, 0)
  2233.         Line.Size = UDim2.new(0.292164683, 0, 0.00135501358, 0)
  2234.        
  2235.         local LeftSide = Frame:FindFirstChild("Left") or Frame:FindFirstChild("Right")
  2236.         LeftSide = LeftSide and LeftSide:FindFirstChildOfClass("ScrollingFrame") or LeftSide
  2237.         if not LeftSide then Section:Destroy(); return "Frame Componets not found!" end
  2238.        
  2239.         Section.Name = name
  2240.         Section.Parent = LeftSide
  2241.         handleChildSize(_Frame, _Frame)
  2242.  
  2243.         function sectionLib:Slider(Data)
  2244.             Data = type(Data)=="table" and Data or {}
  2245.             Data.Tab = name
  2246.             return Library:Slider(Data)
  2247.         end
  2248.        
  2249.         function sectionLib:Label(Data)
  2250.             Data = type(Data)=="table" and Data or {}
  2251.             Data.Tab = name
  2252.             return Library:Label(Data)
  2253.         end
  2254.        
  2255.         function sectionLib:Button(Data)
  2256.             Data = type(Data)=="table" and Data or {}
  2257.             Data.Tab = name
  2258.             return Library:Button(Data)
  2259.         end
  2260.         function sectionLib:Toggle(Data)
  2261.             Data = type(Data)=="table" and Data or {}
  2262.             Data.Tab = name
  2263.             return Library:Toggle(Data)
  2264.         end
  2265.         function sectionLib:Keybind(Data)
  2266.             Data = type(Data)=="table" and Data or {}
  2267.             Data.Tab = name
  2268.             return Library:Keybind(Data)
  2269.         end
  2270.         function sectionLib:Dropdown(Data)
  2271.             Data = type(Data)=="table" and Data or {}
  2272.             Data.Tab = name
  2273.             return Library:Dropdown(Data)
  2274.         end
  2275.         function sectionLib:Color(Data)
  2276.             Data = type(Data)=="table" and Data or {}
  2277.             Data.Tab = name
  2278.             return Library:Color(Data)
  2279.         end
  2280.         function sectionLib:Hide()
  2281.             Section.Parent = nil
  2282.         end
  2283.        
  2284.         function sectionLib:Show()
  2285.             Section.Parent = LeftSide
  2286.         end
  2287.  
  2288.         return sectionLib
  2289.     end
  2290.  
  2291.     Loop(function()
  2292.         local exist = pcall(function() return Part.Name, Part.Parent~=nil and Part or error(), Part.Size end)
  2293.         if not exist then _UIExist = false end
  2294.         _UIExist = tick()
  2295.     end)
  2296. end
  2297. --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2298. local SCALE = 0.01
  2299. local LookView = Vector3.new(0, .1, -11)
  2300. local UIS = game:GetService("UserInputService")
  2301.  
  2302. local StoredTransparency = {}
  2303. local PartIncreased = false
  2304.  
  2305. Cache.add(game:GetService("RunService").RenderStepped:Connect(function(deltaTime)
  2306.     local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  2307.  
  2308.     local sizeX = mouse.ViewSizeX
  2309.     local sizeY = mouse.ViewSizeY
  2310.  
  2311.     local mouseX = (mouse.X-mouse.ViewSizeX/2) * SCALE
  2312.     local mouseY = (mouse.Y-mouse.ViewSizeY/2) * SCALE
  2313.    
  2314.     TS:Create(Part, TweenInfo.new(deltaTime), { CFrame =  workspace.CurrentCamera.CFrame * CFrame.new(LookView.X, LookView.Y, LookView.Z) * CFrame.Angles(0, math.rad(mouseX), 0) * CFrame.Angles(math.rad(mouseY) , 0 , 0) }):Play()
  2315.    
  2316.     task.wait(deltaTime)
  2317.     local scalingFactor = (workspace.CurrentCamera.CFrame.Position - Part.CFrame.Position).Magnitude - LookView.Z  
  2318.     --Part.Size = Part.Size / Vector3.new(scalingFactor, 0, scalingFactor)
  2319.  
  2320. end))
  2321.  
  2322.  
  2323. -------------------------------------- Main Section
  2324. local Main = Frame.Main
  2325. local PlayerViewport, PlayerName, Level, XP = Main:FindFirstChild("PlayerViewport"), Main:FindFirstChild("PlayerName"), Main:FindFirstChild("Level"), Main:FindFirstChild("XP")
  2326.  
  2327. do -- PlayerName
  2328.     task.spawn(function()
  2329.         local Label = PlayerName
  2330.         local Text = Label:GetAttribute("Text") or Label.Text
  2331.  
  2332.         local typeDelay = 0.1
  2333.         local Length = 5
  2334.         local EffectApplying = false
  2335.  
  2336.         local function TextRainbow()
  2337.  
  2338.             if EffectApplying then return; end
  2339.             EffectApplying = true
  2340.  
  2341.             Text = Label:GetAttribute("Text") or Text
  2342.             Label.Text = ""
  2343.  
  2344.             if #Text > 0 then
  2345.                 for i = 1, #Text do
  2346.  
  2347.                     local hue = tick() % Length / Length
  2348.                     local color = Color3.fromHSV(hue, 1, 1)
  2349.                     local r,g,b = math.floor((color.R*255) + 0.5), math.floor((color.G*255) + 0.5), math.floor((color.B*255) + 0.5)
  2350.  
  2351.                     local text = string.sub(Text, i, i)
  2352.                     Label.Text ..= `<font color="rgb({r}, {g}, {b})">{text}</font>`
  2353.                     task.wait(typeDelay)
  2354.  
  2355.                 end
  2356.             end
  2357.  
  2358.             task.wait(1)
  2359.             EffectApplying = false
  2360.  
  2361.         end
  2362.         --===========================================
  2363.         local HoverHandler = Label:WaitForChild("HoverHandler")
  2364.  
  2365.         HoverHandler.MouseEnter:Connect(function()
  2366.             Label:SetAttribute("Hover", true)
  2367.         end)
  2368.  
  2369.         HoverHandler.MouseLeave:Connect(function()
  2370.             Label:SetAttribute("Hover", false)
  2371.         end)
  2372.         --===========================================
  2373.         while task.wait() do
  2374.             if Label:GetAttribute("Hover") then
  2375.                 TextRainbow()
  2376.             end
  2377.         end
  2378.     end)
  2379. end
  2380.  
  2381. -------------------------------------- UI: Breathing, Config
  2382. local AllFrames = Frame:GetChildren()
  2383.  
  2384. Cache.add(UIS.InputBegan:Connect(function(keycode, chat)
  2385.     if chat then return; end
  2386.     -------------------------------------
  2387.     local keyname = (keycode["KeyCode"]["Name"] or ""):lower();
  2388.     if keyname=="unknown" then
  2389.         for i,v in next, Enum.UserInputType:GetEnumItems() do
  2390.             if keycode.UserInputType==v and v and type(v["Name"])=='string' then
  2391.                 keyname = v["Name"]:lower()
  2392.             end
  2393.         end
  2394.     end
  2395.     -------------------------------------
  2396.     Config.Keys[keyname] = tick()
  2397.     if keyname == "mousebutton1" then
  2398.        
  2399.         local InFrame = true
  2400.         local Time = .5
  2401.         AllFrames = Frame:GetChildren()
  2402.        
  2403.         for i,v in next, AllFrames do
  2404.             if v:IsA("Frame") or v:IsA("ImageLabel") or v:IsA("ImageButton") or v:IsA("ScrollingFrame") then
  2405.                 if not Mouse:MouseInFrame(v) then
  2406.                     InFrame = false
  2407.                 end
  2408.             end
  2409.         end
  2410.        
  2411.         if not InFrame then
  2412.            
  2413.             if Config["FrameCooldown"] then return; end
  2414.             Config["FrameCooldown"] = true
  2415.                        
  2416.             for i,v in next, Frame:GetChildren() do
  2417.                 if v:IsA("Frame") or v:IsA("ImageLabel") or v:IsA("ImageButton") or v:IsA("ScrollingFrame") then
  2418.  
  2419.                     if StoredTransparency[v] then
  2420.                         TS:Create(v, TweenInfo.new(Time), { Transparency = StoredTransparency[v] }):Play()
  2421.                         StoredTransparency[v] = nil
  2422.                     else
  2423.                         StoredTransparency[v] = v.Transparency
  2424.                         TS:Create(v, TweenInfo.new(Time), { Transparency = v.Transparency + .2 }):Play()
  2425.                     end
  2426.  
  2427.                     for i, v in next, v:GetDescendants() do
  2428.                         if v:IsA("Frame") or v:IsA("ImageLabel") or v:IsA("ImageButton") or v:IsA("ScrollingFrame") then
  2429.                             if StoredTransparency[v] then
  2430.                                 TS:Create(v, TweenInfo.new(Time), { Transparency = StoredTransparency[v] }):Play()
  2431.                                 StoredTransparency[v] = nil
  2432.                             else
  2433.                                 StoredTransparency[v] = v.Transparency
  2434.                                 TS:Create(v, TweenInfo.new(Time), { Transparency = v.Transparency + .2 }):Play()
  2435.                             end
  2436.                         end
  2437.                     end
  2438.  
  2439.                 end
  2440.             end
  2441.            
  2442.             task.wait( Time + .1 )
  2443.             Config["FrameCooldown"] = false
  2444.            
  2445.         end
  2446.     end
  2447. end))
  2448.  
  2449. do -- Breathing
  2450.    
  2451.     local X, Y, Z = .1, .1, .1
  2452.     local waitTime = 1
  2453.     local started = PartIncreased
  2454.    
  2455.     WrapFunction(function()
  2456.         Loop(function()
  2457.             if not Config.Breathing and started==PartIncreased then return; end
  2458.             TS:Create(Part, TweenInfo.new(waitTime), { Size = Part.Size + (PartIncreased and Vector3.new(-X, -Y, -Z) or Vector3.new(X, Y, Z)) }):Play()
  2459.             task.wait(waitTime)
  2460.             PartIncreased = not PartIncreased
  2461.         end, 1.1, true)
  2462.     end)
  2463.  
  2464. end
  2465.  
  2466. --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2467. setmetatable(Library, { -- Config Manager
  2468.     __index = function(self, value)
  2469.         if(value=="config") then
  2470.             return Config
  2471.         end
  2472.         return rawget(Config, value)
  2473.     end,
  2474.     __newindex = function(self, base, value)
  2475.         if base == "Text" and type(value)=="string" then
  2476.             return pcall(function()
  2477.                 UI.Frame.Main.PlayerName:SetAttribute("Text", value)
  2478.                 UI.Frame.Main.PlayerName.Text = value
  2479.             end)
  2480.         end
  2481.         return rawset(Library, base, value)
  2482.     end
  2483. })
  2484. --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2485. function Library:Config()
  2486.    
  2487.     Config.Breathing = Storage.Data["LinenLib_Breathing"]
  2488.     Library:Toggle({ Text = "Breathing", Value = type(Storage.Data["LinenLib_Breathing"])=="nil" and true or Storage.Data["LinenLib_Breathing"], Callback = function(value) Storage.Data["LinenLib_Breathing"] = value; Config.Breathing = value end })
  2489.     Library:Toggle({ Text = "Always On Top", Value = type(Storage.Data["LinenLib_AOT"])=="nil" and true or Storage.Data["LinenLib_AOT"], Callback = function(value) Storage.Data["LinenLib_AOT"] = value;UI["AlwaysOnTop"] = value end })
  2490.     Library:Keybind({ Text = "Toggle", Value = Storage.Data["LinenLib_Toggle"] , Callback = function(keycode) Storage.Data["LinenLib_Toggle"] = keycode;Frame.Visible = not Frame.Visible end })
  2491.    
  2492.     --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2493.    
  2494.    
  2495.     return Library
  2496. end
  2497.  
  2498. Library.Frame = Frame
  2499. Library.Storage = Storage
  2500. Library:Config() -- Loads settings
  2501.  
  2502. -- .<(:D _^_ D:)>.
  2503. return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement