Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = {}
- -- Создание GUI
- local UltimateTrollingGuiV3 = Instance.new("ScreenGui")
- UltimateTrollingGuiV3.Name = "UltimateTrollingGuiV3"
- UltimateTrollingGuiV3.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- UltimateTrollingGuiV3.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- UltimateTrollingGuiV3.ResetOnSpawn = false
- -- Главное окно
- local Main = Instance.new("Frame")
- Main.Name = "Main"
- Main.Parent = UltimateTrollingGuiV3
- Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0.382, 0, 0.2, 0)
- Main.Size = UDim2.new(0, 451, 0, 534)
- Main.Active = true
- Main.Draggable = true
- local UIGradient = Instance.new("UIGradient")
- UIGradient.Color = ColorSequence.new{
- ColorSequenceKeypoint.new(0.00, Color3.fromRGB(137, 0, 254)),
- ColorSequenceKeypoint.new(1.00, Color3.fromRGB(223, 0, 255))
- }
- UIGradient.Parent = Main
- local UICorner = Instance.new("UICorner")
- UICorner.Parent = Main
- local Title = Instance.new("TextLabel")
- Title.Name = "Title"
- Title.Parent = Main
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Position = UDim2.new(0.06, 0, 0, 0)
- Title.Size = UDim2.new(0, 395, 0, 51)
- Title.Font = Enum.Font.SourceSans
- Title.Text = "ULTIMATE TROLLING GUI V3"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextScaled = true
- Title.TextWrapped = true
- local SubTitle = Instance.new("TextLabel")
- SubTitle.Name = "SubTitle"
- SubTitle.Parent = Main
- SubTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SubTitle.BackgroundTransparency = 1.000
- SubTitle.Position = UDim2.new(0.17, 0, 0.06, 0)
- SubTitle.Size = UDim2.new(0, 297, 0, 35)
- SubTitle.Font = Enum.Font.SourceSans
- SubTitle.Text = "FE UTG is back! With V3! Thanks for using!"
- SubTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- SubTitle.TextScaled = true
- SubTitle.TextWrapped = true
- local Welcome2 = Instance.new("TextLabel")
- Welcome2.Name = "Welcome2"
- Welcome2.Parent = Main
- Welcome2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Welcome2.BorderSizePixel = 0
- Welcome2.Position = UDim2.new(0.025, 0, 0.114, 0)
- Welcome2.Size = UDim2.new(0, 428, 0, 36)
- Welcome2.Font = Enum.Font.SourceSans
- Welcome2.Text = "Welcome to the brand new UTG! Have fun."
- Welcome2.TextColor3 = Color3.fromRGB(0, 0, 0)
- Welcome2.TextSize = 23
- Welcome2.TextWrapped = true
- local UICorner2 = Instance.new("UICorner")
- UICorner2.Parent = Welcome2
- -- Scroll область
- local ScrollSizer = Instance.new("Frame")
- ScrollSizer.Name = "ScrollSizer"
- ScrollSizer.Parent = Main
- ScrollSizer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollSizer.Position = UDim2.new(0.025, 0, 0.197, 0)
- ScrollSizer.Size = UDim2.new(0, 428, 0, 310)
- local ScrollingFrame = Instance.new("ScrollingFrame")
- ScrollingFrame.Parent = ScrollSizer
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Size = UDim2.new(1, 0, 1, 0)
- ScrollingFrame.ScrollBarThickness = 6
- ScrollingFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
- ScrollingFrame.ScrollingDirection = Enum.ScrollingDirection.Y
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- local UICorner3 = Instance.new("UICorner")
- UICorner3.Parent = ScrollingFrame
- local UIListLayout = Instance.new("UIListLayout")
- UIListLayout.Parent = ScrollingFrame
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 5)
- -- Функция создания кнопок
- function library:CreateButton(text, callback)
- local button = Instance.new("TextButton")
- button.Name = text
- button.Parent = ScrollingFrame
- button.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
- button.Size = UDim2.new(0, 419, 0, 36)
- button.Font = Enum.Font.SourceSansBold
- button.Text = " " .. text
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.TextSize = 20
- button.TextXAlignment = Enum.TextXAlignment.Left
- local corner = Instance.new("UICorner")
- corner.Parent = button
- button.MouseButton1Click:Connect(function()
- pcall(callback)
- end)
- end
- return library
Advertisement
Add Comment
Please, Sign In to add comment