Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("ImageButton")
- local Button = Instance.new("ImageButton")
- local TextLabel = Instance.new("TextLabel")
- local UIListLayout = Instance.new("UIListLayout")
- local Library = {}
- function Library:CreateMain()
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Name = "Frame"
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- Frame.BackgroundTransparency = 1
- Frame.Size = UDim2.new(0, 200, 0, 409)
- Frame.Image = "rbxassetid://2790389767"
- Frame.ImageColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- Frame.ScaleType = Enum.ScaleType.Slice
- Frame.SliceCenter = Rect.new(8, 8, 248, 248)
- Button.Name = "Button"
- Button.Parent = Frame
- Button.BackgroundColor3 = Color3.new(1, 1, 1)
- Button.BackgroundTransparency = 1
- Button.Size = UDim2.new(0, 200, 0, 40)
- Button.Image = "rbxassetid://2790382281"
- Button.ImageColor3 = Color3.new(0, 0.666667, 0.498039)
- Button.ScaleType = Enum.ScaleType.Slice
- Button.SliceCenter = Rect.new(4, 4, 252, 252)
- TextLabel.Parent = Button
- TextLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
- TextLabel.Size = UDim2.new(1, -5, 1, -5)
- TextLabel.Font = Enum.Font.GothamSemibold
- TextLabel.Text = "Button"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 14
- UIListLayout.Parent = Frame
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 5)
- -- Scripts:
- function GamerLibrary:NewButton(Name)
- local TextButton = Instance.new("TextButton")
- Button.Parent = Frame
- Button.Name = "Button"
- Button.Parent = Frame
- Button.BackgroundColor3 = Color3.new(1, 1, 1)
- Button.BackgroundTransparency = 1
- Button.Size = UDim2.new(0, 200, 0, 40)
- Button.Image = "rbxassetid://2790382281"
- Button.ImageColor3 = Color3.new(0, 0.666667, 0.498039)
- Button.ScaleType = Enum.ScaleType.Slice
- Button.SliceCenter = Rect.new(4, 4, 252, 252)
- end
- return GamerLibrary;
- end
- return Library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement