SnowyShiro

drthftjrtfhjfghftthrtj

May 25th, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.61 KB | None | 0 0
  1. local zypher = {}
  2. zypher.gs = {}
  3. CountCountCount = 0
  4.  
  5. setmetatable(zypher.gs, {
  6.     __index = function(_, service)
  7.         return game:GetService(service)
  8.     end,
  9.     __newindex = function(t, i)
  10.         t[i] = nil
  11.         return
  12.     end
  13. })
  14.  
  15. local mouse = zypher.gs["Players"].LocalPlayer:GetMouse()
  16.  
  17. function zypher:Create(class, properties)
  18.     local object = Instance.new(class)
  19.  
  20.     for prop, val in next, properties do
  21.         if object[prop] and prop ~= "Parent" then
  22.             object[prop] = val
  23.         end
  24.     end
  25.  
  26.     return object
  27. end
  28.  
  29.  
  30. function zypher.CreateMain()
  31.     local zypherObject = {}
  32.     local objects = zypherObject
  33.     local self = zypher
  34.     local firstCategory = true
  35.  
  36.     if not zypher.gs["RunService"]:IsStudio() and self.gs["CoreGui"]:FindFirstChild("Zypher") then
  37.         return
  38.     end
  39.  
  40.     objects.screengui = zypher:Create("ScreenGui", {
  41.         Name = "Zypher",
  42.         ZIndexBehavior = Enum.ZIndexBehavior.Global,
  43.         ResetOnSpawn = false,
  44.     })
  45.  
  46.     objects.motherframe = zypher:Create("Frame", {
  47.         Name = "MotherFrame",
  48.         BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  49.         BorderSizePixel = 0,
  50.         ClipsDescendants = true,
  51.         Position = UDim2.new(0.5, -400, 0.5, -225),
  52.         Size = UDim2.new(0, 720, 0, 446),
  53.     })
  54.     objects.motherframe.ClipsDescendants = true
  55.  
  56.     objects.sidebar = zypher:Create("Frame", {
  57.         Name = "SideBar",
  58.         BackgroundColor3 = Color3.fromRGB(39, 38, 46),
  59.         BorderSizePixel = 0,
  60.         Position = UDim2.new(0, 0, 0, 6),
  61.         Size = UDim2.new(0, 150, 0, 440),
  62.     })
  63.  
  64.     objects.gradientline = zypher:Create("Frame", {
  65.         Name = "GradientLine",
  66.         BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  67.         BorderSizePixel = 0,
  68.         Size = UDim2.new(0, 720, 0, 4),
  69.         ZIndex = 6,
  70.     })
  71.  
  72.     objects.gradientlinegradient = zypher:Create("UIGradient", {
  73.         Name = "GradientLineGradient",
  74.         Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 183, 183)), ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 248, 248)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(125, 92, 164))},
  75.     })
  76.  
  77.     objects.sectionscontainer = zypher:Create("Frame", {
  78.         Name = "SectionsContainer",
  79.         BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  80.         BackgroundTransparency = 1.000,
  81.         BorderColor3 = Color3.fromRGB(27, 42, 53),
  82.         BorderSizePixel = 0,
  83.         Position = UDim2.new(0, 150, 0, 4),
  84.         Size = UDim2.new(0, 570, 0, 442),
  85.     })
  86.     local uipagelayout = zypher:Create("UIPageLayout", {
  87.         FillDirection = Enum.FillDirection.Vertical,
  88.         SortOrder = Enum.SortOrder.LayoutOrder,
  89.         EasingDirection = Enum.EasingDirection.InOut,
  90.         EasingStyle = Enum.EasingStyle.Quad,
  91.         Padding = UDim.new(0, 10),
  92.         TweenTime = 0.700,
  93.         ScrollWheelInputEnabled = false,
  94.     })
  95.  
  96.     uipagelayout.Parent = objects.sectionscontainer
  97.     uipagelayout = nil
  98.  
  99.     objects.logocircle = zypher:Create("ImageLabel", {
  100.         Name = "LogoCircle",
  101.         BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  102.         BackgroundTransparency = 1.000,
  103.         BorderColor3 = Color3.fromRGB(27, 42, 53),
  104.         Position = UDim2.new(0.233333349, 0, 0.0295454524, 0),
  105.         Size = UDim2.new(0, 80, 0, 80),
  106.         Image = "rbxassetid://3570695787",
  107.     })
  108.  
  109.     objects.logocirclegradient = zypher:Create("UIGradient", {
  110.         Name = "LogoCircleGradient",
  111.         Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 183, 183)), ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 248, 248)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(125, 92, 164))},
  112.         Rotation = 90,
  113.     })
  114.  
  115.     objects.logo = zypher:Create("ImageLabel", {
  116.         Name = "Logo",
  117.         BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  118.         BackgroundTransparency = 1.000,
  119.         BorderColor3 = Color3.fromRGB(27, 42, 53),
  120.         Position = UDim2.new(0.12023773, 0, 0.121428683, 0),
  121.         Size = UDim2.new(0, 60, 0, 60),
  122.         Image = "rbxassetid://5082829436",
  123.     })
  124.    
  125.     objects.logogradient = zypher:Create("UIGradient", {
  126.         Name = "LogoGradient",
  127.         Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(247, 251, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(103, 103, 103))},
  128.     })
  129.  
  130.     objects.sidesections = zypher:Create("Frame", {
  131.         Name = "SideSections",
  132.         BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  133.         BackgroundTransparency = 1.000,
  134.         BorderColor3 = Color3.fromRGB(27, 42, 53),
  135.         BorderSizePixel = 0,
  136.         Position = UDim2.new(0, 18, 0, 115),
  137.         Size = UDim2.new(0, 125, 0, 313),
  138.     })
  139.  
  140.     objects.sidesectionslayout = zypher:Create("UIListLayout", {
  141.         Name = "SideSectionsLayout",
  142.         SortOrder = Enum.SortOrder.LayoutOrder,
  143.         Padding = UDim.new(0, 8),
  144.     })
  145.  
  146.     objects.sectionselector = zypher:Create("ImageLabel", {
  147.         Name = "SectionSelector",
  148.         BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  149.         BackgroundTransparency = 1.000,
  150.         Position = UDim2.new(0, 15, 0, 114),
  151.         Size = UDim2.new(0, 120, 0, 32),
  152.         Image = "rbxassetid://3570695787",
  153.         ScaleType = Enum.ScaleType.Slice,
  154.         SliceCenter = Rect.new(100, 100, 100, 100),
  155.         SliceScale = 0.040,
  156.     })
  157.  
  158.     function MoveSelectedBar(Button, ButtonPOSNum)
  159.         warn('---------------------------------------------------------------------')
  160.         for i,v in pairs(game.CoreGui.Zypher.MotherFrame.SideBar.SideSections:GetDescendants()) do
  161.             if v:IsA('TextButton') and v.Name == Button then
  162.                 ButtonButton = v
  163.             else
  164.                 print('u r nigger')
  165.             end
  166.         end
  167.         MeIsNigger = ButtonButton.Parent.Parent.Parent:FindFirstChild('SectionSelector')
  168.         --MeIsNigger.Position = UDim2.new(0, 15, ButtonButton.Position.Y.Scale, ButtonButton.Position.Y.Offset)
  169.         if ButtonPOSNum == 1 then
  170.             --MeIsNigger:TweenPosition(UDim2.new(0, 15, ButtonButton.Position.Y.Scale, ButtonButton.Position.Y.Offset), "Out", "Linear", 0.08)
  171.             print('niggers 1')
  172.         elseif ButtonPOSNum == 2 then
  173.             print('niggers 2')
  174.         elseif ButtonPOSNum == 3 then
  175.             print('niggers 3')
  176.             MeIsNigger:TweenPosition(UDim2.new(0, 15, 0, 190), "Out", "Linear", 0.08)
  177.         end
  178.     end
  179.  
  180.     objects.sectionselectorgradient = zypher:Create("UIGradient", {
  181.         Name = "SectionSelectorGradient",
  182.         Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(56, 59, 73)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 38, 46))},
  183.         Rotation = 90,
  184.     })
  185.  
  186.     local dragInput
  187.     local dragStart
  188.     local startPos
  189.  
  190.     local function update(input)
  191.         local delta = input.Position - dragStart
  192.         objects.motherframe:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y),'Out','Linear',0.01,true)
  193.     end
  194.     objects.motherframe.InputBegan:Connect(function(input)
  195.         if input.UserInputType == Enum.UserInputType.MouseButton1 then
  196.             dragging = true
  197.             dragStart = input.Position
  198.             startPos = objects.motherframe.Position
  199.             repeat wait() until input.UserInputState == Enum.UserInputState.End
  200.             dragging = false
  201.         end
  202.     end)
  203.     objects.motherframe.InputChanged:Connect(function(input)
  204.         if input.UserInputType == Enum.UserInputType.MouseMovement then
  205.             dragInput = input
  206.         end
  207.     end)
  208.     game:GetService("UserInputService").InputChanged:Connect(function(input)
  209.         if input == dragInput and dragging then
  210.             update(input)
  211.         end
  212.     end)
  213.    
  214.     function objects:CreateSection(Name, Image, CallBack)
  215.         local sections = {}
  216.  
  217.         CountCountCount = CountCountCount + 1
  218.  
  219.         sections.imagebutton = zypher:Create("ImageButton", {
  220.             Name = Name.."ImageButton",
  221.             BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  222.             BackgroundTransparency = 1.000,
  223.             BorderSizePixel = 0,
  224.             Size = UDim2.new(0, 30, 0, 30),
  225.             AutoButtonColor = false,
  226.             Image = "http://www.roblox.com/asset/?id="..Image,
  227.             ZIndex = 4,
  228.         })
  229.  
  230.         sections.button = zypher:Create("TextButton", {
  231.             Name = Name.."Button",
  232.             BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  233.             BackgroundTransparency = 1.000,
  234.             BorderSizePixel = 0,
  235.             Position = UDim2.new(0, 40, 0, 0),
  236.             Size = UDim2.new(0, 70, 0, 30),
  237.             ZIndex = 4,
  238.             Font = Enum.Font.GothamBold,
  239.             Text = Name,
  240.             TextColor3 = Color3.fromRGB(255, 255, 255),
  241.             TextSize = 18.000,
  242.             TextXAlignment = Enum.TextXAlignment.Left,
  243.         })
  244.  
  245.         sections.container = zypher:Create("Frame", {
  246.             Name = Name.."Section",
  247.             BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  248.             BorderColor3 = Color3.fromRGB(27, 42, 53),
  249.             BorderSizePixel = 0,
  250.             Position = UDim2.new(0.208333328, 0, 0.00896861032, 0),
  251.             Size = UDim2.new(0, 570, 0, 442),
  252.             BackgroundTransparency = 1,
  253.         })
  254.  
  255.         sections.containerhider = zypher:Create("Frame", {
  256.             Name = "Hider",
  257.             BackgroundColor3 = Color3.fromRGB(46, 46, 54),
  258.             BorderColor3 = Color3.fromRGB(27, 42, 53),
  259.             BorderSizePixel = 0,
  260.             Position = UDim2.new(0, 0, 0, 0),
  261.             Size = UDim2.new(0, 570, 0, 442),
  262.             ZIndex = 5,
  263.             BackgroundTransparency = 0,
  264.         })
  265.  
  266.         sections.categorys = zypher:Create("Frame", {
  267.             Name = Name.."Categories",
  268.             BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  269.             BackgroundTransparency = 1.000,
  270.             BorderColor3 = Color3.fromRGB(27, 42, 53),
  271.             BorderSizePixel = 0,
  272.             Position = UDim2.new(0, 0, 0, 10),
  273.             Size = UDim2.new(0, 570, 0, 35),
  274.         })
  275.  
  276.         --[[sections.categoryslayout = zypher:Create("UIListLayout", {
  277.             FillDirection = Enum.FillDirection.Horizontal,
  278.             HorizontalAlignment = Enum.HorizontalAlignment.Center,
  279.             SortOrder = Enum.SortOrder.LayoutOrder,
  280.             Padding = UDim.new(0, 30),
  281.         })
  282.  
  283.         sections.categoryselector = zypher:Create("ImageLabel", {
  284.             BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  285.             BackgroundTransparency = 1.000,
  286.             Position = UDim2.new(0, 152, 0, 11),
  287.             Size = UDim2.new(0, 120, 0, 28),
  288.             Image = "rbxassetid://3570695787",
  289.             ScaleType = Enum.ScaleType.Slice,
  290.             SliceCenter = Rect.new(100, 100, 100, 100),
  291.             SliceScale = 0.040,
  292.         })]]
  293.  
  294.         sections.categoryselectorgradient = zypher:Create("UIGradient", {
  295.             Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(56, 59, 73)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 38, 46))},
  296.             Rotation = 90,
  297.         })
  298.  
  299.         if firstCategory then
  300.             zypher.gs["TweenService"]:Create(sections.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  301.             zypher.gs["TweenService"]:Create(sections.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  302.         end
  303.  
  304.         sections.imagebutton.MouseButton1Click:connect(function()
  305.             print(sections.button.AbsolutePosition)
  306.             objects.sectionselector:TweenPosition(sections.imagebutton.AbsolutePosition, "Out", "Linear", 0.08)
  307.             for _, categoryf in next, objects.screengui["MotherFrame"]["SectionsContainer"]:GetChildren() do
  308.                 if categoryf:IsA("Frame") then
  309.                     zypher.gs["TweenService"]:Create(categoryf.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  310.                     zypher.gs["TweenService"]:Create(categoryf, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  311.                 end
  312.             end
  313.             zypher.gs["TweenService"]:Create(sections.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  314.             zypher.gs["TweenService"]:Create(sections.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  315.  
  316.             objects.sectionscontainer["UIPageLayout"]:JumpTo(sections.container)
  317.         end)
  318.  
  319.         sections.button.MouseButton1Click:connect(function()
  320.             MoveSelectedBar(Name.."Button", CountCountCount)
  321.             print(sections.button.AbsolutePosition)
  322.             for _, categoryf in next, objects.screengui["MotherFrame"]["SectionsContainer"]:GetChildren() do
  323.                 if categoryf:IsA("Frame") then
  324.                     zypher.gs["TweenService"]:Create(categoryf.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  325.                     zypher.gs["TweenService"]:Create(categoryf, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  326.                 end
  327.             end
  328.             zypher.gs["TweenService"]:Create(sections.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
  329.             zypher.gs["TweenService"]:Create(sections.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
  330.  
  331.             objects.sectionscontainer["UIPageLayout"]:JumpTo(sections.container)
  332.         end)
  333.  
  334.         --[[function sections:CreateCategory(Name, CallBack)
  335.             local categorys = {}
  336.  
  337.             categorys.button = zypher:Create("TextButton", {
  338.                 Name = Name.."Categories",
  339.                 BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  340.                 BackgroundTransparency = 1.000,
  341.                 BorderSizePixel = 0,
  342.                 Size = UDim2.new(0, 108, 0, 30),
  343.                 ZIndex = 4,
  344.                 Font = Enum.Font.GothamBold,
  345.                 Text = Name,
  346.                 TextColor3 = Color3.fromRGB(255, 255, 255),
  347.                 TextSize = 18.000,
  348.             })
  349.  
  350.             categorys.button.MouseButton1Click:connect(function()
  351.                 if CallBack then
  352.                     local s, e = pcall(function()
  353.                         CallBack()
  354.                     end)
  355.                     if not s then error(e) end
  356.                 end
  357.             end)
  358.  
  359.             categorys.button.Parent = sections.categorys
  360.  
  361.             return categorys
  362.         end]]
  363.  
  364.         sections.imagebutton.Parent = objects.sidesections
  365.         sections.button.Parent = sections.imagebutton
  366.         sections.container.Parent = objects.sectionscontainer
  367.         sections.containerhider.Parent = sections.container
  368.         --sections.categorys.Parent = sections.container
  369.         --sections.categoryslayout.Parent = sections.categorys
  370.         --sections.categoryselector.Parent = sections.container
  371.         --sections.categoryselectorgradient.Parent = sections.categoryselector
  372.  
  373.         firstCategory = false
  374.  
  375.         return sections
  376.     end
  377.  
  378.     objects.screengui.Parent = game:GetService("CoreGui")
  379.     objects.motherframe.Parent = objects.screengui
  380.     objects.sidebar.Parent = objects.motherframe
  381.     objects.gradientline.Parent = objects.motherframe
  382.     objects.gradientlinegradient.Parent = objects.gradientline
  383.     objects.logocircle.Parent = objects.sidebar
  384.     objects.logocirclegradient.Parent = objects.logocircle
  385.     objects.logo.Parent = objects.logocircle
  386.     objects.logogradient.Parent = objects.logo
  387.     objects.sidesections.Parent = objects.sidebar
  388.     objects.sidesectionslayout.Parent = objects.sidesections
  389.     objects.sectionselector.Parent = objects.sidebar
  390.     objects.sectionselectorgradient.Parent = objects.sectionselector
  391.     objects.sectionscontainer.Parent = objects.motherframe
  392.  
  393.     return zypherObject
  394. end
  395.  
  396. return zypher
Add Comment
Please, Sign In to add comment