csmit195

rblxGlassUI

Jun 1st, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 41.48 KB | None | 0 0
  1. --[[
  2.    
  3.                                 .        
  4.                      _ ._. _  _ | _  _   .
  5.                     (_)[  (/,(_)|(_)(_]\_|
  6.                                     ._|._|
  7.  
  8.                     Glass UI Library
  9.                     Version 1.3
  10.                    
  11.                    
  12.     Changelog :
  13.    
  14.     0.1     //  Started Project.
  15.    
  16.     0.2     //  CreateFrame() function
  17.    
  18.     0.3     //  Create_MenuBar() function
  19.    
  20.     0.4     //  Create_ScrollList() function
  21.                 Create_ScrollList_Image() function
  22.                 Added MenuBar width option
  23.                
  24.     0.5     //  Create_TextButton() function
  25.                 Create_Notification() function
  26.                
  27.     0.6     //  Reworked notification system
  28.                 Create_Overflow_Menu() function
  29.    
  30.     0.7     //  Create_Indicator_Bar() function
  31.    
  32.     0.8     //  Create_DynamicList() function
  33.    
  34.     0.9     //  Create_Slider() function    [x]
  35.                 Added new animation option for Dynamic List
  36.    
  37.  
  38. --]]
  39.  
  40. local UserInputService = game:GetService("UserInputService")
  41. local FunctionTable = {}
  42.  
  43. function FunctionTable.Create_MenuBar(Object_Name, Object_Directory, Menu_Width, Item_Table, Item_Button_Directory, Return_Object)
  44.     local FrameContainer = Instance.new("Frame", Object_Directory)
  45.     FrameContainer.Name = tostring(Object_Name)
  46.     FrameContainer.Size = UDim2.new(tonumber(Menu_Width),0,1,0)
  47.     FrameContainer.Position = UDim2.new(0,0,0,0)
  48.     FrameContainer.BackgroundColor3 = Color3.new(0,0,0)
  49.     FrameContainer.BackgroundTransparency = 0.8
  50.     FrameContainer.BorderSizePixel = 0
  51.     FrameContainer.ZIndex = 9
  52.    
  53.     local D1 = Instance.new("Frame", FrameContainer)        -- Right Bar
  54.     D1.Size = UDim2.new(0,2,1,0)
  55.     D1.Position = UDim2.new(1,-5,0,0)
  56.     D1.BackgroundColor3 = Color3.new(1,1,1)
  57.     D1.BackgroundTransparency = 0.5
  58.     D1.BorderSizePixel = 0
  59.     D1.Name = "DecorBar_Rht"
  60.     D1.ZIndex = 9
  61.    
  62.     local VisualFrame = Instance.new("Frame", FrameContainer)
  63.     VisualFrame.BackgroundTransparency = 2
  64.     VisualFrame.BorderSizePixel = 0
  65.     VisualFrame.Position = UDim2.new(0,0,0,0)
  66.     VisualFrame.Size = UDim2.new(1,0,1,0)
  67.     VisualFrame.ZIndex = 9
  68.    
  69.     local CenterFrame = Instance.new("Frame", VisualFrame)
  70.     CenterFrame.BackgroundColor3 = Color3.new(0,0,0)
  71.     CenterFrame.BorderSizePixel = 0
  72.     CenterFrame.BackgroundTransparency = 0.6
  73.     CenterFrame.Position = UDim2.new(0,0,0.45,0)
  74.     CenterFrame.Size = UDim2.new(1,0,0.1,0)
  75.     CenterFrame.ZIndex = 9
  76.    
  77.     local TextContainer = Instance.new("Frame", VisualFrame)
  78.     TextContainer.BackgroundTransparency = 2
  79.     TextContainer.BorderSizePixel = 0
  80.     TextContainer.Size = UDim2.new(1,0,1,0)
  81.     TextContainer.Position = UDim2.new(0,0,0,0)
  82.     TextContainer.ZIndex = 9
  83.    
  84.     local NumberItems = #Item_Table
  85.     local Difference = (1/NumberItems)
  86.     local TextPos = 0.45
  87.     local TextPosDifference = 0.1
  88.     local ButtonPos = 0
  89.     for x = 1, NumberItems do
  90.         --[[ Create Visual Representation ]]
  91.         local NewText = Instance.new("TextLabel", TextContainer)
  92.         NewText.BackgroundTransparency = 2
  93.         NewText.BorderSizePixel = 0
  94.         NewText.Name = tostring(Item_Table[x][2])
  95.         NewText.TextColor3 = Color3.new(1,1,1)
  96.         NewText.Position = UDim2.new(0,0,TextPos,0)
  97.         NewText.Size = UDim2.new(1,0,0.1,0)
  98.         NewText.ZIndex = 9
  99.         NewText.Font = "SourceSans"
  100.         NewText.FontSize = "Size18"
  101.         NewText.Text = tostring(Item_Table[x][2])
  102.  
  103.         local NumberTag = Instance.new("NumberValue", NewText)
  104.         NumberTag.Name = "ItemNumber"
  105.         NumberTag.Value = x
  106.         TextPos = TextPos + TextPosDifference
  107.  
  108.         local NewButton = Instance.new("ImageButton", FrameContainer)
  109.         NewButton.Name = tostring(Item_Table[x][2])
  110.         NewButton.BackgroundTransparency = 2
  111.         NewButton.BorderSizePixel = 0
  112.         NewButton.Position = UDim2.new(0,0,ButtonPos,0)
  113.         NewButton.Size = UDim2.new(1,0,Difference,0)
  114.         NewButton.ZIndex = 9
  115.  
  116.         ButtonPos = ButtonPos + Difference
  117.  
  118.         NewButton.MouseEnter:Connect(function()
  119.             local VisText = TextContainer[NewButton.Name]
  120.             if (not VisText) then return end
  121.             TextContainer:TweenPosition(UDim2.new(0,0,(-(VisText["ItemNumber"].Value/10)+0.1),0),"Out","Quad",0.25,true)
  122.             VisText.FontSize = "Size36"
  123.             wait(0)
  124.         end)
  125.  
  126.         NewButton.MouseLeave:Connect(function()
  127.             TextContainer[NewButton.Name].FontSize = "Size14"
  128.             wait(0)
  129.         end)
  130.  
  131.         local Button_CodeConnection = Item_Button_Directory[Item_Table[x][1]]:Clone()
  132.         Button_CodeConnection.Parent = NewButton
  133.         Button_CodeConnection.Disabled = false
  134.     end
  135.     if (Return_Object) then
  136.         return FrameContainer
  137.     end
  138. end
  139.  
  140. function FunctionTable.Create_Frame(Object_Name, Object_Directory, Object_Size, Object_Position, Object_ZIndex, Contain, Return_Object)
  141.     local NewFrame = Instance.new("Frame", Object_Directory)
  142.     NewFrame.Size = Object_Size
  143.     NewFrame.Position = Object_Position
  144.     NewFrame.BackgroundColor3 = Color3.new(0,0,0)
  145.     NewFrame.BackgroundTransparency = 0.8
  146.     NewFrame.BorderSizePixel = 0
  147.     NewFrame.Name = tostring(Object_Name)
  148.     NewFrame.ZIndex = tonumber(Object_ZIndex)
  149.     NewFrame.ClipsDescendants = Contain
  150.    
  151.     local D1 = Instance.new("Frame", NewFrame)      -- Top Bar
  152.     D1.Size = UDim2.new(1,0,0,2)
  153.     D1.Position = UDim2.new(0,0,0,3)
  154.     D1.BackgroundColor3 = Color3.new(1,1,1)
  155.     D1.BackgroundTransparency = 0.5
  156.     D1.BorderSizePixel = 0
  157.     D1.Name = "DecorBar_Top"
  158.     D1.ZIndex = Object_ZIndex
  159.    
  160.     local D2 = Instance.new("Frame", NewFrame)      -- Bottom Bar
  161.     D2.Size = UDim2.new(1,0,0,2)
  162.     D2.Position = UDim2.new(0,0,1,-5)
  163.     D2.BackgroundColor3 = Color3.new(1,1,1)
  164.     D2.BackgroundTransparency = 0.5
  165.     D2.BorderSizePixel = 0
  166.     D2.Name = "DecorBar_Bot"
  167.     D2.ZIndex = Object_ZIndex
  168.    
  169.     local D3 = Instance.new("Frame", NewFrame)      -- Right Bar
  170.     D3.Size = UDim2.new(0,2,1,0)
  171.     D3.Position = UDim2.new(1,-5,0,0)
  172.     D3.BackgroundColor3 = Color3.new(1,1,1)
  173.     D3.BackgroundTransparency = 0.5
  174.     D3.BorderSizePixel = 0
  175.     D3.Name = "DecorBar_Rht"
  176.     D3.ZIndex = Object_ZIndex
  177.    
  178.     local D4 = Instance.new("Frame", NewFrame)      -- Left Bar
  179.     D4.Size = UDim2.new(0,2,1,0)
  180.     D4.Position = UDim2.new(0,3,0,0)
  181.     D4.BackgroundColor3 = Color3.new(1,1,1)
  182.     D4.BackgroundTransparency = 0.5
  183.     D4.BorderSizePixel = 0
  184.     D4.Name = "DecorBar_Lft"
  185.     D4.ZIndex = Object_ZIndex
  186.    
  187.     if (Return_Object) then
  188.         return NewFrame
  189.     end
  190. end
  191.  
  192. function FunctionTable.Create_TextButton(Object_Name, Button_Text, Object_Directory, Object_Size, Object_Position, Object_ZIndex)
  193.     local Button = Instance.new("TextButton", Object_Directory)
  194.     Button.Name = tostring(Object_Name)
  195.     Button.Size = Object_Size
  196.     Button.Position = Object_Position
  197.     Button.ZIndex = Object_ZIndex
  198.     Button.BackgroundTransparency = 1
  199.     Button.BorderSizePixel = 0
  200.     Button.BackgroundColor3 = Color3.new(0,0,0)
  201.     Button.Text = tostring(Button_Text)
  202.     Button.FontSize = "Size24"
  203.     if (not Button.TextFits) then
  204.         Button.TextScaled = true
  205.     else
  206.         Button.TextScaled = false
  207.     end
  208.     Button.TextXAlignment = "Center"
  209.     Button.TextYAlignment = "Center"
  210.     Button.TextColor3 = Color3.new(1,1,1)
  211.     Button.Font = "SourceSans"
  212.  
  213.     local Ylight = Instance.new("Frame", Button)
  214.     Ylight.BorderSizePixel = 0
  215.     Ylight.Size = UDim2.new(0,0,0,0)
  216.     Ylight.Position = UDim2.new(0,-2,0.5,0)
  217.     Ylight.BackgroundTransparency = 0.4
  218.     Ylight.BackgroundColor3 = Color3.new(1,1,1)
  219.     Ylight.ZIndex = Object_ZIndex
  220.  
  221.     local Highlight = Instance.new("Frame", Button)
  222.     Highlight.BorderSizePixel = 0
  223.     Highlight.Position = UDim2.new(0.5,0,0.5,0)
  224.     Highlight.Size = UDim2.new(1,0,0,0)
  225.     Highlight.BackgroundTransparency = 0.8
  226.     Highlight.BackgroundColor3 = Color3.new(0,0,0)
  227.     Highlight.ZIndex = Object_ZIndex
  228.  
  229.     Button.MouseEnter:Connect(function()
  230.         Ylight:TweenSizeAndPosition(UDim2.new(0,2,1,0), UDim2.new(0,-2,0,0), "Out", "Quad", 0.2, true)
  231.         Highlight:TweenSizeAndPosition(UDim2.new(1,0,1,0), UDim2.new(0,0,0,0), "Out", "Quad", 0.2, true)
  232.     end)
  233.  
  234.     Button.MouseLeave:Connect(function()
  235.         Ylight:TweenSizeAndPosition(UDim2.new(0,0,0,0), UDim2.new(0,-2,0.5,0), "Out", "Quad", 0.2, true)
  236.         Highlight:TweenSizeAndPosition(UDim2.new(1,0,0,0), UDim2.new(0,0,0.5,0), "Out", "Quad", 0.2, true)
  237.     end)
  238.  
  239.     return Button
  240. end
  241.  
  242. function FunctionTable.Create_OverflowMenu_TextButton(Object_Name, Object_Directory, Object_Size, Object_Position, Object_ZIndex, MenuOptions, ExpandSize)
  243.     local Button = FunctionTable["Create_TextButton"](tostring(Object_Name), tostring(MenuOptions[1][2]), Object_Directory, Object_Size, Object_Position, Object_ZIndex)
  244.     local ButtonValue = Instance.new("StringValue", Button)
  245.     ButtonValue.Name = "Value"
  246.     Button.MouseButton1Click:Connect(function()
  247.         local ScrollSize = UDim2.new(Object_Size.X.Scale, Object_Size.X.Offset, Object_Size.Y.Scale, Object_Size.Y.Offset+ExpandSize)
  248.         local ScrollPosition = UDim2.new(Object_Position.X.Scale, Object_Position.X.Offset, Object_Position.Y.Scale, Object_Position.Y.Offset-(ExpandSize/2))
  249.         Button:TweenSizeAndPosition(ScrollSize, ScrollPosition, "Out", "Quad", 0.25, true)     
  250.         Button.Text = ""       
  251.         local ScrollList = FunctionTable["Create_ScrollList_Text"](tostring(Object_Name), Object_Directory, ScrollSize, ScrollPosition, false, MenuOptions, Object_ZIndex+1, nil, true, true)
  252.         local Items = ScrollList:GetChildren()
  253.         for x = 1, #Items do
  254.             local Item = Items[x]
  255.             if (Item:IsA("ImageButton")) then
  256.                 Item.MouseButton1Click:Connect(function()
  257.                     ButtonValue.Value = tostring(Item.Parent.Frame.Frame[Item.Name].Text)
  258.                     Button.Text = ButtonValue.Value
  259.                     Button:TweenSizeAndPosition(Object_Size, Object_Position, "Out", "Quad", 0.25, true)
  260.                     ScrollList:Destroy()
  261.                 end)
  262.             end
  263.         end
  264.     end)
  265.     return Button, ButtonValue
  266. end
  267.  
  268. function FunctionTable.Create_LoadBar_Continuous(Object_Name, Object_Directory, Object_Size, Object_Position, Object_ZIndex, Delay, FadeIn, Speed)
  269.     local Container = Instance.new("Frame", Object_Directory)
  270.     Container.Name = tostring(Object_Name)
  271.     Container.Size = Object_Size
  272.     Container.Position = Object_Position
  273.     Container.BackgroundColor3 = Color3.new(1,1,1)
  274.     Container.BorderSizePixel = 0
  275.     Container.ZIndex = tonumber(Object_ZIndex)
  276.     Container.Visible = false
  277.     Container.ClipsDescendants = true
  278.  
  279.     local B1 = Instance.new("Frame", Container)
  280.     B1.BackgroundColor3 = Color3.new(1,1,1)
  281.     B1.Visible = false
  282.     B1.Size = UDim2.new(0,50,1,0)
  283.     B1.Position = UDim2.new(0,-50,0,0)
  284.     B1.BorderSizePixel = 0
  285.     B1.ZIndex = Object_ZIndex
  286.  
  287.     local B2 = Instance.new("Frame", Container)
  288.     B2.BackgroundColor3 = Color3.new(1,1,1)
  289.     B2.Visible = false
  290.     B2.Size = UDim2.new(0,50,1,0)
  291.     B2.Position = UDim2.new(0,-50,0,0)
  292.     B2.BorderSizePixel = 0
  293.     B2.ZIndex = tonumber(Object_ZIndex)
  294.  
  295.     local B3 = Instance.new("Frame", Container)
  296.     B3.BackgroundColor3 = Color3.new(1,1,1)
  297.     B3.Visible = false
  298.     B3.Size = UDim2.new(0,50,1,0)
  299.     B3.Position = UDim2.new(0,-50,0,0)
  300.     B3.BorderSizePixel = 0
  301.     B3.ZIndex = tonumber(Object_ZIndex)
  302.  
  303.     local B4 = Instance.new("Frame", Container)
  304.     B4.BackgroundColor3 = Color3.new(1,1,1)
  305.     B4.Visible = false
  306.     B4.Size = UDim2.new(0,50,1,0)
  307.     B4.Position = UDim2.new(0,-50,0,0)
  308.     B4.BorderSizePixel = 0
  309.     B4.ZIndex = tonumber(Object_ZIndex)
  310.  
  311.     spawn(function()
  312.         while wait(Speed/2) do
  313.             B1.Position = UDim2.new(0,-50,0,0)
  314.             B2.Position = UDim2.new(0,-50,0,0)
  315.             B3.Position = UDim2.new(0,-50,0,0)
  316.             B4.Position = UDim2.new(0,-50,0,0)
  317.             wait(0)
  318.             B1:TweenPosition(UDim2.new(1,0,0,0), "InOut", "Quint", (Speed/2), true)
  319.             wait(Speed/12)
  320.             B2:TweenPosition(UDim2.new(1,0,0,0), "InOut", "Quint", (Speed/2), true)
  321.             wait(Speed/12)
  322.             B3:TweenPosition(UDim2.new(1,0,0,0), "InOut", "Quint", (Speed/2), true)
  323.             wait(Speed/12)
  324.             B4:TweenPosition(UDim2.new(1,0,0,0), "InOut", "Quint", (Speed/2), true)
  325.             wait(Speed/12)
  326.         end
  327.     end)
  328.     if FadeIn then
  329.         Container.BackgroundTransparency = 1
  330.         B1.BackgroundTransparency = 1
  331.         B2.BackgroundTransparency = 1
  332.         B3.BackgroundTransparency = 1
  333.         B4.BackgroundTransparency = 1
  334.         Container.Visible = true
  335.         B1.Visible = true
  336.         B2.Visible = true
  337.         B3.Visible = true
  338.         B4.Visible = true
  339.         for x = 1, 5 do
  340.             B1.BackgroundTransparency = B1.BackgroundTransparency - 0.08
  341.             B2.BackgroundTransparency = B2.BackgroundTransparency - 0.08
  342.             B3.BackgroundTransparency = B3.BackgroundTransparency - 0.08
  343.             B4.BackgroundTransparency = B4.BackgroundTransparency - 0.08
  344.             Container.BackgroundTransparency = Container.BackgroundTransparency - 0.025
  345.             wait(1/30)
  346.         end
  347.         wait(Delay-Delay/4)
  348.         for x = 1, 5 do
  349.             B1.BackgroundTransparency = B1.BackgroundTransparency + 0.08
  350.             B2.BackgroundTransparency = B2.BackgroundTransparency + 0.08
  351.             B3.BackgroundTransparency = B3.BackgroundTransparency + 0.08
  352.             B4.BackgroundTransparency = B4.BackgroundTransparency + 0.08
  353.             Container.BackgroundTransparency = Container.BackgroundTransparency + 0.025
  354.             wait(1/30)
  355.         end
  356.         wait(0)
  357.         Container:Destroy()
  358.     elseif (not FadeIn) then
  359.         Container.BackgroundTransparency = 0.8
  360.         B1.BackgroundTransparency = 0.6
  361.         B2.BackgroundTransparency = 0.6
  362.         B3.BackgroundTransparency = 0.6
  363.         B4.BackgroundTransparency = 0.6
  364.         Container.Visible = true
  365.         B1.Visible = true
  366.         B2.Visible = true
  367.         B3.Visible = true
  368.         B4.Visible = true
  369.         wait(Delay)
  370.         Container:Destroy()
  371.     end
  372. end
  373.  
  374. function FunctionTable.Create_LoadBar_Fixed(Object_Name, Object_Directory, Object_Size, Object_Position, Delay, FadeIn, LoadPercent)
  375.    
  376. end
  377.  
  378. function FunctionTable.Create_LoadCircle(Object_Name, Object_Directory, Object_Size, Object_Position, Delay, FadeIn)
  379.    
  380. end
  381.  
  382. function FunctionTable.Create_Slider(Object_Name, Object_Directory, Object_Size, Object_Position, Object_ZIndex, Create_Container, Maximum, Minimum, Steps, Value)
  383.     if (Create_Container) then
  384.         repeat wait() until FunctionTable.Create_Frame
  385.         local Container = FunctionTable.Create_Frame(Object_Name, Object_Directory, Object_Size, Object_Position, Object_ZIndex, true, true)
  386.  
  387.         local Line = Instance.new("Frame", Container)
  388.         Line.BorderSizePixel = 0
  389.         Line.ZIndex = Object_ZIndex
  390.         Line.BackgroundTransparency = 0.4
  391.         Line.BackgroundColor3 = Color3.new(1,1,1)
  392.         Line.Size = UDim2.new(1,-20,0,2)
  393.         Line.Position = UDim2.new(0,10,0.5,-1)
  394.  
  395.         local MinStep = Instance.new("Frame", Line)
  396.         MinStep.Position = UDim2.new(0,0,-1,0)
  397.         MinStep.Size = UDim2.new(0,2,2,0)
  398.         MinStep.BorderSizePixel = 0
  399.         MinStep.BackgroundTransparency = 0.2
  400.         MinStep.BackgroundColor3 = Color3.new(1,1,1)
  401.         MinStep.ZIndex = Object_ZIndex
  402.  
  403.         local MaxStep = Instance.new("Frame", Line)
  404.         MaxStep.Position = UDim2.new(1,-2,-1,0)
  405.         MaxStep.Size = UDim2.new(0,2,2,0)
  406.         MaxStep.BorderSizePixel = 0
  407.         MaxStep.BackgroundTransparency = 0.2
  408.         MaxStep.BackgroundColor3 = Color3.new(1,1,1)
  409.         MaxStep.ZIndex = Object_ZIndex
  410.  
  411.         local StepValues = {}
  412.         table.insert(StepValues, Minimum)
  413.         for x = 1, Steps do
  414.             local Positions = (1/(Steps+1))
  415.             local StepFrame = Instance.new("Frame", Line)              
  416.             StepFrame.Position = UDim2.new((Positions*x),-1,-1.5,0)
  417.             StepFrame.Size = UDim2.new(0,2,3,0)
  418.             StepFrame.BorderSizePixel = 0
  419.             StepFrame.BackgroundTransparency = 0.2
  420.             StepFrame.BackgroundColor3 = Color3.new(1,1,1)
  421.             StepFrame.ZIndex = Object_ZIndex
  422.             table.insert(StepValues, (((Maximum-Minimum)/(Steps+1)))*x)
  423.         end
  424.         table.insert(StepValues, Maximum)
  425.         for x = 1, #StepValues do
  426.             print(StepValues[x])
  427.         end
  428.     end
  429. end
  430.  
  431. function FunctionTable.Create_Indicator_Bar(Object_Name, Object_Directory, Object_Size, Object_Position, Create_Container, Indicator_Value, Include_Tag, Object_ZIndex, Return_Object)
  432.     if (Create_Container) then
  433.         repeat wait() until FunctionTable.Create_Frame
  434.         local Container = FunctionTable.Create_Frame(Object_Name, Object_Directory, Object_Size, Object_Position, Object_ZIndex, true, true)
  435.        
  436.         local IndicatorFrame = Instance.new("Frame", Container)
  437.         IndicatorFrame.ZIndex = Object_ZIndex
  438.         IndicatorFrame.Size = UDim2.new(1,-6,1,-6)
  439.         IndicatorFrame.Position = UDim2.new(0,3,0,3)
  440.         IndicatorFrame.BackgroundTransparency = 0.8
  441.         IndicatorFrame.BorderSizePixel = 0
  442.         IndicatorFrame.BackgroundColor3 = Color3.new(1,1,1)
  443.        
  444.         local Bar = Instance.new("Frame", IndicatorFrame)
  445.         Bar.ZIndex = Object_ZIndex
  446.         Bar.Size = UDim2.new(1,0,1,0)
  447.         Bar.Position = UDim2.new(0,0,0,0)
  448.         Bar.BackgroundTransparency = 0.6
  449.         Bar.BorderSizePixel = 0
  450.         Bar.BackgroundColor3 = Color3.new(1,1,1)
  451.         Indicator_Value.Changed:Connect(function()
  452.             local Percentage = (Indicator_Value.Value / Indicator_Value.MaxValue)
  453.             Bar:TweenSize(UDim2.new(Percentage,0,1,0),"Out","Quad",0.125,true)
  454.         end)
  455.     else
  456.         local IndicatorFrame = Instance.new("Frame", Object_Directory)
  457.         IndicatorFrame.Name = tostring(Object_Name)
  458.         IndicatorFrame.ZIndex = Object_ZIndex
  459.         IndicatorFrame.Size = Object_Size
  460.         IndicatorFrame.Position = Object_Position
  461.         IndicatorFrame.BackgroundTransparency = 0.8
  462.         IndicatorFrame.BorderSizePixel = 0
  463.         IndicatorFrame.BackgroundColor3 = Color3.new(1,1,1)
  464.        
  465.         local Bar = Instance.new("Frame", IndicatorFrame)
  466.         Bar.ZIndex = Object_ZIndex
  467.         Bar.Size = UDim2.new(1,0,1,0)
  468.         Bar.Position = UDim2.new(0,0,0,0)
  469.         Bar.BackgroundTransparency = 0.6
  470.         Bar.BorderSizePixel = 0
  471.         Bar.BackgroundColor3 = Color3.new(1,1,1)
  472.         Indicator_Value.Changed:Connect(function()
  473.             local Percentage = (Indicator_Value.Value / Indicator_Value.MaxValue)
  474.             Bar:TweenSize(UDim2.new(Percentage,0,1,0),"Out","Quad",0.125,true)
  475.         end)
  476.     end
  477. end
  478.  
  479. function FunctionTable.Create_Notification(Notification_Title, Notification_Description, Duration)
  480.     repeat wait() until FunctionTable.Create_Frame
  481.     local TemporaryUI = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer.PlayerGui)
  482.     local Container = FunctionTable.Create_Frame("Notification", TemporaryUI, UDim2.new(0,0,0,0), UDim2.new(0,0,0,0), 10, true, true)
  483.     Container.Position = UDim2.new(math.random(25/100,75/100),0,math.random(25/100,75/100),0)
  484.    
  485.     local Title = Instance.new("TextLabel", Container)
  486.     Title.ZIndex = 10
  487.     Title.BorderSizePixel = 0
  488.     Title.BackgroundTransparency = 2
  489.     Title.Position = UDim2.new(0,0,0,0)
  490.     Title.Size = UDim2.new(1,0,0.45,0)
  491.     Title.Font = "SourceSans"
  492.     Title.FontSize = "Size24"
  493.     Title.Text = tostring(Notification_Title)
  494.     Title.TextColor3 = Color3.new(1,1,1)
  495.     Title.TextTransparency = 1
  496.     Title.TextScaled = true
  497.     Title.TextWrapped = true
  498.    
  499.     local Description = Instance.new("TextLabel", Container)
  500.     Description.ZIndex = 10
  501.     Description.BorderSizePixel = 0
  502.     Description.BackgroundTransparency = 2
  503.     Description.Position = UDim2.new(0,0,0.45,0)
  504.     Description.Size = UDim2.new(1,0,0.5,0)
  505.     Description.Font = "SourceSans"
  506.     Description.FontSize = "Size24"
  507.     Description.Text = tostring(Notification_Description)
  508.     Description.TextColor3 = Color3.new(1,1,1)
  509.     Description.TextScaled = true
  510.     Description.TextTransparency = 1
  511.     Description.TextWrapped = true
  512.  
  513.     Container:TweenSizeAndPosition(UDim2.new(0.2,0,0.2,0), UDim2.new(0.4,0,0.05,0),"Out","Quad",0.5,true)  
  514.     spawn(function()
  515.         wait(0.15)
  516.         for x = 1, 0, -0.1 do
  517.             Title.TextTransparency = x
  518.             Description.TextTransparency = x
  519.             wait(0)
  520.         end
  521.         wait(Duration)
  522.         Container:TweenSizeAndPosition(UDim2.new(0,0,0,0),UDim2.new(math.random(25/100,75/100),0,math.random(25/100,75/100),0),"Out","Quad",0.5,true)
  523.         for x = 0, 1, 0.1 do
  524.             Title.TextTransparency = x
  525.             Description.TextTransparency = x
  526.             wait(0)
  527.         end
  528.         wait(1)
  529.         Container:Destroy()
  530.     end)
  531. end
  532.  
  533. function FunctionTable.Create_TabbedMenu(Object_Name, Object_Directory, Object_Size, Object_Position, Object_ZIndex, Menu_Option_Table)
  534.     local Container = FunctionTable.Create_Frame(tostring(Object_Name), Object_Directory, Object_Size, Object_Position, Object_ZIndex, true, true)
  535.     local MenuTabs = Instance.new("Frame", Container)
  536.     MenuTabs.Size = UDim2.new(1,0,0,75)
  537.     MenuTabs.ZIndex = Object_ZIndex
  538.     MenuTabs.Position = UDim2.new(0,0,0,0)
  539.     MenuTabs.BorderSizePixel = 0
  540.     MenuTabs.BackgroundTransparency = 0.9
  541.     MenuTabs.BackgroundColor3 = Color3.new(0,0,0)
  542.     --[[local DecorBar = Instance.new("Frame", MenuTabs)
  543.     DecorBar.Size = UDim2.new(1,0,0,3)
  544.     DecorBar.Position = UDim2.new(0,0,0,-5)
  545.     DecorBar.BorderSizePixel = 0
  546.     DecorBar.BackgroundTransparency = 0.8
  547.     DecorBar.BackgroundColor3 = Color3.new(1,1,1)
  548.     DecorBar.ZIndex = Object_ZIndex]]
  549.     local Dif = 1/#Menu_Option_Table
  550.     local Selected
  551.     local SelectBar = Instance.new("Frame", MenuTabs)
  552.     SelectBar.Size = UDim2.new(Dif,0,0,2)
  553.     SelectBar.Position = UDim2.new(0,0,1,-5)
  554.     SelectBar.BorderSizePixel = 0
  555.     SelectBar.BackgroundTransparency = 0.5
  556.     SelectBar.BackgroundColor3 = Color3.new(1,1,1)
  557.     SelectBar.ZIndex = Object_ZIndex
  558.     for x = 1, #Menu_Option_Table do
  559.         local MenuButton = FunctionTable.Create_TextButton(tostring(Menu_Option_Table[x][1]), tostring(Menu_Option_Table[x][2]), MenuTabs, UDim2.new(Dif,0,0.8,0), UDim2.new(((Dif*x)-Dif),0,0.1,0), Object_ZIndex)
  560.         --local ItemContainer = FunctionTable.Create_Frame(tostring(Menu_Option_Table[x][1]), Container, UDim2.new(1,0,1,-75), UDim2.new(0,0,0,-1), Object_ZIndex, true, true)
  561.        
  562.         local ItemContainer = Instance.new("Frame", Container)
  563.         ItemContainer.Name = tostring(Menu_Option_Table[x][1])
  564.         ItemContainer.Size = UDim2.new(1,0,1,-75)      
  565.         ItemContainer.Position = UDim2.new(0,0,0,1)
  566.         ItemContainer.ZIndex = Object_ZIndex
  567.         ItemContainer.BackgroundColor3 = Color3.new(0,0,0)
  568.         ItemContainer.BackgroundTransparency = 0.75
  569.         ItemContainer.BorderSizePixel = 0
  570.  
  571.         MenuButton.MouseEnter:Connect(function()
  572.             if (Selected ~= ItemContainer) then
  573.             ItemContainer:TweenPosition(UDim2.new(0,0,0.75,75), "Out", "Quint", 0.25, true)
  574.                 if (Selected~=nil) then
  575.                     Selected:TweenPosition(UDim2.new(0,0,-0.2,75), "Out", "Quint", 0.25, true)
  576.                 end
  577.             end
  578.         end)
  579.  
  580.         MenuButton.MouseLeave:Connect(function()
  581.             if (Selected ~= ItemContainer) then
  582.             ItemContainer:TweenPosition(UDim2.new(0,0,1,75), "Out", "Quint", 0.25, true)
  583.                 if (Selected~=nil) then
  584.                     Selected:TweenPosition(UDim2.new(0,0,0,75), "Out", "Quint", 0.25, true)
  585.                 end
  586.             end
  587.         end)
  588.  
  589.         MenuButton.MouseButton1Click:Connect(function()
  590.             if (Selected ~= ItemContainer) then
  591.             Selected:TweenPosition(UDim2.new(0,0,1,0), "Out", "Quint", 0.4, true)
  592.             Selected = ItemContainer
  593.             SelectBar:TweenPosition(UDim2.new(MenuTabs[Selected.Name].Position.X.Scale, 0, 1, -5), "Out", "Quad", 0.25, true)
  594.             ItemContainer:TweenPosition(UDim2.new(0,0,0,75), "Out", "Quint", 0.4, true)
  595.             end
  596.         end)
  597.     end
  598.     Selected = Container[Menu_Option_Table[1][1]]
  599.     Container[Menu_Option_Table[1][1]]:TweenPosition(UDim2.new(0,0,0,75), "Out", "Quint", 0.25, true)
  600.     SelectBar:TweenPosition(UDim2.new(MenuTabs[Selected.Name].Position.X.Scale, 0, 1, -5), "Out", "Quad", 0.25, true)
  601. end
  602.  
  603. function FunctionTable.Create_DynamicList_Scroll(Object_Name, Object_Directory, Object_Size, Object_Position, Create_Container, List_Table, Object_ZIndex, Return_Objects, Add_Direction)
  604.     local TableNo = #List_Table
  605.     if (Create_Container) then
  606.         local Frame = FunctionTable.Create_Frame(tostring(Object_Name), Object_Directory, Object_Size, Object_Position, Object_ZIndex, true, true)
  607.         local Container = Instance.new("Frame", Frame)
  608.         Container.BackgroundTransparency = 1
  609.         Container.Size = UDim2.new(1,0,1,0)
  610.         Container.Position = UDim2.new(0,0,0,0)
  611.         Container.ZIndex = Object_ZIndex
  612.         spawn(function()
  613.             if (Add_Direction == "Downward") then
  614.                 while wait(1) do
  615.                     if (#List_Table > TableNo) then
  616.                         TableNo = #List_Table
  617.                         local OldStuff = Container:GetChildren()
  618.                         for x = 1, #OldStuff do
  619.                             if (OldStuff[x]:IsA("TextLabel")) then
  620.                                 OldStuff[x]:TweenPosition(UDim2.new(0,0,0,OldStuff[x].Position.Y.Offset + 50), "Out", "Quint", 0.5, true)
  621.                             end
  622.                         end
  623.                         local Label = Instance.new("TextLabel", Container)
  624.                         Label.BackgroundTransparency = 1
  625.                         Label.Size = UDim2.new(1,0,0,50)
  626.                         Label.Position = UDim2.new(-1,0,0,0)
  627.                         Label.BorderSizePixel = 0
  628.                         Label.Text = tostring(List_Table[TableNo])
  629.                         Label.FontSize = "Size24"
  630.                         if (not Label.TextFits) then
  631.                             Label.TextScaled = true
  632.                         end
  633.                         Label.TextColor3 = Color3.new(1,1,1)
  634.                         Label.Font = "SourceSans"
  635.                         Label:TweenPosition(UDim2.new(0,0,0,0), "Out", "Quad", 0.35, true)
  636.                     end
  637.                 end
  638.             elseif (Add_Direction == "Upward") then
  639.                 while wait(1) do
  640.                     if (#List_Table > TableNo) then
  641.                         TableNo = #List_Table
  642.                         local OldStuff = Container:GetChildren()
  643.                         for x = 1, #OldStuff do
  644.                             if (OldStuff[x]:IsA("TextLabel")) then
  645.                                 if (OldStuff[x].Position.Y.Scale <= -0.5) then
  646.                                     OldStuff[x]:Destroy()
  647.                                 end
  648.                                 OldStuff[x]:TweenPosition(UDim2.new(0,0,1,OldStuff[x].Position.Y.Offset - 50), "Out", "Quint", 0.5, true)
  649.                             end
  650.                         end
  651.                         local Label = Instance.new("TextLabel", Container)
  652.                         Label.BackgroundTransparency = 1
  653.                         Label.Size = UDim2.new(1,0,0,50)
  654.                         Label.Position = UDim2.new(-1,0,1,-50)
  655.                         Label.BorderSizePixel = 0
  656.                         Label.Text = tostring(List_Table[TableNo])
  657.                         Label.FontSize = "Size24"
  658.                         if (not Label.TextFits) then
  659.                             Label.TextScaled = true
  660.                         end
  661.                         Label.TextColor3 = Color3.new(1,1,1)
  662.                         Label.Font = "SourceSans"
  663.                         Label:TweenPosition(UDim2.new(0,0,1,-50), "Out", "Quad", 0.35, true)
  664.                     end
  665.                 end
  666.             end
  667.         end)
  668.         local InFrame = false
  669.         Frame.MouseEnter:Connect(function()
  670.             InFrame = true
  671.             while InFrame do
  672.                 if (not InFrame) then break end
  673.                 Container.Position = UDim2.new(0,0,0,(Container.AbsoluteSize.Y - UserInputService.GetMouseLocation().Y))
  674.                 wait(1/30)
  675.             end
  676.         end)
  677.         Frame.MouseLeave:Connect(function()
  678.             InFrame = false
  679.             Container:TweenPosition(UDim2.new(0,0,0,0), "Out", "Quint", 0.4, true)
  680.         end)
  681.     end
  682. end
  683.  
  684. function FunctionTable.Create_DynamicList_Fixed(Object_Name, Object_Directory, Object_Size, Object_Position, Create_Container, List_Table, Object_ZIndex, Return_Objects, Add_Direction)
  685.     local TableNo = #List_Table
  686.     --[[local NewChild = Instance.new("BindableEvent", game:GetService("Players").LocalPlayer)
  687.     setmetatable(Table, {
  688.         __newindex = function(Table, i, v)
  689.             rawset(Table, i, v)
  690.             NewChild:Fire()
  691.         end,
  692.         __index = function(Table, i, v)
  693.             rawset(Table, i, v)
  694.             NewChild:Fire()
  695.         end
  696.     })]]
  697.     if (Create_Container) then
  698.         local Frame = FunctionTable.Create_Frame(tostring(Object_Name), Object_Directory, Object_Size, Object_Position, Object_ZIndex, true, true)
  699.         local Container = Instance.new("Frame", Frame)
  700.         Container.BackgroundTransparency = 1
  701.         Container.Size = UDim2.new(1,0,1,0)
  702.         Container.Position = UDim2.new(0,0,0,0)
  703.         Container.ZIndex = Object_ZIndex
  704.         spawn(function()
  705.             if (Add_Direction == "Downward") then
  706.             while wait(1) do
  707.                 if (#List_Table > TableNo) then
  708.                     TableNo = #List_Table
  709.                     local OldStuff = Container:GetChildren()
  710.                     for x = 1, #OldStuff do
  711.                         if (OldStuff[x]:IsA("TextLabel")) then
  712.                             OldStuff[x]:TweenPosition(UDim2.new(0,0,0,OldStuff[x].Position.Y.Offset + 50), "Out", "Quint", 0.5, true)
  713.                         end
  714.                     end
  715.                     local Label = Instance.new("TextLabel", Container)
  716.                     Label.BackgroundTransparency = 1
  717.                     Label.Size = UDim2.new(1,0,0,50)
  718.                     Label.Position = UDim2.new(-1,0,0,0)
  719.                     Label.BorderSizePixel = 0
  720.                     Label.Text = tostring(List_Table[TableNo])
  721.                     Label.FontSize = "Size24"
  722.                     if (not Label.TextFits) then
  723.                         Label.TextScaled = true
  724.                     end
  725.                     Label.TextColor3 = Color3.new(1,1,1)
  726.                     Label.Font = "SourceSans"
  727.                     Label:TweenPosition(UDim2.new(0,0,0,0), "Out", "Quad", 0.35, true)
  728.                 end
  729.             end
  730.             elseif (Add_Direction == "Upward") then
  731.             while wait(1) do
  732.                 if (#List_Table > TableNo) then
  733.                     TableNo = #List_Table
  734.                     local OldStuff = Container:GetChildren()
  735.                     for x = 1, #OldStuff do
  736.                         if (OldStuff[x]:IsA("TextLabel")) then
  737.                             if (OldStuff[x].Position.Y.Scale <= -0.5) then
  738.                                 OldStuff[x]:Destroy()
  739.                             end
  740.                             OldStuff[x]:TweenPosition(UDim2.new(0,0,1,OldStuff[x].Position.Y.Offset - 50), "Out", "Quint", 0.5, true)
  741.                         end
  742.                     end
  743.                     local Label = Instance.new("TextLabel", Container)
  744.                     Label.BackgroundTransparency = 1
  745.                     Label.Size = UDim2.new(1,0,0,50)
  746.                     Label.Position = UDim2.new(-1,0,1,-50)
  747.                     Label.BorderSizePixel = 0
  748.                     Label.Text = tostring(List_Table[TableNo])
  749.                     Label.FontSize = "Size24"
  750.                     if (not Label.TextFits) then
  751.                         Label.TextScaled = true
  752.                     end
  753.                     Label.TextColor3 = Color3.new(1,1,1)
  754.                     Label.Font = "SourceSans"
  755.                     Label:TweenPosition(UDim2.new(0,0,1,-50), "Out", "Quad", 0.35, true)
  756.                 end
  757.             end
  758.             end
  759.         end)
  760.         --[[NewChild.Event:Connect(function()
  761.             local Oldshit = Container:GetChildren()
  762.             for x = 1, #Oldshit do
  763.                 if (OldStuff[x]:IsA("TextLabel")) then
  764.                     OldStuff[x]:TweenPosition(UDim2.new(0,0,0,OldStuff[x].Position.x.Offset - 50), "Out", "Quint", 0.25, true)
  765.                 end
  766.             end
  767.             local Label = Instance.new("TextLabel", Container)
  768.             Label.BackgroundTransparency = 1
  769.             Label.Size = UDim2.new(1,0,0,50)
  770.             Label.Position = UDim2.new(-1,0,0,0)
  771.             Label.BackgroundColor3 = Color3.new(0,0,0)
  772.             Label.BorderSizePixel = 0
  773.             Label.ZIndex = Object_ZIndex
  774.             Label.Font = "SourceSans"
  775.             Label.Text = tostring(Table[#Table])
  776.             Label.FontSize = "Size24"
  777.             if (not Label.TextFits) then
  778.                 Label.TextScaled = true
  779.             end
  780.             Label:TweenPosition(UDim2.new(0,0,0,0), "Out", "Quint", 0.25, true)
  781.         end)]]
  782.     end
  783.    
  784. end
  785.  
  786. function FunctionTable.Create_ScrollList_Image(Object_Name, Object_Directory, Object_Size, Object_Position, Create_Container, Item_Table, Object_ZIndex, Item_Names, Item_Button_Directory, Contain, Return_Objects)
  787.     if (Create_Container) then
  788.         repeat wait() until FunctionTable.Create_Frame
  789.         local Container = FunctionTable.Create_Frame(tostring(Object_Name), Object_Directory, Object_Size, Object_Position, Object_ZIndex, true, true)
  790.        
  791.         local FrameContainer = Instance.new("Frame", Container)
  792.         FrameContainer.Size = UDim2.new(1,0,1,0)
  793.         FrameContainer.Position = UDim2.new(0,0,0,0)
  794.         FrameContainer.BackgroundColor3 = Color3.new(0,0,0)
  795.         FrameContainer.BackgroundTransparency = 2
  796.         FrameContainer.BorderSizePixel = 0
  797.         FrameContainer.ZIndex = Object_ZIndex
  798.        
  799.         local VisualFrame = Instance.new("Frame", FrameContainer)
  800.         VisualFrame.BackgroundTransparency = 2
  801.         VisualFrame.BorderSizePixel = 0
  802.         VisualFrame.Position = UDim2.new(0,0,0,0)
  803.         VisualFrame.Size = UDim2.new(1,0,1,0)
  804.         VisualFrame.ZIndex = Object_ZIndex
  805.        
  806.         local NumberItems = #Item_Table
  807.         local Difference = (1/NumberItems)
  808.         local VisualDifference = 0.25
  809.         local CenterPos = UDim2.new(0,0,0.375,0)
  810.         local CenterSize = UDim2.new(1,0,0.25,0)
  811.         local OtherSize = UDim2.new(0.75,0,0.125,0)
  812.         local VisualPos = 0.675
  813.         local ButtonPos = 0
  814.         for x = 1, NumberItems do
  815.             local ImageFrame = Instance.new("Frame", VisualFrame)
  816.             ImageFrame.Transparency = 2
  817.             ImageFrame.Name = Item_Table[x][1]
  818.             ImageFrame.ZIndex = Object_ZIndex
  819.             ImageFrame.Size = UDim2.new(0.75,0,0.125,0)
  820.             ImageFrame.Position = UDim2.new(0.125,0,VisualPos,0)
  821.             ImageFrame.BorderSizePixel = 0
  822.             local ImageTag = Instance.new("NumberValue", ImageFrame)
  823.             ImageTag.Name = "ItemNumber"
  824.             ImageTag.Value = x
  825.             local ImageLabel = Instance.new("ImageLabel", ImageFrame)
  826.             ImageLabel.Name = "ItemImage"
  827.             ImageLabel.BackgroundTransparency = 2
  828.             ImageLabel.Image = Item_Table[x][3]
  829.             ImageLabel.Size = UDim2.new(0.5,0,1,0)
  830.             ImageLabel.Position = UDim2.new(0,0,0,0)
  831.             ImageLabel.ZIndex = Object_ZIndex
  832.                 if (Item_Names) then
  833.                     local ImageName = Instance.new("TextLabel", ImageFrame)
  834.                     ImageName.BackgroundTransparency = 2
  835.                     ImageName.BorderSizePixel = 0
  836.                     ImageName.Name = "ItemName"
  837.                     ImageName.Position = UDim2.new(0.1,0,0,0)
  838.                     ImageName.Size = UDim2.new(1,0,1,0)
  839.                     ImageName.Text = Item_Table[x][2]
  840.                     ImageName.ZIndex = Object_ZIndex
  841.                     ImageName.Font = "SourceSans"
  842.                     ImageName.FontSize = "Size18"
  843.                     ImageName.TextColor3 = Color3.new(1,1,1)
  844.                 end
  845.             local NewButton = Instance.new("ImageButton", FrameContainer)
  846.             NewButton.Name = Item_Table[x][1]
  847.             NewButton.BackgroundTransparency = 2
  848.             NewButton.BorderSizePixel = 0
  849.             NewButton.Size = UDim2.new(1,0,Difference,0)
  850.             NewButton.Position = UDim2.new(0,0,ButtonPos,0)
  851.             NewButton.ZIndex = Object_ZIndex
  852.             local Button_CodeConnection = Item_Button_Directory[Item_Table[x][1]]:Clone()
  853.             Button_CodeConnection.Parent = NewButton
  854.             Button_CodeConnection.Disabled = false
  855.             ButtonPos = (ButtonPos+Difference)
  856.             VisualPos = (VisualPos+VisualDifference)
  857.             NewButton.MouseEnter:Connect(function()
  858.                 VisualFrame:TweenPosition(UDim2.new(0,0,(-0.25*(VisualFrame[NewButton.Name].ItemNumber.Value)),0), "Out", "Quad", 0.25, true)
  859.                 VisualFrame[NewButton.Name]:TweenSize(CenterSize, "Out", "Quad", 0.25, true)
  860.                 if (Item_Names) then
  861.                     VisualFrame[NewButton.Name].ItemName.TextTransparency = 0
  862.                 end
  863.             end)
  864.             NewButton.MouseLeave:Connect(function()
  865.                 VisualFrame[NewButton.Name]:TweenSize(OtherSize, "Out", "Quad", 0.25, true)
  866.                 if (Item_Names) then
  867.                     VisualFrame[NewButton.Name].ItemName.TextTransparency = 0.75
  868.                 end
  869.             end)
  870.         end
  871.     else
  872.         local FrameContainer = Instance.new("Frame", Object_Directory)
  873.         FrameContainer.Size = Object_Size
  874.         FrameContainer.Position = Object_Position
  875.         FrameContainer.BackgroundColor3 = Color3.new(0,0,0)
  876.         FrameContainer.BackgroundTransparency = 2
  877.         FrameContainer.BorderSizePixel = 0
  878.         FrameContainer.ZIndex = Object_ZIndex
  879.        
  880.         local VisualFrame = Instance.new("Frame", FrameContainer)
  881.         VisualFrame.BackgroundTransparency = 2
  882.         VisualFrame.BorderSizePixel = 0
  883.         VisualFrame.Position = UDim2.new(0,0,0,0)
  884.         VisualFrame.Size = UDim2.new(1,0,1,0)
  885.         VisualFrame.ZIndex = Object_ZIndex
  886.        
  887.         local NumberItems = #Item_Table
  888.         local Difference = (1/NumberItems)
  889.         local VisualDifference = 0.25
  890.         local CenterPos = UDim2.new(0,0,0.375,0)
  891.         local CenterSize = UDim2.new(1,0,0.25,0)
  892.         local OtherSize = UDim2.new(0.75,0,0.125,0)
  893.         local VisualPos = 0.675
  894.         local ButtonPos = 0
  895.         for x = 1, NumberItems do
  896.             local ImageFrame = Instance.new("Frame", VisualFrame)
  897.             ImageFrame.Transparency = 2
  898.             ImageFrame.Name = Item_Table[x][1]
  899.             ImageFrame.ZIndex = Object_ZIndex
  900.             ImageFrame.Size = UDim2.new(0.75,0,0.125,0)
  901.             ImageFrame.Position = UDim2.new(0.125,0,VisualPos,0)
  902.             ImageFrame.BorderSizePixel = 0
  903.             local ImageTag = Instance.new("NumberValue", ImageFrame)
  904.             ImageTag.Name = "ItemNumber"
  905.             ImageTag.Value = x
  906.             local ImageLabel = Instance.new("ImageLabel", ImageFrame)
  907.             ImageLabel.Name = "ItemImage"
  908.             ImageLabel.BackgroundTransparency = 2
  909.             ImageLabel.Image = Item_Table[x][3]
  910.             ImageLabel.Size = UDim2.new(0.5,0,1,0)
  911.             ImageLabel.Position = UDim2.new(0,0,0,0)
  912.             ImageLabel.ZIndex = Object_ZIndex
  913.                 if (Item_Names) then
  914.                     local ImageName = Instance.new("TextLabel", ImageFrame)
  915.                     ImageName.BackgroundTransparency = 2
  916.                     ImageName.BorderSizePixel = 0
  917.                     ImageName.Name = "ItemName"
  918.                     ImageName.Text = Item_Table[x][2]
  919.                     ImageName.ZIndex = Object_ZIndex
  920.                     ImageName.Font = "SourceSans"
  921.                     ImageName.FontSize = "Size18"
  922.                     ImageName.TextColor3 = Color3.new(1,1,1)
  923.                 end
  924.             local NewButton = Instance.new("ImageButton", FrameContainer)
  925.             NewButton.Name = Item_Table[x][1]
  926.             NewButton.BackgroundTransparency = 2
  927.             NewButton.BorderSizePixel = 0
  928.             NewButton.Size = UDim2.new(1,0,Difference,0)
  929.             NewButton.Position = UDim2.new(0,0,ButtonPos,0)
  930.             NewButton.ZIndex = Object_ZIndex
  931.             local Button_CodeConnection = Item_Button_Directory[Item_Table[x][1]]:Clone()
  932.             Button_CodeConnection.Parent = NewButton
  933.             Button_CodeConnection.Disabled = false
  934.             ButtonPos = (ButtonPos+Difference)
  935.             VisualPos = (VisualPos+VisualDifference)
  936.             NewButton.MouseEnter:Connect(function()
  937.                 VisualFrame:TweenPosition(UDim2.new(0,0,(-0.25*(VisualFrame[NewButton.Name].ItemNumber.Value)),0), "Out", "Quad", 0.25, true)
  938.                 VisualFrame[NewButton.Name]:TweenSize(CenterSize, "Out", "Quad", 0.25, true)
  939.                 if (Item_Names) then
  940.                     VisualFrame[NewButton.Name].ItemName.TextTransparency = 0
  941.                 end
  942.             end)
  943.             NewButton.MouseLeave:Connect(function()
  944.                 VisualFrame[NewButton.Name]:TweenSize(OtherSize, "Out", "Quad", 0.25, true)
  945.                 if (Item_Names) then
  946.                     VisualFrame[NewButton.Name].ItemName.TextTransparency = 0.75
  947.                 end
  948.             end)
  949.         end
  950.     end
  951. end
  952.  
  953. function FunctionTable.Create_ScrollList_Text(Object_Name, Object_Directory, Object_Size, Object_Position, Create_Container, Item_Table, Object_ZIndex, Item_Button_Directory, Contain, Return_Objects)
  954.     if (Create_Container) then
  955.         repeat wait() until FunctionTable.Create_Frame
  956.         local Container = FunctionTable.Create_Frame(tostring(Object_Name), Object_Directory, Object_Size, Object_Position, Object_ZIndex, true, true)
  957.        
  958.         local FrameContainer = Instance.new("Frame", Container)
  959.         FrameContainer.Size = UDim2.new(1,0,1,0)
  960.         FrameContainer.Position = UDim2.new(0,0,0,0)
  961.         FrameContainer.BackgroundColor3 = Color3.new(0,0,0)
  962.         FrameContainer.BackgroundTransparency = 2
  963.         FrameContainer.BorderSizePixel = 0
  964.         FrameContainer.ZIndex = Object_ZIndex
  965.        
  966.         local VisualFrame = Instance.new("Frame", FrameContainer)
  967.         VisualFrame.BackgroundTransparency = 2
  968.         VisualFrame.BorderSizePixel = 0
  969.         VisualFrame.Position = UDim2.new(0,0,0,0)
  970.         VisualFrame.Size = UDim2.new(1,0,1,0)
  971.         VisualFrame.ZIndex = Object_ZIndex
  972.        
  973.         local TextContainer = Instance.new("Frame", VisualFrame)
  974.         TextContainer.BackgroundTransparency = 2
  975.         TextContainer.BorderSizePixel = 0
  976.         TextContainer.Size = UDim2.new(1,0,1,0)
  977.         TextContainer.Position = UDim2.new(0,0,0,0)
  978.         TextContainer.ZIndex = Object_ZIndex
  979.        
  980.         local NumberItems = #Item_Table
  981.         local Difference = (1/NumberItems)
  982.         local TextPos = 0.45
  983.         local TextPosDifference = 0.1
  984.         local ButtonPos = 0
  985.         for x = 1, NumberItems do
  986.             --[[ Create Visual Representation ]]
  987.             local NewText = Instance.new("TextLabel", TextContainer)
  988.             NewText.BackgroundTransparency = 2
  989.             NewText.BorderSizePixel = 0
  990.             NewText.Name = tostring(Item_Table[x][1])
  991.             NewText.TextColor3 = Color3.new(1,1,1)
  992.             NewText.TextTransparency = 0.75
  993.             NewText.Position = UDim2.new(0,0,TextPos,0)
  994.             NewText.Size = UDim2.new(1,0,0.1,0)
  995.             NewText.ZIndex = Object_ZIndex
  996.             NewText.Font = "SourceSans"
  997.             NewText.FontSize = "Size14"
  998.             NewText.Text = tostring(Item_Table[x][2])
  999.             local NumberTag = Instance.new("NumberValue", NewText)
  1000.             NumberTag.Name = "ItemNumber"
  1001.             NumberTag.Value = x
  1002.             TextPos = TextPos + TextPosDifference
  1003.             local NewButton = Instance.new("ImageButton", FrameContainer)
  1004.             NewButton.Name = tostring(Item_Table[x][1])
  1005.             NewButton.BackgroundTransparency = 2
  1006.             NewButton.BorderSizePixel = 0
  1007.             NewButton.Position = UDim2.new(0,0,ButtonPos,0)
  1008.             NewButton.Size = UDim2.new(1,0,Difference,0)
  1009.             NewButton.ZIndex = Object_ZIndex
  1010.             ButtonPos = ButtonPos + Difference
  1011.             NewButton.MouseEnter:Connect(function()
  1012.                 local VisText = TextContainer[NewButton.Name]
  1013.                 if (not VisText) then return end
  1014.                 TextContainer:TweenPosition(UDim2.new(0,0,(-(VisText["ItemNumber"].Value/10)+0.1),0),"Out","Quad",0.25,true)
  1015.                 VisText.FontSize = "Size24"
  1016.                 VisText.TextTransparency = 0
  1017.                 wait(0)
  1018.             end)
  1019.             NewButton.MouseLeave:Connect(function()
  1020.                 TextContainer[NewButton.Name].FontSize = "Size14"
  1021.                 TextContainer[NewButton.Name].TextTransparency = 0.75
  1022.                 wait(0)
  1023.             end)
  1024.             if (Item_Button_Directory~=nil) then
  1025.                 local Button_CodeConnection = Item_Button_Directory[Item_Table[x][1]]:Clone()
  1026.                 Button_CodeConnection.Parent = NewButton
  1027.                 Button_CodeConnection.Disabled = false
  1028.             end
  1029.         end
  1030.         if (Return_Objects) then
  1031.             return Container
  1032.         end
  1033.     else
  1034.         local FrameContainer = Instance.new("Frame", Object_Directory)
  1035.         FrameContainer.Name = Object_Name
  1036.         FrameContainer.Size = Object_Size
  1037.         FrameContainer.Position = Object_Position
  1038.         FrameContainer.BackgroundColor3 = Color3.new(0,0,0)
  1039.         FrameContainer.BackgroundTransparency = 2
  1040.         FrameContainer.BorderSizePixel = 0
  1041.         FrameContainer.ZIndex = Object_ZIndex
  1042.        
  1043.         local VisualFrame = Instance.new("Frame", FrameContainer)
  1044.         VisualFrame.BackgroundTransparency = 2
  1045.         VisualFrame.BorderSizePixel = 0
  1046.         VisualFrame.Position = UDim2.new(0,0,0,0)
  1047.         VisualFrame.Size = UDim2.new(1,0,1,0)
  1048.         VisualFrame.ZIndex = Object_ZIndex
  1049.        
  1050.         local TextContainer = Instance.new("Frame", VisualFrame)
  1051.         TextContainer.BackgroundTransparency = 2
  1052.         TextContainer.BorderSizePixel = 0
  1053.         TextContainer.Size = UDim2.new(1,0,1,0)
  1054.         TextContainer.Position = UDim2.new(0,0,0,0)
  1055.         TextContainer.ZIndex = Object_ZIndex
  1056.        
  1057.         local NumberItems = #Item_Table
  1058.         local Difference = (1/NumberItems)
  1059.         local TextPos = 0.45
  1060.         local TextPosDifference = 0.1
  1061.         local ButtonPos = 0
  1062.         for x = 1, NumberItems do
  1063.             --[[ Create Visual Representation ]]
  1064.             local NewText = Instance.new("TextLabel", TextContainer)
  1065.             NewText.BackgroundTransparency = 2
  1066.             NewText.BorderSizePixel = 0
  1067.             NewText.Name = tostring(Item_Table[x][1])
  1068.             NewText.TextColor3 = Color3.new(1,1,1)
  1069.             NewText.TextTransparency = 0.75
  1070.             NewText.Position = UDim2.new(0,0,TextPos,0)
  1071.             NewText.Size = UDim2.new(1,0,0.1,0)
  1072.             NewText.ZIndex = Object_ZIndex
  1073.             NewText.Font = "SourceSans"
  1074.             NewText.FontSize = "Size14"
  1075.             NewText.Text = tostring(Item_Table[x][2])
  1076.             local NumberTag = Instance.new("NumberValue", NewText)
  1077.             NumberTag.Name = "ItemNumber"
  1078.             NumberTag.Value = x
  1079.             TextPos = TextPos + TextPosDifference
  1080.             local NewButton = Instance.new("ImageButton", FrameContainer)
  1081.             NewButton.Name = tostring(Item_Table[x][1])
  1082.             NewButton.BackgroundTransparency = 2
  1083.             NewButton.BorderSizePixel = 0
  1084.             NewButton.Position = UDim2.new(0,0,ButtonPos,0)
  1085.             NewButton.Size = UDim2.new(1,0,Difference,0)
  1086.             NewButton.ZIndex = Object_ZIndex
  1087.             ButtonPos = ButtonPos + Difference
  1088.             NewButton.MouseEnter:Connect(function()
  1089.                 local VisText = TextContainer[NewButton.Name]
  1090.                 if (not VisText) then return end
  1091.                 TextContainer:TweenPosition(UDim2.new(0,0,(-(VisText["ItemNumber"].Value/10)+0.1),0),"Out","Quad",0.25,true)
  1092.                 VisText.FontSize = "Size24"
  1093.                 VisText.TextTransparency = 0
  1094.                 wait(0)
  1095.             end)
  1096.             NewButton.MouseLeave:Connect(function()
  1097.                 TextContainer[NewButton.Name].FontSize = "Size14"
  1098.                 TextContainer[NewButton.Name].TextTransparency = 0.75
  1099.                 wait(0)
  1100.             end)
  1101.             if (Item_Button_Directory~=nil) then
  1102.             local Button_CodeConnection = Item_Button_Directory[Item_Table[x][1]]:Clone()
  1103.             Button_CodeConnection.Parent = NewButton
  1104.             Button_CodeConnection.Disabled = false
  1105.             end
  1106.         end
  1107.         if (Return_Objects) then
  1108.             return FrameContainer
  1109.         end
  1110.     end
  1111. end
  1112.  
  1113. return FunctionTable
Advertisement
Add Comment
Please, Sign In to add comment