Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local zypher = {}
- zypher.gs = {}
- CountCountCount = 0
- setmetatable(zypher.gs, {
- __index = function(_, service)
- return game:GetService(service)
- end,
- __newindex = function(t, i)
- t[i] = nil
- return
- end
- })
- local mouse = zypher.gs["Players"].LocalPlayer:GetMouse()
- function zypher:Create(class, properties)
- local object = Instance.new(class)
- for prop, val in next, properties do
- if object[prop] and prop ~= "Parent" then
- object[prop] = val
- end
- end
- return object
- end
- function zypher.CreateMain()
- local zypherObject = {}
- local objects = zypherObject
- local self = zypher
- local firstCategory = true
- if not zypher.gs["RunService"]:IsStudio() and self.gs["CoreGui"]:FindFirstChild("Zypher") then
- return
- end
- objects.screengui = zypher:Create("ScreenGui", {
- Name = "Zypher",
- ZIndexBehavior = Enum.ZIndexBehavior.Global,
- ResetOnSpawn = false,
- })
- objects.motherframe = zypher:Create("Frame", {
- Name = "MotherFrame",
- BackgroundColor3 = Color3.fromRGB(46, 46, 54),
- BorderSizePixel = 0,
- ClipsDescendants = true,
- Position = UDim2.new(0.5, -400, 0.5, -225),
- Size = UDim2.new(0, 720, 0, 446),
- })
- objects.motherframe.ClipsDescendants = true
- objects.sidebar = zypher:Create("Frame", {
- Name = "SideBar",
- BackgroundColor3 = Color3.fromRGB(39, 38, 46),
- BorderSizePixel = 0,
- Position = UDim2.new(0, 0, 0, 6),
- Size = UDim2.new(0, 150, 0, 440),
- })
- objects.gradientline = zypher:Create("Frame", {
- Name = "GradientLine",
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BorderSizePixel = 0,
- Size = UDim2.new(0, 720, 0, 4),
- ZIndex = 6,
- })
- objects.gradientlinegradient = zypher:Create("UIGradient", {
- Name = "GradientLineGradient",
- 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))},
- })
- objects.sectionscontainer = zypher:Create("Frame", {
- Name = "SectionsContainer",
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BackgroundTransparency = 1.000,
- BorderColor3 = Color3.fromRGB(27, 42, 53),
- BorderSizePixel = 0,
- Position = UDim2.new(0, 150, 0, 4),
- Size = UDim2.new(0, 570, 0, 442),
- })
- local uipagelayout = zypher:Create("UIPageLayout", {
- FillDirection = Enum.FillDirection.Vertical,
- SortOrder = Enum.SortOrder.LayoutOrder,
- EasingDirection = Enum.EasingDirection.InOut,
- EasingStyle = Enum.EasingStyle.Quad,
- Padding = UDim.new(0, 10),
- TweenTime = 0.700,
- ScrollWheelInputEnabled = false,
- })
- uipagelayout.Parent = objects.sectionscontainer
- uipagelayout = nil
- objects.logocircle = zypher:Create("ImageLabel", {
- Name = "LogoCircle",
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BackgroundTransparency = 1.000,
- BorderColor3 = Color3.fromRGB(27, 42, 53),
- Position = UDim2.new(0.233333349, 0, 0.0295454524, 0),
- Size = UDim2.new(0, 80, 0, 80),
- Image = "rbxassetid://3570695787",
- })
- objects.logocirclegradient = zypher:Create("UIGradient", {
- Name = "LogoCircleGradient",
- 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))},
- Rotation = 90,
- })
- objects.logo = zypher:Create("ImageLabel", {
- Name = "Logo",
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BackgroundTransparency = 1.000,
- BorderColor3 = Color3.fromRGB(27, 42, 53),
- Position = UDim2.new(0.12023773, 0, 0.121428683, 0),
- Size = UDim2.new(0, 60, 0, 60),
- Image = "rbxassetid://5082829436",
- })
- objects.logogradient = zypher:Create("UIGradient", {
- Name = "LogoGradient",
- Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(247, 251, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(103, 103, 103))},
- })
- objects.sidesections = zypher:Create("Frame", {
- Name = "SideSections",
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BackgroundTransparency = 1.000,
- BorderColor3 = Color3.fromRGB(27, 42, 53),
- BorderSizePixel = 0,
- Position = UDim2.new(0, 18, 0, 115),
- Size = UDim2.new(0, 125, 0, 313),
- })
- objects.sidesectionslayout = zypher:Create("UIListLayout", {
- Name = "SideSectionsLayout",
- SortOrder = Enum.SortOrder.LayoutOrder,
- Padding = UDim.new(0, 8),
- })
- objects.sectionselector = zypher:Create("ImageLabel", {
- Name = "SectionSelector",
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BackgroundTransparency = 1.000,
- Position = UDim2.new(0, 15, 0, 114),
- Size = UDim2.new(0, 120, 0, 32),
- Image = "rbxassetid://3570695787",
- ScaleType = Enum.ScaleType.Slice,
- SliceCenter = Rect.new(100, 100, 100, 100),
- SliceScale = 0.040,
- })
- function MoveSelectedBar(Button, ButtonPOSNum)
- warn('---------------------------------------------------------------------')
- for i,v in pairs(game.CoreGui.Zypher.MotherFrame.SideBar.SideSections:GetDescendants()) do
- if v:IsA('TextButton') and v.Name == Button then
- ButtonButton = v
- else
- print('u r nigger')
- end
- end
- MeIsNigger = ButtonButton.Parent.Parent.Parent:FindFirstChild('SectionSelector')
- --MeIsNigger.Position = UDim2.new(0, 15, ButtonButton.Position.Y.Scale, ButtonButton.Position.Y.Offset)
- if ButtonPOSNum == 1 then
- --MeIsNigger:TweenPosition(UDim2.new(0, 15, ButtonButton.Position.Y.Scale, ButtonButton.Position.Y.Offset), "Out", "Linear", 0.08)
- print('niggers 1')
- elseif ButtonPOSNum == 2 then
- print('niggers 2')
- elseif ButtonPOSNum == 3 then
- print('niggers 3')
- MeIsNigger:TweenPosition(UDim2.new(0, 15, 0, 190), "Out", "Linear", 0.08)
- end
- end
- objects.sectionselectorgradient = zypher:Create("UIGradient", {
- Name = "SectionSelectorGradient",
- Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(56, 59, 73)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 38, 46))},
- Rotation = 90,
- })
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- 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)
- end
- objects.motherframe.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = objects.motherframe.Position
- repeat wait() until input.UserInputState == Enum.UserInputState.End
- dragging = false
- end
- end)
- objects.motherframe.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- function objects:CreateSection(Name, Image, CallBack)
- local sections = {}
- CountCountCount = CountCountCount + 1
- sections.imagebutton = zypher:Create("ImageButton", {
- Name = Name.."ImageButton",
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BackgroundTransparency = 1.000,
- BorderSizePixel = 0,
- Size = UDim2.new(0, 30, 0, 30),
- AutoButtonColor = false,
- Image = "http://www.roblox.com/asset/?id="..Image,
- ZIndex = 4,
- })
- sections.button = zypher:Create("TextButton", {
- Name = Name.."Button",
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BackgroundTransparency = 1.000,
- BorderSizePixel = 0,
- Position = UDim2.new(0, 40, 0, 0),
- Size = UDim2.new(0, 70, 0, 30),
- ZIndex = 4,
- Font = Enum.Font.GothamBold,
- Text = Name,
- TextColor3 = Color3.fromRGB(255, 255, 255),
- TextSize = 18.000,
- TextXAlignment = Enum.TextXAlignment.Left,
- })
- sections.container = zypher:Create("Frame", {
- Name = Name.."Section",
- BackgroundColor3 = Color3.fromRGB(46, 46, 54),
- BorderColor3 = Color3.fromRGB(27, 42, 53),
- BorderSizePixel = 0,
- Position = UDim2.new(0.208333328, 0, 0.00896861032, 0),
- Size = UDim2.new(0, 570, 0, 442),
- BackgroundTransparency = 1,
- })
- sections.containerhider = zypher:Create("Frame", {
- Name = "Hider",
- BackgroundColor3 = Color3.fromRGB(46, 46, 54),
- BorderColor3 = Color3.fromRGB(27, 42, 53),
- BorderSizePixel = 0,
- Position = UDim2.new(0, 0, 0, 0),
- Size = UDim2.new(0, 570, 0, 442),
- ZIndex = 5,
- BackgroundTransparency = 0,
- })
- sections.categorys = zypher:Create("Frame", {
- Name = Name.."Categories",
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BackgroundTransparency = 1.000,
- BorderColor3 = Color3.fromRGB(27, 42, 53),
- BorderSizePixel = 0,
- Position = UDim2.new(0, 0, 0, 10),
- Size = UDim2.new(0, 570, 0, 35),
- })
- --[[sections.categoryslayout = zypher:Create("UIListLayout", {
- FillDirection = Enum.FillDirection.Horizontal,
- HorizontalAlignment = Enum.HorizontalAlignment.Center,
- SortOrder = Enum.SortOrder.LayoutOrder,
- Padding = UDim.new(0, 30),
- })
- sections.categoryselector = zypher:Create("ImageLabel", {
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BackgroundTransparency = 1.000,
- Position = UDim2.new(0, 152, 0, 11),
- Size = UDim2.new(0, 120, 0, 28),
- Image = "rbxassetid://3570695787",
- ScaleType = Enum.ScaleType.Slice,
- SliceCenter = Rect.new(100, 100, 100, 100),
- SliceScale = 0.040,
- })]]
- sections.categoryselectorgradient = zypher:Create("UIGradient", {
- Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(56, 59, 73)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(39, 38, 46))},
- Rotation = 90,
- })
- if firstCategory then
- zypher.gs["TweenService"]:Create(sections.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
- zypher.gs["TweenService"]:Create(sections.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
- end
- sections.imagebutton.MouseButton1Click:connect(function()
- print(sections.button.AbsolutePosition)
- objects.sectionselector:TweenPosition(sections.imagebutton.AbsolutePosition, "Out", "Linear", 0.08)
- for _, categoryf in next, objects.screengui["MotherFrame"]["SectionsContainer"]:GetChildren() do
- if categoryf:IsA("Frame") then
- zypher.gs["TweenService"]:Create(categoryf.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
- zypher.gs["TweenService"]:Create(categoryf, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
- end
- end
- zypher.gs["TweenService"]:Create(sections.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
- zypher.gs["TweenService"]:Create(sections.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
- objects.sectionscontainer["UIPageLayout"]:JumpTo(sections.container)
- end)
- sections.button.MouseButton1Click:connect(function()
- MoveSelectedBar(Name.."Button", CountCountCount)
- print(sections.button.AbsolutePosition)
- for _, categoryf in next, objects.screengui["MotherFrame"]["SectionsContainer"]:GetChildren() do
- if categoryf:IsA("Frame") then
- zypher.gs["TweenService"]:Create(categoryf.Hider, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
- zypher.gs["TweenService"]:Create(categoryf, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
- end
- end
- zypher.gs["TweenService"]:Create(sections.containerhider, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
- zypher.gs["TweenService"]:Create(sections.container, TweenInfo.new(0.3), {BackgroundTransparency = 0}):Play()
- objects.sectionscontainer["UIPageLayout"]:JumpTo(sections.container)
- end)
- --[[function sections:CreateCategory(Name, CallBack)
- local categorys = {}
- categorys.button = zypher:Create("TextButton", {
- Name = Name.."Categories",
- BackgroundColor3 = Color3.fromRGB(255, 255, 255),
- BackgroundTransparency = 1.000,
- BorderSizePixel = 0,
- Size = UDim2.new(0, 108, 0, 30),
- ZIndex = 4,
- Font = Enum.Font.GothamBold,
- Text = Name,
- TextColor3 = Color3.fromRGB(255, 255, 255),
- TextSize = 18.000,
- })
- categorys.button.MouseButton1Click:connect(function()
- if CallBack then
- local s, e = pcall(function()
- CallBack()
- end)
- if not s then error(e) end
- end
- end)
- categorys.button.Parent = sections.categorys
- return categorys
- end]]
- sections.imagebutton.Parent = objects.sidesections
- sections.button.Parent = sections.imagebutton
- sections.container.Parent = objects.sectionscontainer
- sections.containerhider.Parent = sections.container
- --sections.categorys.Parent = sections.container
- --sections.categoryslayout.Parent = sections.categorys
- --sections.categoryselector.Parent = sections.container
- --sections.categoryselectorgradient.Parent = sections.categoryselector
- firstCategory = false
- return sections
- end
- objects.screengui.Parent = game:GetService("CoreGui")
- objects.motherframe.Parent = objects.screengui
- objects.sidebar.Parent = objects.motherframe
- objects.gradientline.Parent = objects.motherframe
- objects.gradientlinegradient.Parent = objects.gradientline
- objects.logocircle.Parent = objects.sidebar
- objects.logocirclegradient.Parent = objects.logocircle
- objects.logo.Parent = objects.logocircle
- objects.logogradient.Parent = objects.logo
- objects.sidesections.Parent = objects.sidebar
- objects.sidesectionslayout.Parent = objects.sidesections
- objects.sectionselector.Parent = objects.sidebar
- objects.sectionselectorgradient.Parent = objects.sectionselector
- objects.sectionscontainer.Parent = objects.motherframe
- return zypherObject
- end
- return zypher
Add Comment
Please, Sign In to add comment