xKIMMOJIx

UI

Apr 1st, 2022 (edited)
8,582
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 57.55 KB | None | 0 0
  1. do
  2.     local ui =  game:GetService("CoreGui"):FindFirstChild("NBTxTP Lib")
  3.     if ui then
  4.         ui:Destroy()
  5.     end
  6. end
  7.  
  8.  
  9.  
  10. local UserInputService = game:GetService("UserInputService")
  11. local TweenService = game:GetService("TweenService")
  12. local RunService = game:GetService("RunService")
  13. local LocalPlayer = game:GetService("Players").LocalPlayer
  14. local Mouse = LocalPlayer:GetMouse()
  15.  
  16. local Atomlib = Instance.new("ScreenGui")
  17.  
  18. Atomlib.Name = "NBTxTP Lib"
  19. Atomlib.Parent = game:GetService("CoreGui")
  20. Atomlib.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21.  
  22.  
  23.  
  24. local function MakeDraggable(topbarobject, object)
  25.     local Dragging = nil
  26.     local DragInput = nil
  27.     local DragStart = nil
  28.     local StartPosition = nil
  29.  
  30.     local function Update(input)
  31.         local Delta = input.Position - DragStart
  32.         local pos =
  33.             UDim2.new(
  34.             StartPosition.X.Scale,
  35.             StartPosition.X.Offset + Delta.X,
  36.             StartPosition.Y.Scale,
  37.             StartPosition.Y.Offset + Delta.Y
  38.         )
  39.         local Tween = TweenService:Create(object, TweenInfo.new(0.2), {Position = pos})
  40.         Tween:Play()
  41.     end
  42.  
  43.     topbarobject.InputBegan:Connect(
  44.         function(input)
  45.             if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  46.                 Dragging = true
  47.                 DragStart = input.Position
  48.                 StartPosition = object.Position
  49.  
  50.                 input.Changed:Connect(
  51.                     function()
  52.                         if input.UserInputState == Enum.UserInputState.End then
  53.                             Dragging = false
  54.                         end
  55.                     end
  56.                 )
  57.             end
  58.         end
  59.     )
  60.  
  61.     topbarobject.InputChanged:Connect(
  62.         function(input)
  63.             if
  64.                 input.UserInputType == Enum.UserInputType.MouseMovement or
  65.                     input.UserInputType == Enum.UserInputType.Touch
  66.             then
  67.                 DragInput = input
  68.             end
  69.         end
  70.     )
  71.  
  72.     UserInputService.InputChanged:Connect(
  73.         function(input)
  74.             if input == DragInput and Dragging then
  75.                 Update(input)
  76.             end
  77.         end
  78.     )
  79. end
  80.  
  81.  
  82. local create = {}
  83.  
  84.  
  85. function create:Win()
  86.  
  87.     local fs = false
  88.     local currentservertoggled = ""
  89.     local Main = Instance.new("Frame")
  90.        
  91.     Main.Name = "Main"
  92.     Main.Parent = Atomlib
  93.     Main.BackgroundColor3 = Color3.fromRGB(19 , 19, 19)
  94.     Main.BorderSizePixel = 0
  95.     Main.Position = UDim2.new(0.25, 0, 0.35, 0)
  96.     Main.Size = UDim2.new(0, 0, 0, 0)
  97.     Main.ClipsDescendants = true
  98.     Main.AnchorPoint = Vector2.new(0.5, 0.5)
  99.  
  100.     local Logo = Instance.new("ImageLabel")
  101.  
  102.     Logo.Name = "Logo"
  103.     Logo.Parent = Main
  104.     Logo.AnchorPoint = Vector2.new(0.5, 0.5)
  105.     Logo.Position = UDim2.new(0.1, 0, 0.08, 0)
  106.     Logo.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  107.     Logo.BorderColor3 = Color3.fromRGB(27, 42, 53)
  108.     Logo.BorderSizePixel = 0
  109.     Logo.Size = UDim2.new(0, 50, 0, 50)
  110.     Logo.Image = "http://www.roblox.com/asset/?id=9010576467"
  111.    
  112.     local PageTap = Instance.new("Frame")
  113.     local UIGradient_PageTap = Instance.new("UIGradient")
  114.  
  115.     PageTap.Name = "PageTap"
  116.     PageTap.Parent = Main
  117.     PageTap.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  118.     PageTap.BackgroundTransparency = 1
  119.     PageTap.BorderSizePixel = 0
  120.     PageTap.Position = UDim2.new(0.189873412, 0, 0, 0)
  121.     PageTap.Size = UDim2.new(0, 320, 0, 56)
  122.  
  123.     UIGradient_PageTap.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 205, 39)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0, 205, 138))}
  124.     UIGradient_PageTap.Parent = PageTap
  125.  
  126.    
  127.     local ScolTap = Instance.new("ScrollingFrame")
  128.     local UIListLayout_ScolTap = Instance.new("UIListLayout")
  129.     local UIPadding_ScolTap = Instance.new("UIPadding")
  130.  
  131.     ScolTap.Name = "ScolTap"
  132.     ScolTap.Parent = PageTap
  133.     ScolTap.Active = true
  134.     ScolTap.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  135.     ScolTap.BackgroundTransparency = 1
  136.     ScolTap.BorderSizePixel = 0
  137.     ScolTap.Size = UDim2.new(0, 320, 0, 56)
  138.     ScolTap.CanvasSize = UDim2.new(0.5, 0, 0, 0)
  139.     ScolTap.ScrollBarThickness = 3
  140.     ScolTap.ScrollBarImageColor3 =  Color3.fromRGB(235, 235, 235)
  141.  
  142.     UIListLayout_ScolTap.Parent = ScolTap
  143.     UIListLayout_ScolTap.FillDirection = Enum.FillDirection.Horizontal
  144.     UIListLayout_ScolTap.SortOrder = Enum.SortOrder.LayoutOrder
  145.     UIListLayout_ScolTap.Padding = UDim.new(0, 5)
  146.  
  147.     UIPadding_ScolTap.Parent = ScolTap
  148.     UIPadding_ScolTap.PaddingTop = UDim.new(0, 6)
  149.  
  150.  
  151.     local pagesFolder = Instance.new("Folder")
  152.  
  153.     pagesFolder.Name = "pagesFolder"
  154.     pagesFolder.Parent = Main
  155.  
  156.     MakeDraggable(Main,Main)
  157.     local tween = game:GetService("TweenService")
  158.     local library = {currenttab = '',toggledui = false}
  159.     tween:Create(Main,TweenInfo.new(0.4,Enum.EasingStyle.Back),{Size = UDim2.new(0, 395, 0, 395)}):Play()
  160.  
  161.     if _G.CloseUI then
  162.         library.toggledui = true
  163.         tween:Create(Main,TweenInfo.new(0.4,Enum.EasingStyle.Back,Enum.EasingDirection.In),{Size = UDim2.new(0, 0, 0, 0)}):Play()
  164.     end
  165.     spawn(function()
  166.     while wait() do
  167.         if library.toggledui then
  168.            if not library.toggledui then
  169.                tween:Create(Main,TweenInfo.new(0.4,Enum.EasingStyle.Back),{Size = UDim2.new(0, 395, 0, 395)}):Play()
  170.            end
  171.         else
  172.             if library.toggledui then
  173.                tween:Create(Main,TweenInfo.new(0.4,Enum.EasingStyle.Back,Enum.EasingDirection.In),{Size = UDim2.new(0, 0, 0, 0)}):Play()
  174.             end
  175.         end
  176.     end
  177. end)
  178.  
  179.     game:GetService("UserInputService").InputBegan:Connect(function(input)
  180.         if input.KeyCode == Enum.KeyCode.RightControl then
  181.             if library.toggledui == false then
  182.                 library.toggledui = true  
  183.                 tween:Create(Main,TweenInfo.new(0.4,Enum.EasingStyle.Back,Enum.EasingDirection.In),{Size = UDim2.new(0, 0, 0, 0)}):Play()
  184.             else
  185.                 library.toggledui = false
  186.                 tween:Create(Main,TweenInfo.new(0.4,Enum.EasingStyle.Back),{Size = UDim2.new(0, 395, 0, 395)}):Play()
  187.             end
  188.         end
  189.     end)
  190.  
  191.  
  192. local tap = {}
  193.  
  194. function tap:addtap(text)
  195.  
  196.     local TextButton_Tap = Instance.new("TextButton")
  197.  
  198.     TextButton_Tap.Parent = ScolTap
  199.     TextButton_Tap.Name = "TextButton_Tap"
  200.     TextButton_Tap.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  201.     TextButton_Tap.BackgroundTransparency = 1
  202.     TextButton_Tap.Position = UDim2.new(0.0151898731, 0, 0.132352948, 0)
  203.     TextButton_Tap.Size = UDim2.new(0, 75, 0, 50)
  204.     TextButton_Tap.Font = Enum.Font.GothamSemibold
  205.     TextButton_Tap.TextColor3 = Color3.fromRGB(155, 155, 155)
  206.     TextButton_Tap.TextSize = 10.000
  207.     TextButton_Tap.TextWrapped = true
  208.     TextButton_Tap.Text = text
  209.    
  210.    
  211.  
  212.     local TextLabel_Tap = Instance.new("TextLabel")
  213.  
  214.     TextLabel_Tap.Parent = TextButton_Tap
  215.     TextLabel_Tap.Name = "TextLabel_Tap"
  216.     TextLabel_Tap.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  217.     TextLabel_Tap.AnchorPoint = Vector2.new(0.5, 0.5)
  218.     TextLabel_Tap.Position = UDim2.new(0.52, 0, 0.8, 0)
  219.     TextLabel_Tap.Size = UDim2.new(0, 0, 0, 0)
  220.     TextLabel_Tap.Font = Enum.Font.SourceSans
  221.     TextLabel_Tap.Text = " "
  222.     TextLabel_Tap.TextColor3 = Color3.fromRGB(0, 205, 95)
  223.     TextLabel_Tap.TextSize = 14.000
  224.     TextLabel_Tap.BorderSizePixel = 0
  225.  
  226.  
  227.  
  228.     local MainFramePage = Instance.new("Frame")
  229.  
  230.    
  231.     MainFramePage.Name = "MainFramePage"
  232.     MainFramePage.Parent = pagesFolder
  233.     MainFramePage.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  234.     MainFramePage.BorderSizePixel = 0
  235.     MainFramePage.Position = UDim2.new(0, 0, 0.141772151, 0)
  236.     MainFramePage.Size = UDim2.new(0, 395, 0, 339)
  237.     MainFramePage.Visible = false
  238.  
  239.  
  240.  
  241.     local FramePage = Instance.new("Frame")
  242.     local ScolPage = Instance.new("ScrollingFrame")
  243.     local MainPage = Instance.new("Frame")
  244.     local UIGridLayout_MainPage = Instance.new("UIGridLayout")
  245.     local UIListLayout_MainPage = Instance.new("UIListLayout")
  246.     local UIPadding_MainPage = Instance.new("UIPadding")
  247.  
  248.     --Properties:
  249.  
  250.     FramePage.Name = "FramePage"
  251.     FramePage.Parent = MainFramePage
  252.     FramePage.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  253.     FramePage.BorderSizePixel = 0
  254.     FramePage.ClipsDescendants = true
  255.     FramePage.Position = UDim2.new(0, 0, 0.02359882, 0)
  256.     FramePage.Size = UDim2.new(0, 395, 0, 331)
  257.     FramePage.Visible = true
  258.  
  259.     ScolPage.Name = "ScolPage"
  260.     ScolPage.Parent = FramePage
  261.     ScolPage.Active = true
  262.     ScolPage.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  263.     ScolPage.BorderSizePixel = 0
  264.     ScolPage.Size = UDim2.new(0, 395, 0, 324)
  265.     ScolPage.ScrollBarThickness = 3
  266.     ScolPage.ScrollBarImageColor3 =  Color3.fromRGB(0, 204, 125)
  267.  
  268.     MainPage.Name = "MainPage"
  269.     MainPage.Parent = ScolPage
  270.     MainPage.BackgroundTransparency = 1
  271.     MainPage.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  272.     MainPage.BorderSizePixel = 0
  273.     MainPage.Size = UDim2.new(0, 395, 0, 324)
  274.  
  275.     UIGridLayout_MainPage.Parent = MainPage
  276.     UIGridLayout_MainPage.SortOrder = Enum.SortOrder.LayoutOrder
  277.     UIGridLayout_MainPage.CellPadding = UDim2.new(0, 20, 0, 10)
  278.     UIGridLayout_MainPage.CellSize = UDim2.new(0, 170, 0, 295)
  279.  
  280.     UIListLayout_MainPage.Parent = MainPage
  281.     UIListLayout_MainPage.SortOrder = Enum.SortOrder.LayoutOrder
  282.     UIListLayout_MainPage.Padding = UDim.new(0, 5)
  283.  
  284.     UIPadding_MainPage.Parent = MainPage
  285.     UIPadding_MainPage.PaddingLeft = UDim.new(0, 16)
  286.     UIPadding_MainPage.PaddingTop = UDim.new(0, 10)
  287.  
  288.  
  289.     TextButton_Tap.MouseButton1Click:connect(function (  )
  290.         currentservertoggled = MainPage.Name
  291.         for i, v in next, pagesFolder:GetChildren() do
  292.             if v.Name == "MainFramePage" then
  293.                 -- TweenService:Create(
  294.                 --     fucklib,
  295.                 --     TweenInfo.new(0.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  296.                 --     {BackgroundTransparency = 0}
  297.                 -- ):Play()
  298.                 v.Visible = false
  299.  
  300.             end
  301.  
  302.             MainFramePage.Visible = true
  303.        --     wait(0.125)
  304.             -- TweenService:Create(
  305.             --     fucklib,
  306.             --     TweenInfo.new(0.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  307.             --     {BackgroundTransparency = 1}
  308.             -- ):Play()
  309.         --    MainPage:TweenSizeAndPosition(UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, 0.5, 0), "In", "Quad", 0.15, true)
  310.         end
  311.        
  312.     for i ,v in next , ScolTap:GetChildren() do
  313.         if v:IsA("TextButton") then
  314.             TweenService:Create(
  315.                 v.TextLabel_Tap,
  316.                 TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  317.                 {Size = UDim2.new(0, 0, 0, 0)}
  318.             ):Play()
  319.             TweenService:Create(
  320.                 v,
  321.                 TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  322.                 {TextColor3 = Color3.fromRGB(155, 155, 155)}
  323.             ):Play()
  324.            
  325.            
  326.         end
  327.         TweenService:Create(
  328.             TextLabel_Tap,
  329.             TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  330.             {Size = UDim2.new(0, 50, 0, 2)}
  331.         ):Play()
  332.         TweenService:Create(
  333.             TextButton_Tap,
  334.             TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  335.             {TextColor3 = Color3.fromRGB(255, 255, 255)}
  336.         ):Play()
  337.     end
  338.  end)
  339.  
  340.  
  341.  
  342.     if fs == false then
  343.         TweenService:Create(
  344.             TextLabel_Tap,
  345.             TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  346.             {Size = UDim2.new(0, 50, 0, 2)}
  347.         ):Play()
  348.         TweenService:Create(
  349.             TextButton_Tap,
  350.             TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  351.             {TextColor3 = Color3.fromRGB(255, 255, 255)}
  352.         ):Play()
  353.  
  354.         MainFramePage.Visible = true
  355.         MainFramePage.Name  = text .. "Server"
  356.         fs  = true
  357.     end
  358.  
  359. local page = {}
  360.  
  361. function page:addpage()
  362.  
  363.     local Page = Instance.new("Frame")
  364.     local ScolPage2 = Instance.new("ScrollingFrame")
  365.    
  366.    
  367.     Page.Name = "Page"
  368.     Page.Parent = MainPage
  369.     Page.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  370.     Page.BorderSizePixel = 0
  371.     Page.Position = UDim2.new(0.4, 0, 0.0526315793, 0)
  372.     Page.Size = UDim2.new(0, 178, 0, 262)
  373.    
  374.     ScolPage2.Name = "ScolPage"
  375.     ScolPage2.Parent = Page
  376.     ScolPage2.Active = true
  377.     ScolPage2.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  378.     ScolPage2.BorderSizePixel = 0
  379.     ScolPage2.Size = UDim2.new(0, 185, 0, 298)
  380.     ScolPage2.ScrollBarThickness = 3
  381.     ScolPage2.ScrollBarImageColor3 =  Color3.fromRGB(235, 235, 235)
  382.    
  383.  
  384.     local UIListLayout_ScolPage2 = Instance.new("UIListLayout")
  385.  
  386.     UIListLayout_ScolPage2.Parent = ScolPage2
  387.     UIListLayout_ScolPage2.SortOrder = Enum.SortOrder.LayoutOrder
  388.     UIListLayout_ScolPage2.Padding = UDim.new(0, 7)
  389.  
  390.    
  391.     local UIPadding_ScolPage2 = Instance.new("UIPadding")
  392.  
  393.     UIPadding_ScolPage2.Parent = ScolPage2
  394.     UIPadding_ScolPage2.PaddingLeft = UDim.new(0,15)
  395.     UIPadding_ScolPage2.PaddingTop = UDim.new(0, 15)
  396.  
  397.     game:GetService("RunService").Stepped:Connect(function ()
  398.         pcall(function ()
  399.               ScolTap.CanvasSize = UDim2.new(0,UIListLayout_ScolTap.AbsoluteContentSize.X  ,0,0)  
  400.               ScolPage.CanvasSize = UDim2.new(0,0,0,UIGridLayout_MainPage.AbsoluteContentSize.Y + 20 )  
  401.               ScolPage2.CanvasSize = UDim2.new(0,0,0,UIListLayout_ScolPage2.AbsoluteContentSize.Y+ 30 )  
  402.         end)
  403.     end)
  404.  
  405.    
  406. local ems = {}
  407.  
  408. function ems:Button(text,callback)
  409.    
  410.  
  411.  
  412.     local ToggleFrame = Instance.new("Frame")
  413.    
  414.     ToggleFrame.Name = "ToggleFrame"
  415.     ToggleFrame.Parent = ScolPage2
  416.     ToggleFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  417.     ToggleFrame.BorderSizePixel = 0
  418.     ToggleFrame.BackgroundTransparency = 1
  419.     ToggleFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  420.     ToggleFrame.Size = UDim2.new(0, 155, 0, 22)
  421.  
  422.     local emsTextButton = Instance.new("TextButton")
  423.  
  424.     emsTextButton.Parent = ToggleFrame
  425.     emsTextButton.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
  426.     emsTextButton.BackgroundTransparency = 1
  427.     emsTextButton.AnchorPoint = Vector2.new(0.5, 0.5)
  428.     emsTextButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  429.     emsTextButton.Size = UDim2.new(1, 0, 0.8, 0)
  430.     emsTextButton.Font = Enum.Font.GothamSemibold
  431.     emsTextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  432.     emsTextButton.TextSize = 13.000
  433.     emsTextButton.TextWrapped = true
  434.     emsTextButton.Text = ""
  435.     emsTextButton.BorderSizePixel = 0
  436.     emsTextButton.AutoButtonColor = false
  437.  
  438.     local TextButton_Pageframe_Uiconner = Instance.new("UICorner")
  439.            
  440.     TextButton_Pageframe_Uiconner.CornerRadius = UDim.new(0, 3)
  441.     TextButton_Pageframe_Uiconner.Name = ""
  442.     TextButton_Pageframe_Uiconner.Parent = ToggleFrame
  443.  
  444.     local TextLabel_emsTextButton = Instance.new("TextLabel")
  445.  
  446.     TextLabel_emsTextButton.Parent = emsTextButton
  447.     TextLabel_emsTextButton.Name = "TextLabel_emsTextButton"
  448.     TextLabel_emsTextButton.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  449.     TextLabel_emsTextButton.AnchorPoint = Vector2.new(0.5, 0.5)
  450.     TextLabel_emsTextButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  451.     TextLabel_emsTextButton.Size = UDim2.new(0, 0, 0, 0)
  452.     TextLabel_emsTextButton.Font = Enum.Font.GothamSemibold
  453.     TextLabel_emsTextButton.Text = text
  454.     TextLabel_emsTextButton.TextColor3 = Color3.fromRGB(0, 205, 95)
  455.     TextLabel_emsTextButton.TextSize = 10.000
  456.     TextLabel_emsTextButton.BorderSizePixel = 0
  457.  
  458.     local MheeFrameStroke = Instance.new("UIStroke",ToggleFrame)
  459.                    
  460.     MheeFrameStroke.Thickness = 1
  461.     MheeFrameStroke.LineJoinMode = Enum.LineJoinMode.Round
  462.     MheeFrameStroke.Color = Color3.fromRGB(0, 205, 95)
  463.     MheeFrameStroke.Transparency = 0
  464.  
  465.     emsTextButton.MouseButton1Click:Connect(function()
  466.         TweenService:Create(
  467.             TextLabel_emsTextButton,
  468.             TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  469.             {TextSize =5} -- UDim2.new(0, 128, 0, 25)
  470.         ):Play()
  471.         wait(0.1)
  472.         TweenService:Create(
  473.             TextLabel_emsTextButton,
  474.             TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  475.             {TextSize = 10} -- UDim2.new(0, 128, 0, 25)
  476.         ):Play()
  477.         pcall(callback)
  478.     end)
  479.  
  480.    
  481.     emsTextButton.MouseEnter:Connect(function (  )
  482.     --    if joincheck.check1 == false then
  483.  
  484.             TweenService:Create(
  485.                 emsTextButton,
  486.                 TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  487.                 {BackgroundColor3 =  Color3.fromRGB(0, 205, 95)} -- UDim2.new(0, 128, 0, 25)
  488.             ):Play()
  489. --     end
  490.         -- joincheck = not joincheck
  491.         -- callback(joincheck)
  492.     end)
  493.     emsTextButton.MouseLeave:Connect(function (  )
  494.  
  495.             TweenService:Create(
  496.                 emsTextButton,
  497.                 TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  498.                 {BackgroundColor3 =  Color3.fromRGB(0, 205, 95)} -- UDim2.new(0, 128, 0, 25)
  499.             ):Play()
  500.     end)
  501. end
  502.  
  503. function ems:Button1(text,callback)
  504.  
  505.     local ToggleFrame1 = Instance.new("Frame")
  506.    
  507.     ToggleFrame1.Name = "ToggleFrame"
  508.     ToggleFrame1.Parent = ScolPage2
  509.     ToggleFrame1.BackgroundColor3 = Color3.fromRGB(0, 205 ,95)
  510.     ToggleFrame1.BorderSizePixel = 0
  511.     ToggleFrame1.BackgroundTransparency = 0
  512.     ToggleFrame1.Position = UDim2.new(0.5, 0, 0.5, 0)
  513.     ToggleFrame1.Size = UDim2.new(0, 155, 0, 22)
  514.  
  515.     local emsTextButton1 = Instance.new("TextButton")
  516.  
  517.     emsTextButton1.Parent = ToggleFrame1
  518.     emsTextButton1.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
  519.     emsTextButton1.BackgroundTransparency = 1
  520.     emsTextButton1.AnchorPoint = Vector2.new(0.5, 0.5)
  521.     emsTextButton1.Position = UDim2.new(0.5, 0, 0.5, 0)
  522.     emsTextButton1.Size = UDim2.new(1, 0, 0.8, 0)
  523.     emsTextButton1.Font = Enum.Font.GothamSemibold
  524.     emsTextButton1.TextColor3 = Color3.fromRGB(255, 255, 255)
  525.     emsTextButton1.TextSize = 13.000
  526.     emsTextButton1.TextWrapped = true
  527.     emsTextButton1.Text = ""
  528.     emsTextButton1.BorderSizePixel = 0
  529.     emsTextButton1.AutoButtonColor = false
  530.  
  531.     local TextButton_Pageframe_Uiconner1 = Instance.new("UICorner")
  532.            
  533.     TextButton_Pageframe_Uiconner1.CornerRadius = UDim.new(0, 3)
  534.     TextButton_Pageframe_Uiconner1.Name = ""
  535.     TextButton_Pageframe_Uiconner1.Parent = ToggleFrame1
  536.  
  537.     local TextLabel_emsTextButton1 = Instance.new("TextLabel")
  538.  
  539.     TextLabel_emsTextButton1.Parent = emsTextButton1
  540.     TextLabel_emsTextButton1.Name = "TextLabel_emsTextButton"
  541.     TextLabel_emsTextButton1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  542.     TextLabel_emsTextButton1.AnchorPoint = Vector2.new(0.5, 0.5)
  543.     TextLabel_emsTextButton1.Position = UDim2.new(0.5, 0, 0.5, 0)
  544.     TextLabel_emsTextButton1.Size = UDim2.new(0, 0, 0, 0)
  545.     TextLabel_emsTextButton1.Font = Enum.Font.GothamSemibold
  546.     TextLabel_emsTextButton1.Text = text
  547.     TextLabel_emsTextButton1.TextColor3 = Color3.fromRGB(255, 255 ,255)
  548.     TextLabel_emsTextButton1.TextSize = 10.000
  549.     TextLabel_emsTextButton1.BorderSizePixel = 0
  550.  
  551.     local MheeFrameStroke1 = Instance.new("UIStroke",ToggleFrame1)
  552.                    
  553.     MheeFrameStroke1.Thickness = 1
  554.     MheeFrameStroke1.LineJoinMode = Enum.LineJoinMode.Round
  555.     MheeFrameStroke1.Color = Color3.fromRGB(0, 205 ,95)
  556.     MheeFrameStroke1.Transparency = 0
  557.  
  558.     emsTextButton1.MouseButton1Click:Connect(function()
  559.         TweenService:Create(
  560.             TextLabel_emsTextButton1,
  561.             TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  562.             {TextSize =5} -- UDim2.new(0, 128, 0, 25)
  563.         ):Play()
  564.         wait(0.1)
  565.         TweenService:Create(
  566.             TextLabel_emsTextButton1,
  567.             TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  568.             {TextSize = 10} -- UDim2.new(0, 128, 0, 25)
  569.         ):Play()
  570.         pcall(callback)
  571.     end)
  572.  
  573.    
  574.     emsTextButton1.MouseEnter:Connect(function (  )
  575.     --    if joincheck.check1 == false then
  576.  
  577.             TweenService:Create(
  578.                 emsTextButton1,
  579.                 TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  580.                 {BackgroundColor3 =  Color3.fromRGB(255, 255, 255)} -- UDim2.new(0, 128, 0, 25)
  581.             ):Play()
  582. --     end
  583.         -- joincheck = not joincheck
  584.         -- callback(joincheck)
  585.     end)
  586.     emsTextButton1.MouseLeave:Connect(function (  )
  587.  
  588.             TweenService:Create(
  589.                 emsTextButton1,
  590.                 TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  591.                 {BackgroundColor3 =  Color3.fromRGB(255, 255, 255)} -- UDim2.new(0, 128, 0, 25)
  592.             ):Play()
  593.     end)
  594. end
  595.  
  596. function  ems:Toggle(text,de,callback)
  597.  
  598.     local togdoc = {boolen = false ; }
  599.     local ToggleFrame = Instance.new("Frame")
  600.    
  601.     ToggleFrame.Name = "ToggleFrame"
  602.     ToggleFrame.Parent = ScolPage2
  603.     ToggleFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  604.     ToggleFrame.BorderSizePixel = 0
  605.     ToggleFrame.BackgroundTransparency = 1
  606.     ToggleFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  607.     ToggleFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  608.     ToggleFrame.Size = UDim2.new(0, 10, 0, 30)
  609.    
  610.     local ToggleButton = Instance.new("TextButton")
  611.  
  612.     ToggleButton.Parent = ToggleFrame
  613.     ToggleButton.BackgroundColor3 = Color3.fromRGB( 0, 0, 60)
  614.     ToggleButton.BackgroundTransparency = 1
  615.     ToggleButton.AnchorPoint = Vector2.new(0, 0.5)
  616.     ToggleButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  617.     ToggleButton.Size = UDim2.new(0, 155, 0, 25)
  618.     ToggleButton.Font = Enum.Font.GothamSemibold
  619.     ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  620.     ToggleButton.TextSize = 13.000
  621.     ToggleButton.TextWrapped = false
  622.     ToggleButton.Text = ""
  623.     ToggleButton.BorderSizePixel = 0
  624.     ToggleButton.AutoButtonColor = false
  625.     ToggleButton.ClipsDescendants = true
  626.  
  627.     local ToggleButton2 = Instance.new("TextButton")
  628.  
  629.     ToggleButton2.Parent = ToggleFrame
  630.     ToggleButton2.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  631.     ToggleButton2.BackgroundTransparency = 1
  632.     ToggleButton2.AnchorPoint = Vector2.new(0.5, 0.5)
  633.     ToggleButton2.Position = UDim2.new(1, 0, 0.45, 0)
  634.     ToggleButton2.Size = UDim2.new(0, 20, 0, 20)
  635.     ToggleButton2.Font = Enum.Font.GothamSemibold
  636.     ToggleButton2.TextColor3 = Color3.fromRGB(255, 255, 255)
  637.     ToggleButton2.TextSize = 13.000
  638.     ToggleButton2.TextWrapped = false
  639.     ToggleButton2.Text = ""
  640.     ToggleButton2.BorderSizePixel = 0
  641.  
  642.  
  643.     local TextLabelToggle = Instance.new("TextLabel")
  644.  
  645.     TextLabelToggle.Parent = ToggleButton
  646.     TextLabelToggle.Name = "TextLabelToggle"
  647.     TextLabelToggle.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  648.     TextLabelToggle.AnchorPoint = Vector2.new(0.5, 0.5)
  649.     TextLabelToggle.Position = UDim2.new(0.64, 0, 0.4, 0)
  650.     TextLabelToggle.Size =  UDim2.new(0, 150, 0, 40)
  651.     TextLabelToggle.Font = Enum.Font.GothamBold
  652.     TextLabelToggle.Text = tostring(text)
  653.     TextLabelToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  654.     TextLabelToggle.TextSize = 11.000
  655.     TextLabelToggle.BorderSizePixel = 0
  656.     TextLabelToggle.TextScaled = true
  657.     TextLabelToggle.BackgroundTransparency = 1
  658.     TextLabelToggle.TextXAlignment = Enum.TextXAlignment.Left
  659.     local resizetext2 =  Instance.new("UITextSizeConstraint",TextLabelToggle)
  660.     resizetext2.MaxTextSize = 11
  661.    
  662.     local TextButton_2_Toggle = Instance.new("TextButton")
  663.  
  664.     TextButton_2_Toggle.Parent = ToggleButton2
  665.     TextButton_2_Toggle.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  666.     TextButton_2_Toggle.BorderColor3 = Color3.fromRGB(0, 205, 139)
  667.     TextButton_2_Toggle.BorderSizePixel = 0
  668.     TextButton_2_Toggle.AnchorPoint = Vector2.new(0.5, 0.5)
  669.     TextButton_2_Toggle.Position = UDim2.new(0.5, 0, 0.5, 0)
  670.     TextButton_2_Toggle.Size = UDim2.new(0, 19, 0, 19)
  671.     TextButton_2_Toggle.Font = Enum.Font.SourceSans
  672.     TextButton_2_Toggle.Text = " "
  673.     TextButton_2_Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  674.     TextButton_2_Toggle.TextSize = 12.000
  675.     TextButton_2_Toggle.AutoButtonColor = false
  676.  
  677.     local TextButton_3_Toggle = Instance.new("TextButton")
  678.  
  679.  
  680.     TextButton_3_Toggle.Parent = TextButton_2_Toggle
  681.     TextButton_3_Toggle.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  682.     TextButton_3_Toggle.BorderColor3 = Color3.fromRGB(0, 205, 95)
  683.     TextButton_3_Toggle.BorderSizePixel = 0
  684.     TextButton_3_Toggle.AnchorPoint = Vector2.new(0.5, 0.5)
  685.     TextButton_3_Toggle.Position = UDim2.new(0.5, 0, 0.5, 0)
  686.     TextButton_3_Toggle.Size = UDim2.new(0, 17, 0, 17)
  687.     TextButton_3_Toggle.Font = Enum.Font.SourceSans
  688.     TextButton_3_Toggle.Text = " "
  689.     TextButton_3_Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  690.     TextButton_3_Toggle.TextSize = 12.000
  691.     TextButton_3_Toggle.AutoButtonColor = false
  692.  
  693.     local ImageLabel_Toggle = Instance.new("ImageButton")
  694.  
  695.  
  696.     ImageLabel_Toggle.Parent = TextButton_2_Toggle
  697.     ImageLabel_Toggle.BackgroundTransparency = 1
  698.     ImageLabel_Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  699.     ImageLabel_Toggle.Size = UDim2.new(0, 0, 0, 0)
  700.     ImageLabel_Toggle.Image = "rbxassetid://5880482965"
  701.     ImageLabel_Toggle.AnchorPoint = Vector2.new(0.5, 0.5)
  702.     ImageLabel_Toggle.Position = UDim2.new(0.47, 0, 0.5, 0)
  703.  
  704.  
  705.     local FrameToggle = Instance.new("UICorner")
  706.            
  707.     FrameToggle.CornerRadius = UDim.new(0, 4)
  708.     FrameToggle.Name = ""
  709.     FrameToggle.Parent = emsTextButton
  710.  
  711.     local FrameToggle1 = Instance.new("UICorner")
  712.            
  713.     FrameToggle1.CornerRadius = UDim.new(0, 4)
  714.     FrameToggle1.Name = ""
  715.     FrameToggle1.Parent = TextButton_2_Toggle
  716.  
  717.     local FrameToggle2 = Instance.new("UICorner")
  718.            
  719.     FrameToggle2.CornerRadius = UDim.new(0, 4)
  720.     FrameToggle2.Name = ""
  721.     FrameToggle2.Parent = ImageLabel_Toggle
  722.  
  723.     local FrameToggle3 = Instance.new("UICorner")
  724.            
  725.     FrameToggle3.CornerRadius = UDim.new(0, 4)
  726.     FrameToggle3.Name = ""
  727.     FrameToggle3.Parent = TextButton_3_Toggle
  728.  
  729.     TextButton_3_Toggle.MouseButton1Click:Connect(function (  )
  730.         if togdoc.boolen ==false then
  731.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 27, 0, 27), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  732.             wait(0.1)
  733.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 23, 0, 23), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  734.         else
  735.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 27, 0, 27), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  736.             wait(0.1)
  737.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  738.      --       ImageLabel_Toggle.Visible = false
  739.         end
  740.         togdoc.boolen = not togdoc.boolen
  741.         pcall(callback,togdoc.boolen)
  742.     end)
  743.  
  744.     ImageLabel_Toggle.MouseButton1Click:Connect(function (  )
  745.         if togdoc.boolen ==false then
  746.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 27, 0, 27), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  747.             wait(0.1)
  748.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 23, 0, 23), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  749.         else
  750.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 27, 0, 27), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  751.             wait(0.1)
  752.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  753.      --       ImageLabel_Toggle.Visible = false
  754.         end
  755.         togdoc.boolen = not togdoc.boolen
  756.         pcall(callback,togdoc.boolen)
  757.     end)
  758.  
  759.     TextButton_2_Toggle.MouseButton1Click:Connect(function (  )
  760.         if togdoc.boolen ==false then
  761.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 27, 0, 27), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  762.             wait(0.1)
  763.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 19, 0, 19), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  764.         else
  765.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 27, 0, 27), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  766.             wait(0.1)
  767.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  768.      --       ImageLabel_Toggle.Visible = false
  769.         end
  770.         togdoc.boolen = not togdoc.boolen
  771.         pcall(callback,togdoc.boolen)
  772.     end)
  773.  
  774.  
  775.     ToggleButton.MouseButton1Click:Connect(function (  )
  776.         if togdoc.boolen ==false then
  777.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 27, 0, 27), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  778.             wait(0.1)
  779.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 19, 0, 19), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  780.         else
  781.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 27, 0, 27), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  782.             wait(0.1)
  783.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  784.      --       ImageLabel_Toggle.Visible = false
  785.         end
  786.         togdoc.boolen = not togdoc.boolen
  787.         pcall(callback,togdoc.boolen)
  788.     end)
  789.  
  790.         if de == true then
  791.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 27, 0, 27), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  792.             wait(0.1)
  793.             ImageLabel_Toggle:TweenSizeAndPosition(UDim2.new(0, 19, 0, 19), UDim2.new(0.5, 0, 0.5, 0), "In", "Bounce", 0.1, true)
  794.             togdoc.boolen = not togdoc.boolen
  795.             pcall(callback,togdoc.boolen)
  796.         end
  797.     end
  798.  
  799. function ems:DropDown(text,text2,list,callback)
  800.  
  801.  
  802.     local checkdrop = {checkscol = false ; }
  803.     local DropFrame = Instance.new("Frame")
  804.     local dropfuc = {}
  805.  
  806.     DropFrame.Name = "DropFrame"
  807.     DropFrame.Parent = ScolPage2
  808.     DropFrame.BackgroundColor3 = Color3.fromRGB(0,205 ,95)
  809.     DropFrame.BorderSizePixel = 0
  810.     DropFrame.BackgroundTransparency = 1
  811.     DropFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  812.     DropFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  813.     DropFrame.Size = UDim2.new(0, 155, 0, 45)
  814.     DropFrame.BackgroundTransparency = 1
  815.     DropFrame.ClipsDescendants = true
  816.  
  817.     local TextLabelDrop = Instance.new("TextLabel")
  818.  
  819.     TextLabelDrop.Parent = DropFrame
  820.     TextLabelDrop.Name = "TextLabelDrop"
  821.     TextLabelDrop.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  822.     TextLabelDrop.BackgroundTransparency = 1
  823.     TextLabelDrop.AnchorPoint = Vector2.new(0.5, 0.5)
  824.     TextLabelDrop.Position = UDim2.new(0.5, 0, 0.2, 0)
  825.     TextLabelDrop.Size = UDim2.new(0, 155, 0, 15)
  826.     TextLabelDrop.Font = Enum.Font.GothamSemibold
  827.     TextLabelDrop.Text = text
  828.     TextLabelDrop.TextColor3 = Color3.fromRGB(255, 255, 255)
  829.     TextLabelDrop.TextSize = 10.000
  830.     TextLabelDrop.BorderSizePixel = 0
  831.     TextLabelDrop.ClipsDescendants = true
  832.  
  833.     local FrameDrop = Instance.new("Frame")
  834.    
  835.     FrameDrop.Name = "FrameDrop"
  836.     FrameDrop.Parent = DropFrame
  837.     FrameDrop.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  838.     FrameDrop.BorderSizePixel = 0
  839.     FrameDrop.BackgroundTransparency = 1
  840.     FrameDrop.AnchorPoint = Vector2.new(0.5, 0.5)
  841.     FrameDrop.Position = UDim2.new(0.5, 0, 0.75, 0)
  842.     FrameDrop.Size = UDim2.new(0, 155, 0, 27)
  843.     FrameDrop.BackgroundTransparency = 0
  844.     FrameDrop.ClipsDescendants = true
  845.  
  846.     local DropButton = Instance.new("TextButton")
  847.  
  848.     DropButton.Parent = FrameDrop
  849.     DropButton.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  850.     DropButton.BackgroundTransparency = 1
  851.     DropButton.AnchorPoint = Vector2.new(0.5, 0.5)
  852.     DropButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  853.     DropButton.Size = UDim2.new(0, 155, 0, 24)
  854.     DropButton.Font = Enum.Font.GothamSemibold
  855.     DropButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  856.     DropButton.TextSize = 11.000
  857.     DropButton.TextWrapped = true
  858.     DropButton.Text = ""
  859.     DropButton.BorderSizePixel = 0
  860.     DropButton.AutoButtonColor = false
  861.     DropButton.ClipsDescendants = true
  862.  
  863.     local TextLabelDrop2 = Instance.new("TextLabel")
  864.  
  865.     TextLabelDrop2.Parent = DropButton
  866.     TextLabelDrop2.Name = "TextLabelDrop"
  867.     TextLabelDrop2.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  868.     TextLabelDrop2.BackgroundTransparency = 1
  869.     TextLabelDrop2.AnchorPoint = Vector2.new(0.5, 0.5)
  870.     TextLabelDrop2.Position = UDim2.new(0.5, 0, 0.5, 0)
  871.     TextLabelDrop2.Size = UDim2.new(0, 155, 0, 22)
  872.     TextLabelDrop2.Font = Enum.Font.GothamSemibold
  873.     TextLabelDrop2.Text = text2.." : "
  874.     TextLabelDrop2.TextColor3 = Color3.fromRGB(255, 255, 255)
  875.     TextLabelDrop2.TextSize = 10.000
  876.     TextLabelDrop2.BorderSizePixel = 0
  877.     TextLabelDrop2.ClipsDescendants = true
  878.  
  879.     local DropConer = Instance.new("UICorner")
  880.            
  881.     DropConer.CornerRadius = UDim.new(0, 4)
  882.     DropConer.Name = ""
  883.     DropConer.Parent = DropButton
  884.  
  885.     local DropConer1 = Instance.new("UICorner")
  886.            
  887.     DropConer1.CornerRadius = UDim.new(0, 4)
  888.     DropConer1.Name = ""
  889.     DropConer1.Parent = FrameDrop
  890.    
  891.  
  892.    
  893.     local TextButton_Dropdown = Instance.new("TextButton")
  894.  
  895.     TextButton_Dropdown.Parent = DropButton
  896.     TextButton_Dropdown.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  897.     TextButton_Dropdown.BorderSizePixel = 0
  898.     TextButton_Dropdown.Size = UDim2.new(0, 22, 0, 24)
  899.     TextButton_Dropdown.Font = Enum.Font.SourceSans
  900.     TextButton_Dropdown.Text = "  "
  901.     TextButton_Dropdown.TextColor3 = Color3.fromRGB(0, 0, 0)
  902.     TextButton_Dropdown.TextSize = 14.000
  903.     TextButton_Dropdown.AutoButtonColor = false
  904.     TextButton_Dropdown.AnchorPoint = Vector2.new(0.5, 0.5)
  905.     TextButton_Dropdown.Position = UDim2.new(0.91, 0, 0.5, 0)
  906.    
  907.     local DropConer2 = Instance.new("UICorner")
  908.            
  909.     DropConer2.CornerRadius = UDim.new(0, 4)
  910.     DropConer2.Name = ""
  911.     DropConer2.Parent = TextButton_Dropdown
  912.  
  913.     local DropArbt_listimage = Instance.new("ImageButton")
  914.                            
  915.     DropArbt_listimage.Parent = TextButton_Dropdown
  916.     DropArbt_listimage.BackgroundTransparency = 1
  917.     DropArbt_listimage.AnchorPoint = Vector2.new(0.5, 0.5)
  918.     DropArbt_listimage.Position = UDim2.new(0.5, 0, 0.5, 0)
  919.     DropArbt_listimage.BorderSizePixel = 0
  920.     DropArbt_listimage.Size = UDim2.new(0, 20, 0, 20)
  921.     DropArbt_listimage.Image = "http://www.roblox.com/asset/?id=6031091004"
  922.  
  923.     local ListFrame = Instance.new("Frame")
  924.    
  925.     ListFrame.Name = "ListFrame"
  926.     ListFrame.Parent = ScolPage2
  927.     ListFrame.BackgroundColor3 = Color3.fromRGB(0, 205 ,95)
  928.     ListFrame.BorderSizePixel = 0
  929.     ListFrame.BackgroundTransparency = 1
  930.     ListFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  931.     ListFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  932.     ListFrame.Size = UDim2.new(0, 155, 0, 0)
  933.     ListFrame.BorderSizePixel = 0
  934.     ListFrame.ClipsDescendants = true
  935.     ListFrame.Visible = false
  936.  
  937.     local ScolPage_list = Instance.new("ScrollingFrame")
  938.  
  939.  
  940.     local UIListLayout_MainPage_list = Instance.new("UIListLayout")
  941.     local UIPadding_MainPage_list = Instance.new("UIPadding")
  942.  
  943.  
  944.     ScolPage_list.Name = "ScolPage_list"
  945.     ScolPage_list.Parent = ListFrame
  946.     ScolPage_list.Active = true
  947.     ScolPage_list.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  948.     ScolPage_list.BorderSizePixel = 0
  949.     ScolPage_list.Size = UDim2.new(0, 155, 0, 0)
  950.     ScolPage_list.ScrollBarThickness = 3
  951.     ScolPage_list.AnchorPoint = Vector2.new(0.5, 0.5)
  952.     ScolPage_list.Position = UDim2.new(0.5, 0, 0.5, 0)
  953.     ScolPage_list.ClipsDescendants = true
  954.     ScolPage_list.ScrollBarImageColor3 =  Color3.fromRGB(235, 235, 235)
  955.     ScolPage_list.ScrollBarImageColor3 =  Color3.fromRGB(235, 235, 235)
  956.  
  957.     UIListLayout_MainPage_list.Parent = ScolPage_list
  958.     UIListLayout_MainPage_list.SortOrder = Enum.SortOrder.LayoutOrder
  959.     UIListLayout_MainPage_list.Padding = UDim.new(0, 5)
  960.  
  961.     UIPadding_MainPage_list.Parent = ScolPage_list
  962.     UIPadding_MainPage_list.PaddingLeft = UDim.new(0, 0)
  963.     UIPadding_MainPage_list.PaddingTop = UDim.new(0, 0)
  964.  
  965.  
  966.     local DropConer4 = Instance.new("UICorner")
  967.            
  968.     DropConer4.CornerRadius = UDim.new(0, 4)
  969.     DropConer4.Name = ""
  970.     DropConer4.Parent = ListFrame
  971.  
  972.     local framesize =  50
  973.     local count = 0
  974.     for i , v in pairs(list) do
  975.         count = count + 1
  976.        
  977.         if count == 1 then
  978.             framesize = 50
  979.         elseif count == 2 then
  980.             framesize = 70
  981.         elseif count >= 3 then
  982.             framesize = 150
  983.         end
  984.  
  985.     local listDropButton = Instance.new("TextButton")
  986.  
  987.     listDropButton.Parent = ScolPage_list
  988.     listDropButton.BackgroundColor3 = Color3.fromRGB(15, 15 ,15)
  989.     listDropButton.BorderSizePixel = 0
  990.     listDropButton.Size = UDim2.new(0, 155, 0, 24)
  991.     listDropButton.Font = Enum.Font.GothamSemibold
  992.     listDropButton.Text = tostring(v)
  993.     listDropButton.TextColor3 = Color3.fromRGB(0, 205, 95)
  994.     listDropButton.TextSize = 11.000
  995.     listDropButton.AutoButtonColor = false
  996.     listDropButton.AnchorPoint = Vector2.new(0.5, 0.5)
  997.     listDropButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  998.  
  999.     listDropButton.MouseButton1Click:Connect(function()
  1000.         TweenService:Create(
  1001.             ListFrame,
  1002.             TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1003.             {Size =  UDim2.new(0, 155, 0, 0)} -- UDim2.new(0, 128, 0, 25)
  1004.         ):Play()
  1005.         TweenService:Create(
  1006.             ScolPage_list,
  1007.             TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1008.             {Size =  UDim2.new(0, 155, 0, 0)} -- UDim2.new(0, 128, 0, 25)
  1009.         ):Play()
  1010.         repeat
  1011.             wait()
  1012.         until ScolPage_list.Size ==  UDim2.new(0, 155, 0, 0)
  1013.         ListFrame.Visible = false
  1014.         TextLabelDrop2.Text = text2.." : "..tostring(v)  
  1015.         callback(v)
  1016.     end
  1017. )
  1018.  
  1019.     listDropButton.MouseEnter:Connect(function ()
  1020.         TweenService:Create(
  1021.             listDropButton,
  1022.             TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1023.             {BackgroundColor3 = Color3.fromRGB(25, 25, 25)} -- UDim2.new(0, 128, 0, 25)
  1024.         ):Play()
  1025.     end)
  1026.     listDropButton.MouseLeave:Connect(function ()
  1027.         TweenService:Create(
  1028.             listDropButton,
  1029.             TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1030.             {BackgroundColor3 = Color3.fromRGB(15, 15, 15)} -- UDim2.new(0, 128, 0, 25)
  1031.         ):Play()
  1032.     end)
  1033.  
  1034.     ScolPage_list.CanvasSize = UDim2.new(0,0,0,UIListLayout_MainPage_list.AbsoluteContentSize.Y + 10)  
  1035.  
  1036.  
  1037.  
  1038. end
  1039.  
  1040.     DropArbt_listimage.MouseButton1Click:Connect(function()    
  1041.         if checkdrop.checkscol == false then
  1042.             ListFrame.Visible = true
  1043.             TweenService:Create(
  1044.                 DropArbt_listimage,
  1045.                 TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),
  1046.                 {Rotation = -180}
  1047.             ):Play()
  1048.             TweenService:Create(
  1049.                 ListFrame,
  1050.                 TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1051.                 {Size =  UDim2.new(0, 155, 0, framesize)} -- UDim2.new(0, 128, 0, 25)
  1052.             ):Play()
  1053.             TweenService:Create(
  1054.                 ScolPage_list,
  1055.                 TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1056.                 {Size =  UDim2.new(0, 155, 0, framesize)} -- UDim2.new(0, 128, 0, 25)
  1057.             ):Play()
  1058.  
  1059.     else
  1060.         TweenService:Create(
  1061.             DropArbt_listimage,
  1062.             TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),
  1063.             {Rotation = 0}
  1064.         ):Play()
  1065.         TweenService:Create(
  1066.             ListFrame,
  1067.             TweenInfo.new(0.2, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1068.             {Size =  UDim2.new(0, 155, 0, 0)} -- UDim2.new(0, 128, 0, 25)
  1069.         ):Play()
  1070.         TweenService:Create(
  1071.             ScolPage_list,
  1072.             TweenInfo.new(0.2, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1073.             {Size =  UDim2.new(0, 155, 0, 0)} -- UDim2.new(0, 128, 0, 25)
  1074.         ):Play()
  1075.         repeat
  1076.             wait()
  1077.         until ScolPage_list.Size ==  UDim2.new(0, 155, 0, 0)
  1078.         ListFrame.Visible = false
  1079.         end
  1080.         checkdrop.checkscol  = not    checkdrop.checkscol  
  1081.         pcall(callback,   checkdrop.checkscol )
  1082.     end)
  1083.  
  1084.  
  1085.     DropButton.MouseButton1Click:Connect(function()    
  1086.         if checkdrop.checkscol == false then
  1087.             ListFrame.Visible = true
  1088.             TweenService:Create(
  1089.                 DropArbt_listimage,
  1090.                 TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),
  1091.                 {Rotation = -180}
  1092.             ):Play()
  1093.             TweenService:Create(
  1094.                 ListFrame,
  1095.                 TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1096.                 {Size =  UDim2.new(0, 155, 0, framesize)} -- UDim2.new(0, 128, 0, 25)
  1097.             ):Play()
  1098.             TweenService:Create(
  1099.                 ScolPage_list,
  1100.                 TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1101.                 {Size =  UDim2.new(0, 155, 0, framesize)} -- UDim2.new(0, 128, 0, 25)
  1102.             ):Play()
  1103.  
  1104.     else
  1105.         TweenService:Create(
  1106.             DropArbt_listimage,
  1107.             TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),
  1108.             {Rotation = 0}
  1109.         ):Play()
  1110.         TweenService:Create(
  1111.             ListFrame,
  1112.             TweenInfo.new(0.2, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1113.             {Size =  UDim2.new(0, 155, 0, 0)} -- UDim2.new(0, 128, 0, 25)
  1114.         ):Play()
  1115.         TweenService:Create(
  1116.             ScolPage_list,
  1117.             TweenInfo.new(0.2, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1118.             {Size =  UDim2.new(0, 155, 0, 0)} -- UDim2.new(0, 128, 0, 25)
  1119.         ):Play()
  1120.         repeat
  1121.             wait()
  1122.         until ScolPage_list.Size ==  UDim2.new(0, 155, 0, 0)
  1123.         ListFrame.Visible = false
  1124.         end
  1125.         checkdrop.checkscol  = not    checkdrop.checkscol  
  1126.         pcall(callback,   checkdrop.checkscol )
  1127.     end)
  1128.  
  1129.     function dropfuc:Add(text2)
  1130.        
  1131.     local listDropButton = Instance.new("TextButton")
  1132.  
  1133.     listDropButton.Parent = ScolPage_list
  1134.     listDropButton.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  1135.     listDropButton.BorderSizePixel = 0
  1136.     listDropButton.Size = UDim2.new(0, 155, 0, 24)
  1137.     listDropButton.Font = Enum.Font.GothamSemibold
  1138.     listDropButton.Text = tostring(text2)
  1139.     listDropButton.TextColor3 = Color3.fromRGB(0, 205, 95)
  1140.     listDropButton.TextSize = 11.000
  1141.     listDropButton.AutoButtonColor = false
  1142.     listDropButton.AnchorPoint = Vector2.new(0.5, 0.5)
  1143.     listDropButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  1144.  
  1145.  
  1146.  
  1147.     listDropButton.MouseButton1Click:Connect(function()
  1148.         TweenService:Create(
  1149.             ListFrame,
  1150.             TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1151.             {Size =  UDim2.new(0, 140, 0, 0)} -- UDim2.new(0, 128, 0, 25)
  1152.         ):Play()
  1153.         TweenService:Create(
  1154.             ScolPage_list,
  1155.             TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  1156.             {Size =  UDim2.new(0, 140, 0, 0)} -- UDim2.new(0, 128, 0, 25)
  1157.         ):Play()
  1158.         repeat
  1159.             wait()
  1160.         until ScolPage_list.Size ==  UDim2.new(0, 140, 0, 0)
  1161.         ListFrame.Visible = false
  1162.         TextLabelDrop2.Text = text.." : "..tostring(text2)  
  1163.         callback(text2)
  1164.     end
  1165. )
  1166.  
  1167.     listDropButton.MouseEnter:Connect(function ()
  1168.         TweenService:Create(
  1169.             listDropButton,
  1170.             TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1171.             {BackgroundColor3 = Color3.fromRGB(25, 25, 25)} -- UDim2.new(0, 128, 0, 25)
  1172.         ):Play()
  1173.     end)
  1174.     listDropButton.MouseLeave:Connect(function ()
  1175.         TweenService:Create(
  1176.             listDropButton,
  1177.             TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1178.             {BackgroundColor3 = Color3.fromRGB(15, 15, 15)} -- UDim2.new(0, 128, 0, 25)
  1179.         ):Play()
  1180.     end)
  1181.  
  1182.     ScolPage_list.CanvasSize = UDim2.new(0,0,0,UIListLayout_MainPage_list.AbsoluteContentSize.Y + 10)  
  1183.  
  1184.  
  1185.     end
  1186.  
  1187.     function dropfuc:Clear()
  1188.     for i, v in next, ScolPage_list:GetChildren() do
  1189.         if v:IsA("TextButton")  then
  1190.         v:Destroy()
  1191.        
  1192.         end
  1193.         ScolPage_list.CanvasSize = UDim2.new(0,0,0,UIListLayout_MainPage_list.AbsoluteContentSize.Y + 10)  
  1194.     end  
  1195.  
  1196. end  
  1197.     return  dropfuc
  1198. end
  1199.  
  1200. function ems:Slder(text,min,max,de,callback)
  1201.     local SliderFunc = {}
  1202.     local SliderFrame = Instance.new("Frame")
  1203.  
  1204.  
  1205.     SliderFrame.Name = "SliderFrame"
  1206.     SliderFrame.Parent = ScolPage2
  1207.     SliderFrame.BackgroundColor3 = Color3.fromRGB(255,255,255)
  1208.     SliderFrame.BorderSizePixel = 0
  1209.     SliderFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  1210.     SliderFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  1211.     SliderFrame.Size = UDim2.new(0, 155, 0, 50)
  1212.     SliderFrame.BackgroundTransparency = 1
  1213.     SliderFrame.ClipsDescendants = true
  1214.  
  1215.     local fakeclick = Instance.new("TextButton",SliderFrame)
  1216.  
  1217.     fakeclick.BackgroundColor3 = Color3.fromRGB(15,15,15)
  1218.     fakeclick.BorderSizePixel = 0
  1219.     fakeclick.Size = UDim2.new(1, 0, 1, 0)
  1220.     fakeclick.Font = Enum.Font.GothamSemibold
  1221.     fakeclick.Text = ""
  1222.     fakeclick.TextColor3 = Color3.fromRGB(255, 255, 255)
  1223.     fakeclick.Transparency = 1
  1224.     fakeclick.TextSize = 10.000
  1225.     fakeclick.AutoButtonColor = false
  1226.     fakeclick.AnchorPoint = Vector2.new(0.5, 0.5)
  1227.     fakeclick.Position = UDim2.new(0.5, 0, 0.3, 0)
  1228.  
  1229.     local Conner_SliderFrame1 = Instance.new("UICorner")
  1230.        
  1231.     Conner_SliderFrame1.CornerRadius = UDim.new(0, 5)
  1232.     Conner_SliderFrame1.Name = ""
  1233.     Conner_SliderFrame1.Parent = SliderFrame
  1234.  
  1235.     local SlisFrameStroke = Instance.new("UIStroke",SliderFrame)
  1236.                    
  1237.     SlisFrameStroke.Thickness = 1
  1238.     SlisFrameStroke.LineJoinMode = Enum.LineJoinMode.Round
  1239.     SlisFrameStroke.Color = Color3.fromRGB(0, 205, 95)
  1240.     SlisFrameStroke.Transparency = 0
  1241.     local TalabelSlider = Instance.new("TextLabel")
  1242.  
  1243.     TalabelSlider.Parent = SliderFrame
  1244.     TalabelSlider.Name = "TalabelSlider"
  1245.     TalabelSlider.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  1246.     TalabelSlider.BackgroundTransparency = 1
  1247.     TalabelSlider.AnchorPoint = Vector2.new(0.5, 0.5)
  1248.     TalabelSlider.Position = UDim2.new(0.5, 0, 0.2, 0)
  1249.     TalabelSlider.Size = UDim2.new(0, 145, 0, 20)
  1250.     TalabelSlider.Font = Enum.Font.GothamSemibold
  1251.     TalabelSlider.Text = text
  1252.     TalabelSlider.TextColor3 = Color3.fromRGB(255, 255, 255)
  1253.     TalabelSlider.TextSize = 11.000
  1254.     TalabelSlider.BorderSizePixel = 0
  1255.     TalabelSlider.ClipsDescendants = true
  1256.     TalabelSlider.TextXAlignment = Enum.TextXAlignment.Left
  1257.  
  1258.        
  1259.     local ValueFrame = Instance.new("Frame")
  1260.  
  1261.     ValueFrame.Name = "ValueFrame"
  1262.     ValueFrame.Parent = SliderFrame
  1263.     ValueFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  1264.     ValueFrame.BorderSizePixel = 0
  1265.     ValueFrame.BackgroundTransparency = 0
  1266.     ValueFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  1267.     ValueFrame.Position = UDim2.new(0.5, 0, 0.7, 0)
  1268.     ValueFrame.Size = UDim2.new(0, 145, 0, 20)
  1269.     ValueFrame.BackgroundTransparency = 1
  1270.     ValueFrame.ClipsDescendants = true
  1271.  
  1272.     local SecValue = Instance.new("Frame")
  1273.  
  1274.     SecValue.Name = "SecValue"
  1275.     SecValue.Parent = ValueFrame
  1276.     SecValue.BackgroundColor3 = Color3.fromRGB(155, 155, 155)
  1277.     SecValue.BorderSizePixel = 0
  1278.     SecValue.BackgroundTransparency = 0
  1279.     SecValue.AnchorPoint = Vector2.new(0.5, 0.5)
  1280.     SecValue.Position = UDim2.new(0.5, 0, 0.5, 0)
  1281.     SecValue.Size = UDim2.new(0, 135, 0, 4)
  1282.     SecValue.BackgroundTransparency = 0
  1283.     SecValue.ClipsDescendants = false
  1284.  
  1285.    
  1286.     local MainValue = Instance.new("Frame")
  1287.  
  1288.     MainValue.Name = "MainValue"
  1289.     MainValue.Parent = SecValue
  1290.     MainValue.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  1291.     MainValue.BorderSizePixel = 0
  1292.     MainValue.BackgroundTransparency = 0
  1293.     -- MainValue.AnchorPoint = Vector2.new(0.5, 0.5)
  1294.     MainValue.Position = UDim2.new(0., 0, 0., 0)
  1295.     MainValue.Size = UDim2.new((de or 0) / max, 0, 0, 4)
  1296.     MainValue.BackgroundTransparency = 0
  1297.     MainValue.ClipsDescendants = false
  1298.  
  1299.      
  1300.     local ConneValue = Instance.new("Frame")
  1301.  
  1302.     ConneValue.Name = "ConneValue"
  1303.     ConneValue.Parent = SecValue
  1304.     ConneValue.BackgroundColor3 = Color3.fromRGB(255,255, 255)
  1305.     ConneValue.Size = UDim2.new(0, 10, 0, 10)
  1306.     ConneValue.BackgroundTransparency = 0
  1307.     ConneValue.BorderSizePixel = 0
  1308.     ConneValue.AnchorPoint = Vector2.new(0.5, 0.5)
  1309.     ConneValue.Position = UDim2.new((de or 0)/max, 0.5, 0.5,0.5, 0)
  1310.     ConneValue.ClipsDescendants = false
  1311.  
  1312.     local Conner_Conne = Instance.new("UICorner")
  1313.                    
  1314.     Conner_Conne.CornerRadius = UDim.new(0, 10)
  1315.     Conner_Conne.Name = ""
  1316.     Conner_Conne.Parent = ConneValue
  1317.  
  1318.            
  1319.     local ScolDown_Uiconner2 = Instance.new("UICorner")
  1320.                
  1321.     ScolDown_Uiconner2.CornerRadius = UDim.new(0, 8)
  1322.     ScolDown_Uiconner2.Name = ""
  1323.     ScolDown_Uiconner2.Parent = MainValue
  1324.  
  1325.     local ScolDown_Uiconner3 = Instance.new("UICorner")
  1326.        
  1327.     ScolDown_Uiconner3.CornerRadius = UDim.new(0, 8)
  1328.     ScolDown_Uiconner3.Name = ""
  1329.     ScolDown_Uiconner3.Parent = SecValue
  1330.  
  1331.  
  1332.    
  1333.     local ShowValueFarm = Instance.new("Frame")
  1334.  
  1335.     ShowValueFarm.Name = "ShowValueFarm"
  1336.     ShowValueFarm.Parent = SliderFrame
  1337.     ShowValueFarm.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1338.     ShowValueFarm.Size = UDim2.new(0, 50, 0, 14)
  1339.     ShowValueFarm.BackgroundTransparency = 1
  1340.     ShowValueFarm.BorderSizePixel = 0
  1341.     ShowValueFarm.AnchorPoint = Vector2.new(0.5, 0.5)
  1342.     ShowValueFarm.Position = UDim2.new(0.80, 0, 0.28, 0)
  1343.     ShowValueFarm.ClipsDescendants = false
  1344.  
  1345.     local MheeFrameStroke1 = Instance.new("UIStroke",ShowValueFarm)
  1346.                    
  1347.     MheeFrameStroke1.Thickness = 1
  1348.     MheeFrameStroke1.LineJoinMode = Enum.LineJoinMode.Round
  1349.     MheeFrameStroke1.Color = Color3.fromRGB(0, 205, 95)
  1350.     MheeFrameStroke1.Transparency = 0
  1351.  
  1352.     local CustomValue = Instance.new("TextBox")
  1353.  
  1354.     CustomValue.Parent = ShowValueFarm
  1355.     CustomValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1356.     CustomValue.BorderSizePixel = 0
  1357.     CustomValue.ClipsDescendants = true
  1358.     CustomValue.AnchorPoint = Vector2.new(0.5, 0.5)
  1359.     CustomValue.Position = UDim2.new(0.5, 0, 0.5, 0)
  1360.     CustomValue.Size = UDim2.new(0, 145, 0, 26)
  1361.     CustomValue.Font = Enum.Font.GothamSemibold
  1362.     CustomValue.PlaceholderColor3 = Color3.fromRGB(222, 222, 222)
  1363.     CustomValue.PlaceholderText =  ""
  1364.     CustomValue.Text =  tostring(de and math.floor((de / max) * (max - min) + min) or 0)
  1365.     CustomValue.TextColor3 = Color3.fromRGB(255, 255, 255)
  1366.     CustomValue.TextSize = 9.000
  1367.     CustomValue.BackgroundTransparency = 1
  1368.  
  1369.     local ScolDown_Uiconner3222 = Instance.new("UICorner")
  1370.        
  1371.     ScolDown_Uiconner3222.CornerRadius = UDim.new(0, 4)
  1372.     ScolDown_Uiconner3222.Name = ""
  1373.     ScolDown_Uiconner3222.Parent = ShowValueFarm
  1374.     local function move(input)
  1375.         local pos =
  1376.             UDim2.new(
  1377.                 math.clamp((input.Position.X - SecValue.AbsolutePosition.X) / SecValue.AbsoluteSize.X, 0, 1),
  1378.                 0,
  1379.                 0.5,
  1380.                 0
  1381.             )
  1382.         local pos1 =
  1383.             UDim2.new(
  1384.                 math.clamp((input.Position.X - SecValue.AbsolutePosition.X) / SecValue.AbsoluteSize.X, 0, 1),
  1385.                 0,
  1386.                 0,
  1387.                 5
  1388.             )
  1389.        
  1390.             MainValue:TweenSize(pos1, "Out", "Sine", 0.2, true)
  1391.  
  1392.             ConneValue:TweenPosition(pos, "Out", "Sine", 0.2, true)
  1393.             local value = math.floor(((pos.X.Scale * max) / max) * (max - min) + min)
  1394.             CustomValue.Text = tostring(value)
  1395.             callback(value)
  1396.  
  1397.         end
  1398.         local dragging = false
  1399.         ConneValue.InputBegan:Connect(
  1400.             function(input)
  1401.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1402.                     dragging = true
  1403.  
  1404.                 end
  1405.             end
  1406.         )
  1407.         ConneValue.InputEnded:Connect(
  1408.             function(input)
  1409.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1410.                     dragging = false
  1411.                  
  1412.                 end
  1413.             end
  1414.         )
  1415.            
  1416.        
  1417.         ValueFrame.InputBegan:Connect(
  1418.             function(input)
  1419.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1420.                     dragging = true
  1421.  
  1422.                 end
  1423.             end
  1424.         )
  1425.         ValueFrame.InputEnded:Connect(
  1426.             function(input)
  1427.                 if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1428.                     dragging = false
  1429.                  
  1430.                 end
  1431.             end
  1432.         )
  1433.  
  1434.  
  1435.         game:GetService("UserInputService").InputChanged:Connect(
  1436.             function(input)
  1437.                 if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  1438.                     move(input)
  1439.                 end
  1440.             end
  1441.             )
  1442.                    CustomValue.FocusLost:Connect(function()    
  1443.                         MainValue:TweenSize(UDim2.new((CustomValue.Text or 0) / max, 0, 0, 5), "Out", "Sine", 0.2, true)
  1444.                         ConneValue:TweenPosition(UDim2.new((CustomValue.Text or 0)/max, 0,0.5, 0) , "Out", "Sine", 0.2, true)
  1445.                         CustomValue.Text = tostring(CustomValue.Text and math.floor((CustomValue.Text / max) * (max - min) + min) )
  1446.                         pcall(callback,tonumber( CustomValue.Text))
  1447.                         -- if  CustomValue.Text == "" then
  1448.  
  1449.                         --     MainValue:TweenSize(UDim2.new((CustomValue.PlaceholderText  or 0) / max, 0, 0, 2), "Out", "Sine", 0.2, true)
  1450.                         --     ConneValue:TweenPosition(UDim2.new((CustomValue.PlaceholderText  or 0)/max, 0,0, 0) , "Out", "Sine", 0.2, true)
  1451.                         --     CustomValue.Text = tostring(CustomValue.PlaceholderText  and math.floor((    CustomValue.PlaceholderText  / max) * (max - min) + min) or 0)
  1452.                         --     pcall(callback,CustomValue.PlaceholderText )
  1453.                         -- end
  1454.                     end)
  1455.  
  1456.                 function SliderFunc:change(tochange)
  1457.                     MainValue:TweenSize(UDim2.new((tochange or 0) / max, 0, 0, 5), "Out", "Sine", 0.2, true)
  1458.                     ConneValue:TweenPosition(UDim2.new((tochange or 0)/max, 0,0.5, 0) , "Out", "Sine", 0.2, true)
  1459.                     CustomValue.Text = tostring(tochange and math.floor((CustomValue.Text / max) * (max - min) + min) )
  1460.                     pcall(callback, tonumber(tochange))
  1461.                 end
  1462.                 return  SliderFunc
  1463.                
  1464. end
  1465.  
  1466. function ems:Ti(text)
  1467.     local tiframe = Instance.new("Frame")
  1468.  
  1469.     tiframe.Name = "tiframe"
  1470.     tiframe.Parent = ScolPage2
  1471.     tiframe.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1472.     tiframe.BackgroundTransparency = 1
  1473.     tiframe.BorderSizePixel = 0
  1474.     tiframe.ClipsDescendants = true
  1475.     tiframe.AnchorPoint = Vector2.new(0.5, 0.5)
  1476.     tiframe.Position = UDim2.new(0.5, 0, 0.5, 0)
  1477.     tiframe.Size = UDim2.new(0, 155, 0, 20)
  1478.  
  1479.     local  lineframe = Instance.new("TextLabel")
  1480.                  
  1481.     lineframe.Parent = tiframe
  1482.     lineframe.BackgroundColor3 = Color3.fromRGB(0, 205 ,95)
  1483.     lineframe.BackgroundTransparency = 0
  1484.     lineframe.AnchorPoint = Vector2.new(0.6, 0.5)
  1485.     lineframe.Position = UDim2.new(0., 0, 0.4, 0)
  1486.     lineframe.BorderSizePixel = 0
  1487.     lineframe.Size = UDim2.new(0, 40, 0, 1)
  1488.     lineframe.Font = Enum.Font.GothamSemibold
  1489.     lineframe.TextColor3 = Color3.fromRGB(255, 255, 255)
  1490.     lineframe.TextSize = 13.000
  1491.     lineframe.Text = ""
  1492.  
  1493.     local  lineframe2 = Instance.new("TextLabel")
  1494.                  
  1495.     lineframe2.Parent = tiframe
  1496.     lineframe2.BackgroundColor3 = Color3.fromRGB(0, 205, 95)
  1497.     lineframe2.BackgroundTransparency = 0
  1498.     lineframe2.AnchorPoint = Vector2.new(0.5, 0.5)
  1499.     lineframe2.Position = UDim2.new(1, 0, 0.4, 0)
  1500.     lineframe2.BorderSizePixel = 0
  1501.     lineframe2.Size = UDim2.new(0, 40, 0, 1)
  1502.     lineframe2.Font = Enum.Font.GothamSemibold
  1503.     lineframe2.TextColor3 = Color3.fromRGB(255, 255, 255)
  1504.     lineframe2.TextSize = 11.000
  1505.     lineframe2.Text = ""
  1506.  
  1507.     local  lineframe3 = Instance.new("TextLabel")
  1508.                  
  1509.     lineframe3.Parent = tiframe
  1510.     lineframe3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1511.     lineframe3.BackgroundTransparency = 1
  1512.     lineframe3.AnchorPoint = Vector2.new(0.5, 0.5)
  1513.     lineframe3.Position = UDim2.new(0.5, 0, 0.5, 0)
  1514.     lineframe3.BorderSizePixel = 0
  1515.     lineframe3.Size = UDim2.new(0, 130, 0, 20)
  1516.     lineframe3.Font = Enum.Font.GothamSemibold
  1517.     lineframe3.Text = tostring(text)
  1518.     lineframe3.TextColor3 = Color3.fromRGB(0, 205, 150)
  1519.     lineframe3.TextSize = 12.000
  1520. end
  1521.  
  1522. function ems:Label(text)
  1523.  
  1524.     local labelfuc = {}
  1525.     local  Labelxd = Instance.new("TextLabel")
  1526.                  
  1527.     Labelxd.Parent = ScolPage2
  1528.     Labelxd.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1529.     Labelxd.BackgroundTransparency = 1
  1530.     Labelxd.AnchorPoint = Vector2.new(0.5, 0.5)
  1531.     Labelxd.Position = UDim2.new(0.5, 0, 0.8, 0)
  1532.     Labelxd.BorderSizePixel = 0
  1533.     Labelxd.Size = UDim2.new(0, 155, 0, 13)
  1534.     Labelxd.Font = Enum.Font.GothamSemibold
  1535.     Labelxd.Text = tostring(text)
  1536.     Labelxd.TextColor3 = Color3.fromRGB(255, 255, 255)
  1537.     Labelxd.TextSize = 12.000
  1538.  
  1539.     function  labelfuc:Change(text2)
  1540.         Labelxd.Text = tostring(text2)
  1541.     end
  1542.     return  labelfuc
  1543. end
  1544.  
  1545.     return ems
  1546. end
  1547.     return page
  1548. end
  1549.     return tap
  1550. end
  1551. return create
Advertisement
Add Comment
Please, Sign In to add comment