Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Library = {}
- OptionCount = 2
- function Library:Create(Title)
- local ScreenGui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
- ScreenGui.Name = "AbstractUi"
- ScreenGui.ResetOnSpawn = false
- local Container = Instance.new("Frame")
- local Main = Instance.new("Frame")
- local Options = Instance.new("Frame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local Name = Instance.new("TextLabel")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Container.Name = "Container"
- Container.Parent = ScreenGui
- Container.BackgroundColor3 = Color3.new(0, 0, 0)
- Container.BorderSizePixel = 0
- Container.Position = UDim2.new(0.295238107, 0, 0.298507452, 0)
- Container.Size = UDim2.new(0, 405, 0, 243)
- Container.BackgroundColor3 = Color3.new(0.0901961, 0.0901961, 0.0941176)
- Name.Name = ""
- Name.Parent = Container
- Name.BackgroundColor3 = Color3.new(0, 0, 0)
- Name.BorderSizePixel = 0
- Name.Size = UDim2.new(0, 405, 0, 30)
- Name.Font = Enum.Font.GothamBold
- Name.Text = Title
- Name.TextColor3 = Color3.new(0.392157, 0.509804, 0.666667)
- Name.TextScaled = true
- Name.TextSize = 14
- Name.TextWrapped = true
- Name.TextXAlignment = Enum.TextXAlignment.Left
- Options.Name = "Options"
- Options.Parent = Container
- Options.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- Options.BorderColor3 = Color3.new(0.0901961, 0.215686, 0.235294)
- Options.BorderSizePixel = 0
- Options.Position = UDim2.new(0, 0, 0.123825319, 0)
- Options.Size = UDim2.new(0, 100, 0, 213)
- UIListLayout_2.Parent = Options
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.Padding = UDim.new(0.0500000007, 0)
- Main.Name = "Main"
- Main.Parent = Container
- Main.BackgroundColor3 = Color3.new(0.0901961, 0.215686, 0.235294)
- Main.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0.246913582, 0, 0.12384259, 0)
- Main.Size = UDim2.new(0, 305, 0, 213)
- local OptionsLibrary = {}
- function OptionsLibrary:AddOption(Option)
- local TextButton = Instance.new("TextButton", Options)
- TextButton.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- TextButton.BorderColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- TextButton.BorderSizePixel = 0
- TextButton.Size = UDim2.new(0, 100, 0, 40)
- TextButton.Font = Enum.Font.GothamBold
- TextButton.Text = Option
- TextButton.TextColor3 = Color3.new(1, 1, 1)
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- TextButton.MouseButton1Click:Connect(function()
- OptionCount = OptionCount + 1
- game.Players.LocalPlayer.PlayerGui.AbstractUi.Container.Main[Option].ZIndex = OptionCount
- end)
- local Frame = Instance.new("Frame", Main)
- Frame.Name = Option
- Frame.BackgroundColor3 = Color3.new(0.0901961, 0.215686, 0.235294)
- Frame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- Frame.BorderSizePixel = 0
- Frame.Size = Main.Size
- local UIListLayout = Instance.new("UIListLayout", Main[Option])
- local UIPadding = Instance.new("UIPadding", Main[Option])
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0.0500000007, 0)
- UIPadding.PaddingTop = UDim.new(0.0500000007, 0)
- local CheatsLib = {}
- function CheatsLib:AddButton(Name, Callback)
- local Buttoncontainer = Instance.new("Frame", Frame)
- Buttoncontainer.Name = "Button container"
- Buttoncontainer.BackgroundColor3 = Color3.new(0, 0, 0)
- Buttoncontainer.BorderColor3 = Color3.new(0, 0, 0)
- Buttoncontainer.BorderSizePixel = 2
- Buttoncontainer.Position = UDim2.new(0.0409836061, 0, 0.0500000417, 0)
- Buttoncontainer.Size = UDim2.new(0, 280, 0, 20)
- local TextButton = Instance.new("TextButton")
- TextButton.Parent = Buttoncontainer
- TextButton.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- TextButton.BorderColor3 = Color3.new(0, 0, 0)
- TextButton.BorderSizePixel = 2
- TextButton.Position = UDim2.new(0, 0, 7.62939464e-07, 0)
- TextButton.Size = UDim2.new(0, 280, 0, 20)
- TextButton.Font = Enum.Font.GothamSemibold
- TextButton.Text = Name
- TextButton.TextColor3 = Color3.new(1, 1, 1)
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- TextButton.TextXAlignment = Enum.TextXAlignment.Left
- TextButton.MouseButton1Click:Connect(Callback)
- end
- function CheatsLib:AddToggle(Title, State, Callback)
- local Togglecontainer = Instance.new("Frame", Frame)
- Togglecontainer.Name = "Toggle container"
- Togglecontainer.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- Togglecontainer.BorderColor3 = Color3.new(0, 0, 0)
- Togglecontainer.BorderSizePixel = 2
- Togglecontainer.Position = UDim2.new(-0.101639345, 0, 0.191396788, 0)
- Togglecontainer.Size = UDim2.new(0, 280, 0, 20)
- local ImageButton = Instance.new("ImageButton")
- ImageButton.Parent = Togglecontainer
- ImageButton.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- ImageButton.Position = UDim2.new(0.935000002, 0, 0.100000001, 0)
- ImageButton.Size = UDim2.new(0, 16, 0, 16)
- ImageButton.ZIndex = 2
- ImageButton.ImageColor3 = Color3.new(1, 0, 0)
- local TextLabel = Instance.new("TextLabel")
- TextLabel.Parent = Togglecontainer
- TextLabel.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- TextLabel.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel.BorderSizePixel = 0
- TextLabel.Size = UDim2.new(0, 274, 0, 20)
- TextLabel.Font = Enum.Font.GothamSemibold
- TextLabel.Text = Title
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- TextLabel.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel.Position = UDim2.new(0.021428572, 0, 0, 0)
- if State then
- ImageButton.BackgroundColor3 = Color3.new(0, 1, 0)
- else
- ImageButton.BackgroundColor3 = Color3.new(1, 0, 0)
- end
- ImageButton.MouseButton1Click:Connect(function()
- State = not State
- if State then
- ImageButton.BackgroundColor3 = Color3.new(0, 1, 0)
- Callback(true)
- else
- ImageButton.BackgroundColor3 = Color3.new(1, 0, 0)
- Callback(false)
- end
- end)
- end
- function CheatsLib:AddBox(Default, PlaceholderText, ClearTextOnFocus, Callback)
- local Textboxcontainer = Instance.new("Frame", Frame)
- local TextBox = Instance.new("TextBox")
- Textboxcontainer.Name = "Textbox container"
- Textboxcontainer.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- Textboxcontainer.BorderColor3 = Color3.new(0, 0, 0)
- Textboxcontainer.BorderSizePixel = 2
- Textboxcontainer.Position = UDim2.new(0.0327868834, 0, 0.376760572, 0)
- Textboxcontainer.Size = UDim2.new(0, 280, 0, 20)
- TextBox.Parent = Textboxcontainer
- TextBox.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.129412)
- TextBox.BorderSizePixel = 0
- TextBox.Position = UDim2.new(0.021428572, 0, 0, 0)
- TextBox.Size = UDim2.new(0, 274, 0, 20)
- TextBox.Font = Enum.Font.GothamSemibold
- TextBox.PlaceholderColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextBox.Text = Default
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextSize = 18
- TextBox.TextXAlignment = Enum.TextXAlignment.Left
- TextBox.PlaceholderText = PlaceholderText
- TextBox.ClearTextOnFocus = ClearTextOnFocus
- TextBox.FocusLost:Connect(function()
- Callback(TextBox.Text)
- end)
- end
- return CheatsLib
- end
- return OptionsLibrary
- end
- return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement