Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = {}
- local player = game.Players.LocalPlayer
- local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- gui.Name = "UltimateTrollingGuiV3"
- gui.ResetOnSpawn = false
- gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- -- Главное окно
- local main = Instance.new("Frame", gui)
- main.Name = "Main"
- main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- main.Position = UDim2.new(0.382, 0, 0.18, 0)
- main.Size = UDim2.new(0, 451, 0, 534)
- main.Active = true
- main.Draggable = true
- local gradient = Instance.new("UIGradient", main)
- gradient.Color = ColorSequence.new{
- ColorSequenceKeypoint.new(0, Color3.fromRGB(137, 0, 254)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(223, 0, 255))
- }
- Instance.new("UICorner", main)
- -- Заголовок
- local title = Instance.new("TextLabel", main)
- title.BackgroundTransparency = 1
- 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", main)
- subtitle.BackgroundTransparency = 1
- 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 welcome = Instance.new("TextLabel", main)
- welcome.Position = UDim2.new(0.025, 0, 0.114, 0)
- welcome.Size = UDim2.new(0, 428, 0, 36)
- welcome.Font = Enum.Font.SourceSans
- welcome.Text = "Welcome to the brand new UTG! Have fun."
- welcome.TextColor3 = Color3.fromRGB(0, 0, 0)
- welcome.TextSize = 23
- Instance.new("UICorner", welcome)
- -- Область кнопок
- local scrollSizer = Instance.new("Frame", main)
- scrollSizer.Position = UDim2.new(0.025, 0, 0.197, 0)
- scrollSizer.Size = UDim2.new(0, 428, 0, 315)
- scrollSizer.BackgroundTransparency = 1
- scrollSizer.BorderSizePixel = 0
- local scrollingFrame = Instance.new("ScrollingFrame", scrollSizer)
- scrollingFrame.Size = UDim2.new(1, 0, 1, 0)
- scrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- scrollingFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
- scrollingFrame.ScrollBarThickness = 6
- scrollingFrame.ScrollingDirection = Enum.ScrollingDirection.Y
- scrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Instance.new("UICorner", scrollingFrame)
- local layout = Instance.new("UIListLayout", scrollingFrame)
- layout.SortOrder = Enum.SortOrder.LayoutOrder
- layout.Padding = UDim.new(0, 5)
- -- Функция создания кнопки
- function library:CreateButton(text, callback)
- local button = Instance.new("TextButton", scrollingFrame)
- button.Size = UDim2.new(1, 0, 0, 36)
- button.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
- button.Font = Enum.Font.SourceSansBold
- button.Text = " " .. text
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.TextSize = 20
- button.TextXAlignment = Enum.TextXAlignment.Left
- Instance.new("UICorner", button)
- button.MouseButton1Click:Connect(function()
- pcall(callback)
- end)
- end
- return library
Advertisement
Add Comment
Please, Sign In to add comment