Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// UTG V3 Styled Library (Core GUI + API)
- -- GUI
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Name = "UltimateTrollingGuiV3"
- ScreenGui.ResetOnSpawn = false
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- local Main = Instance.new("Frame")
- Main.Name = "Main"
- Main.Parent = ScreenGui
- Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0.35, 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
- local ScrollSizer = Instance.new("Frame")
- ScrollSizer.Name = "ScrollSizer"
- ScrollSizer.Parent = Main
- ScrollSizer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollSizer.BackgroundTransparency = 1.000
- ScrollSizer.BorderSizePixel = 0
- ScrollSizer.Position = UDim2.new(0.025, 0, 0.20, 0)
- ScrollSizer.Size = UDim2.new(0, 428, 0, 333)
- local ScrollingFrame = Instance.new("ScrollingFrame")
- ScrollingFrame.Name = "ScrollingFrame"
- ScrollingFrame.Parent = ScrollSizer
- ScrollingFrame.Active = true
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Size = UDim2.new(0, 427, 0, 333)
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- ScrollingFrame.ScrollBarThickness = 4
- local UIListLayout = Instance.new("UIListLayout")
- UIListLayout.Parent = ScrollingFrame
- UIListLayout.Padding = UDim.new(0, 4)
- -- API для создания кнопок
- 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
- button.TextWrapped = true
- local corner = Instance.new("UICorner")
- corner.Parent = button
- button.MouseButton1Click:Connect(function()
- pcall(callback)
- end)
- -- обновление CanvasSize
- task.wait()
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y + 10)
- end
Advertisement
Add Comment
Please, Sign In to add comment