Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- local UIListLayout_2 = Instance.new("UIListLayout")
- UIListLayout_2.Parent = ScreenGui
- UIListLayout_2.FillDirection = Enum.FillDirection.Horizontal
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.Padding = UDim.new(0.00999999978, 0)
- local library = {}
- function library:CreateTab(text)
- local Frame = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- local Title = Instance.new("TextLabel")
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
- Frame.Position = UDim2.new(0.0307219662, 0, 0.0197693575, 0)
- Frame.Size = UDim2.new(0, 200, 0, 202)
- UIListLayout.Parent = Frame
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- Title.Name = text
- Title.Parent = Frame
- Title.BackgroundColor3 = Color3.fromRGB(107, 107, 107)
- Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Title.BorderSizePixel = 4
- Title.Size = UDim2.new(0, 200, 0, 47)
- Title.Font = Enum.Font.Highway
- Title.Text = text
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 35.000
- Title.TextWrapped = true
- local GamerLibrary = {}
- function GamerLibrary:CreateButton(name, func)
- local Button = Instance.new("TextButton")
- Button.Name = name
- Button.Parent = Frame
- Button.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
- Button.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Button.BorderSizePixel = 2
- Button.Position = UDim2.new(0, 0, 0.0916179344, 0)
- Button.Size = UDim2.new(0, 200, 0, 33)
- Button.Font = Enum.Font.Highway
- Button.TextColor3 = Color3.fromRGB(255, 255, 255)
- Button.TextSize = 30.000
- Button.Text = name
- Button.MouseButton1Click:Connect(func)
- end
- function GamerLibrary:CreateToggle(name, func)
- local ToggleText = Instance.new("TextLabel")
- local TextButton = Instance.new("TextButton")
- ToggleText.Name = name
- ToggleText.Parent = Frame
- ToggleText.BackgroundColor3 = Color3.fromRGB(107, 107, 107)
- ToggleText.BackgroundTransparency = 1.000
- ToggleText.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ToggleText.BorderSizePixel = 4
- ToggleText.Position = UDim2.new(0, 0, 0.15594542, 0)
- ToggleText.Size = UDim2.new(0, 136, 0, 38)
- ToggleText.Font = Enum.Font.Highway
- ToggleText.Text = name
- ToggleText.TextColor3 = Color3.fromRGB(255, 255, 255)
- ToggleText.TextSize = 30.000
- ToggleText.TextWrapped = true
- TextButton.Parent = ToggleText
- TextButton.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
- TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.BorderSizePixel = 3
- TextButton.Position = UDim2.new(1.05882359, 0, 0.196881145, 0)
- TextButton.Size = UDim2.new(0, 44, 0, 30)
- TextButton.Font = Enum.Font.Highway
- TextButton.Text = "X"
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextSize = 30.000
- TextButton.MouseButton1Click:Connect(function()
- if TextButton.Text == "X" then
- func(true)
- TextButton.Text = "✓"
- elseif TextButton.Text == "✓" then
- TextButton.Text = "X"
- func(false)
- end
- end)
- end
- function GamerLibrary:CreateTextbox(name, defaulttext, func)
- local TextBoxText = Instance.new("TextLabel")
- local TextBox = Instance.new("TextBox")
- TextBoxText.Name = name
- TextBoxText.Parent = Frame
- TextBoxText.BackgroundColor3 = Color3.fromRGB(107, 107, 107)
- TextBoxText.BackgroundTransparency = 1.000
- TextBoxText.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextBoxText.BorderSizePixel = 4
- TextBoxText.Position = UDim2.new(0, 0, 0.230019495, 0)
- TextBoxText.Size = UDim2.new(0, 200, 0, 80)
- TextBoxText.Font = Enum.Font.Highway
- TextBoxText.Text = name
- TextBoxText.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBoxText.TextSize = 30.000
- TextBoxText.TextWrapped = true
- TextBoxText.TextYAlignment = Enum.TextYAlignment.Top
- TextBox.Parent = TextBoxText
- TextBox.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
- TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextBox.BorderSizePixel = 3
- TextBox.Position = UDim2.new(0.0549999997, 0, 0.417582452, 0)
- TextBox.Size = UDim2.new(0, 177, 0, 38)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.PlaceholderText = defaulttext
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.TextSize = 25.000
- TextBox.FocusLost:Connect(function()
- func(TextBox.Text)
- end)
- end
- return GamerLibrary;
- end
- return library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement