Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = {}
- function library.Window(name)
- local UI = {}
- local SHITLIB = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local Holder = Instance.new("Frame")
- local UIPadding = Instance.new("UIPadding")
- local Button = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local UIListLayout = Instance.new("UIListLayout")
- SHITLIB.Name = "SHIT LIB"
- SHITLIB.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- SHITLIB.ResetOnSpawn = false
- Main.Name = "Main"
- Main.Parent = SHITLIB
- Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Main.Position = UDim2.new(0.0532663316, 0, 0.13060686, 0)
- Main.Size = UDim2.new(0, 173, 0, 43)
- Main.ZIndex = 2
- TextLabel.Parent = Main
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.Size = UDim2.new(0, 200, 0, 27)
- TextLabel.ZIndex = 3
- TextLabel.Text = name
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextSize = 14.000
- Holder.Name = "Holder"
- Holder.Parent = Main
- Holder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Holder.Position = UDim2.new(-0.00453715026, 0, 0.99107182, 0)
- Holder.Size = UDim2.new(1, 0, 0, 90)
- UIPadding.Parent = Holder
- UIListLayout.Parent = Holder
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0,2)
- function Resize()
- Holder.Size = UDim2.new(1,0,0,UIListLayout.AbsoluteContentSize.Y)
- end
- function UI.Toggle(name,callback)
- local Toggle = Instance.new("TextButton")
- Toggle.Name = "Toggle"
- Toggle.Parent = Holder
- Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Toggle.Size = UDim2.new(0, 222, 0, 35)
- Toggle.Font = Enum.Font.SourceSans
- Toggle.Text = name
- Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
- Toggle.TextSize = 14.000
- local TweenService = game:GetService("TweenService");
- local tweenInfo = TweenInfo.new(0.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
- local Toggled = false
- Toggle.MouseButton1Click:Connect(function()
- Toggled = not Toggled
- callback(Toggled)
- local ColorNew = Toggled and Color3.fromRGB(255,78,78) or Color3.fromRGB(255, 255, 255)
- TweenService:Create(Toggle,tweenInfo,{BackgroundColor3 = ColorNew}):Play()
- end)
- Resize()
- end
- function UI.Button(name,callback)
- local Toggle = Instance.new("TextButton")
- Button.Name = "Button"
- Button.Parent = Holder
- Button.Text = name
- Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Button.Size = UDim2.new(0, 222, 0, 35)
- Button.Font = Enum.Font.SourceSans
- Button.TextColor3 = Color3.fromRGB(0, 0, 0)
- Button.TextSize = 14.000
- Button.MouseButton1Click:Connect(function()
- callback()
- end)
- Resize()
- end
- function UI.Box(name,callback)
- local textbox = Instance.new("Frame")
- local TextBox = Instance.new("TextBox")
- local TextLabel = Instance.new("TextLabel")
- textbox.Name = "textbox"
- textbox.Parent = Holder
- textbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- textbox.Position = UDim2.new(0.210982665, 0, 0.777777791, 0)
- textbox.Size = UDim2.new(0, 271, 0, 42)
- TextBox.Parent = textbox
- TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.Position = UDim2.new(0.5719558, 0, 0.261904776, 0)
- TextBox.Size = UDim2.new(0, 108, 0, 20)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextBox.TextSize = 14.000
- TextLabel.Parent = textbox
- TextLabel.Text = name
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.Position = UDim2.new(0.0147601478, 0, 0.261904776, 0)
- TextLabel.Size = UDim2.new(0, 139, 0, 20)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextSize = 14.000
- TextBox.FocusLost:Connect(function(Enter)
- if (Enter) then
- callback(TextBox.Text)
- end
- end)
- Resize()
- end
- return UI
- end
- return library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement