Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- local ui = loadstring(game:HttpGet("https://pastebin.com/raw/2Xbj73m3"))()
- ]]
- local GayLib = Instance.new("ScreenGui")
- GayLib.Name = math.random(1, 99999999)
- GayLib.Parent = game.CoreGui
- GayLib.ZIndexBehavior = Enum.ZIndexBehavior.Global
- local uis = game:GetService("UserInputService")
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local Library = {
- windows = 0;
- }
- local toggled = false
- local function getNextWindowPos()
- local biggest = 0;
- local ok = nil;
- for i,v in pairs(GayLib:GetChildren()) do
- if v.Position.X.Offset>biggest then
- biggest = v.Position.X.Offset
- ok = v;
- end
- end
- if biggest == 0 then
- biggest = biggest + 5;
- else
- biggest = biggest + ok.Size.X.Offset + 5;
- end
- return biggest;
- end
- function Library:CreateWindow(title)
- Library.windows = Library.windows + 1;
- local BodyYSize = 0
- local InputService = game:GetService("UserInputService")
- local TopMain = Instance.new("ImageLabel")
- local Body = Instance.new("Frame")
- local Container = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- local TitleText = Instance.new("TextLabel")
- local ToggleVisible = Instance.new("TextButton")
- local function Resize(Value)
- BodyYSize = BodyYSize + Value
- Container.Size = UDim2.new(0, 150, 0, BodyYSize)
- Body.Size = UDim2.new(0, 172, 0, BodyYSize)
- end
- local dragging = false;
- TopMain.Name = "TopMain"
- TopMain.Parent = GayLib
- TopMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TopMain.BackgroundTransparency = 1.000
- TopMain.Position = UDim2.new(0, getNextWindowPos() + 10, 0, 10)
- TopMain.Size = UDim2.new(0, 172, 0, 27)
- TopMain.Image = "rbxassetid://6653133593"
- TopMain.Active = true
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- TopMain:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y), "Out", "Sine", 0.05, true)
- end
- TopMain.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = TopMain.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- TopMain.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- uis.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- Body.Name = "Body"
- Body.Parent = TopMain
- Body.BackgroundColor3 = Color3.fromRGB(21, 13, 118)
- Body.BackgroundTransparency = 0.500
- Body.BorderSizePixel = 0
- Body.Position = UDim2.new(0, 0, 0.980000019, 0)
- Body.Size = UDim2.new(0, 172, 0, 156)
- Body.ClipsDescendants = true
- Container.Name = "Container"
- Container.Parent = Body
- Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Container.BackgroundTransparency = 1.000
- Container.BorderSizePixel = 0
- Container.Position = UDim2.new(0.0639534891, 0, 0.0478453636, 0)
- Container.Size = UDim2.new(0, 150, 0, 148)
- Container.ClipsDescendants = true
- UIListLayout.Parent = Container
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 5)
- TitleText.Name = "TitleText"
- TitleText.Parent = TopMain
- TitleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TitleText.BackgroundTransparency = 1.000
- TitleText.Size = UDim2.new(0, 172, 0, 25)
- TitleText.ZIndex = 2
- TitleText.Font = Enum.Font.GothamBlack
- TitleText.Text = title
- TitleText.TextColor3 = Color3.fromRGB(255, 255, 255)
- TitleText.TextSize = 20.000
- ToggleVisible.Name = "ToggleVisible"
- ToggleVisible.Parent = TopMain
- ToggleVisible.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ToggleVisible.BackgroundTransparency = 1.000
- ToggleVisible.Position = UDim2.new(0, 145, 0, 2)
- ToggleVisible.Rotation = 90.000
- ToggleVisible.Size = UDim2.new(0, 25, 0, 25)
- ToggleVisible.Font = Enum.Font.GothamBlack
- ToggleVisible.Text = ">"
- ToggleVisible.TextColor3 = Color3.fromRGB(111, 198, 255)
- ToggleVisible.TextSize = 14.000
- ToggleVisible.MouseButton1Down:Connect(function()
- if toggled then
- toggled = false
- ToggleVisible.Rotation = -90
- Body:TweenSize(UDim2.new(0, 172,0, 0), "InOut", "Quad", 0.2)
- else
- toggled = true
- ToggleVisible.Rotation = 90
- Body:TweenSize(UDim2.new(0, 172,0, BodyYSize), "InOut", "Quad", 0.2)
- end
- end)
- local a = {}
- --[[
- function a:CreateButton(text)
- --thing
- end
- ]]
- function a:CreateButton(text, callback)
- local callback = callback or function() end
- Resize(49)
- local Button = Instance.new("TextButton")
- local UICorner = Instance.new("UICorner")
- Button.Name = "Button"
- Button.Parent = Container
- Button.BackgroundColor3 = Color3.fromRGB(24, 9, 71)
- Button.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Button.BorderSizePixel = 0
- Button.Position = UDim2.new(0.139534891, 0, 0.0866141766, 0)
- Button.Size = UDim2.new(0, 123, 0, 31)
- Button.Font = Enum.Font.GothamBold
- Button.TextColor3 = Color3.fromRGB(230, 230, 230)
- Button.TextSize = 17.000
- Button.Text = text
- UICorner.Parent = Button
- Button.MouseButton1Click:Connect(function()
- pcall(callback)
- end)
- end
- function a:CreateLabel(fontsize, text)
- Resize(49)
- local Label = Instance.new("TextLabel")
- local UICorner = Instance.new("UICorner")
- Label.Name = "Label"
- Label.Parent = Container
- Label.Active = true
- Label.BackgroundColor3 = Color3.fromRGB(24, 9, 71)
- Label.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Label.BorderSizePixel = 0
- Label.Position = UDim2.new(0.139534891, 0, 0.0866141766, 0)
- Label.Selectable = true
- Label.Size = UDim2.new(0, 150, 0, 28)
- Label.Font = Enum.Font.GothamBold
- Label.TextColor3 = Color3.fromRGB(230, 230, 230)
- Label.TextSize = fontsize
- Label.Text = text
- UICorner.Parent = Label
- end
- return a;
- end
- return Library;
Add Comment
Please, Sign In to add comment