Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = {
- windowcount = 0;
- }
- function library:CreateWindow(text)
- library.windowcount = library.windowcount + 1
- local toggled = false
- local MADCITYX = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local func = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local MinBtn = Instance.new("TextButton")
- local Diamond = Instance.new("ImageLabel")
- local Panel = Instance.new("Frame")
- local Strip = Instance.new("Frame")
- local BtnFrames = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- MADCITYX.Name = "InfernusLIB"
- MADCITYX.Parent = game.CoreGui
- MADCITYX.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- MADCITYX.ResetOnSpawn = false
- func.Name = "func"
- func.Parent = MADCITYX
- func.Active = true
- func.BackgroundColor3 = Color3.fromRGB(47, 47, 47)
- func.BorderSizePixel = 0
- func.Position = UDim2.new(0.0650496334, 0, 0.0970371962, 0)
- func.Selectable = true
- func.Size = UDim2.new(0, 177, 0, 43)
- func.Selectable = true
- func.Active = true
- func.Draggable = true
- TextLabel.Parent = func
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0.231792897, 0, 0.224843681, 0)
- TextLabel.Size = UDim2.new(0, 93, 0, 15)
- TextLabel.Font = Enum.Font.SourceSansBold
- TextLabel.Text = text
- TextLabel.TextColor3 = Color3.fromRGB(125, 255, 201)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- MinBtn.Name = "MinBtn"
- MinBtn.Parent = func
- MinBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MinBtn.BackgroundTransparency = 1.000
- MinBtn.Position = UDim2.new(0.754991829, 0, -0.0223813951, 0)
- MinBtn.Size = UDim2.new(0, 54, 0, 34)
- MinBtn.Font = Enum.Font.SourceSansBold
- MinBtn.Text = "-"
- MinBtn.TextColor3 = Color3.fromRGB(125, 255, 201)
- MinBtn.TextScaled = true
- MinBtn.TextSize = 14.000
- MinBtn.TextWrapped = true
- MinBtn.MouseButton1Click:Connect(function()
- if toggled == false then
- toggled = true
- MinBtn.Text = "-"
- Panel.Visible = true
- else
- toggled = false
- MinBtn.Text = "+"
- Panel.Visible = false
- end
- end)
- Diamond.Name = "Diamond"
- Diamond.Parent = func
- Diamond.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Diamond.BackgroundTransparency = 1.000
- Diamond.Position = UDim2.new(0.0254812501, 0, 0.0999122635, 0)
- Diamond.Size = UDim2.new(0.172413319, 0, 0.141544059, 0)
- Diamond.SizeConstraint = Enum.SizeConstraint.RelativeXX
- Diamond.Image = "rbxassetid://4851247883"
- Diamond.ScaleType = Enum.ScaleType.Fit
- Panel.Name = "Panel"
- Panel.Parent = func
- Panel.BackgroundColor3 = Color3.fromRGB(47, 47, 47)
- Panel.BorderSizePixel = 0
- Panel.Position = UDim2.new(0, 0, 0.966999829, 0)
- Panel.Size = UDim2.new(0, 177, 0, 0)
- Strip.Name = "Strip"
- Strip.Parent = func
- Strip.BackgroundColor3 = Color3.fromRGB(125, 255, 201)
- Strip.BorderSizePixel = 0
- Strip.Position = UDim2.new(-3.44831392e-07, 0, 0.768718243, 0)
- Strip.Size = UDim2.new(0.999999821, 0, 0.127149001, 0)
- BtnFrames.Name = "BtnFrames"
- BtnFrames.Parent = Panel
- BtnFrames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BtnFrames.BackgroundTransparency = 1.000
- BtnFrames.Position = UDim2.new(0, 0, 0.014581793, 0)
- BtnFrames.Size = UDim2.new(0, 176, 0, 300)
- UIListLayout.Parent = BtnFrames
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 5)
- local epicLibrary = {}
- function epicLibrary:Button(text, callback)
- local Button = Instance.new("TextButton")
- text = text or "Button"
- callback = callback or function() end
- Button.Name = text
- Button.Parent = BtnFrames
- Button.BackgroundColor3 = Color3.fromRGB(72, 72, 72)
- Button.BorderSizePixel = 0
- Button.Position = UDim2.new(0.00651116669, 0, -0.135416672, 0)
- Button.Size = UDim2.new(0, 165, 0, 38)
- Button.Font = Enum.Font.SourceSansBold
- Button.Text = text
- Button.TextColor3 = Color3.fromRGB(125, 255, 201)
- Button.TextSize = 14.000
- Panel.Size = Panel.Size + UDim2.new(0, 0, 0, 44.7)
- Button.MouseButton1Click:Connect(callback)
- end
- return epicLibrary
- end
- return library
Add Comment
Please, Sign In to add comment