Kotyara19k-Official

Untitled

Apr 5th, 2025
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. local library = {}
  2. local player = game.Players.LocalPlayer
  3. local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  4. gui.Name = "UltimateTrollingGuiV3"
  5. gui.ResetOnSpawn = false
  6. gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  7.  
  8. -- Главное окно
  9. local main = Instance.new("Frame", gui)
  10. main.Name = "Main"
  11. main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  12. main.Position = UDim2.new(0.382, 0, 0.18, 0)
  13. main.Size = UDim2.new(0, 451, 0, 534)
  14. main.Active = true
  15. main.Draggable = true
  16. Instance.new("UICorner", main)
  17.  
  18. local gradient = Instance.new("UIGradient", main)
  19. gradient.Color = ColorSequence.new{
  20. ColorSequenceKeypoint.new(0, Color3.fromRGB(137, 0, 254)),
  21. ColorSequenceKeypoint.new(1, Color3.fromRGB(223, 0, 255))
  22. }
  23.  
  24. -- Заголовок
  25. local title = Instance.new("TextLabel", main)
  26. title.BackgroundTransparency = 1
  27. title.Position = UDim2.new(0.06, 0, 0, 0)
  28. title.Size = UDim2.new(0, 395, 0, 51)
  29. title.Font = Enum.Font.SourceSans
  30. title.Text = "ULTIMATE TROLLING GUI V3"
  31. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  32. title.TextScaled = true
  33. title.TextWrapped = true
  34.  
  35. -- Подзаголовок
  36. local subtitle = Instance.new("TextLabel", main)
  37. subtitle.BackgroundTransparency = 1
  38. subtitle.Position = UDim2.new(0.17, 0, 0.06, 0)
  39. subtitle.Size = UDim2.new(0, 297, 0, 35)
  40. subtitle.Font = Enum.Font.SourceSans
  41. subtitle.Text = "FE UTG is back! With V3! Thanks for using!"
  42. subtitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. subtitle.TextScaled = true
  44. subtitle.TextWrapped = true
  45.  
  46. -- Приветствие
  47. local welcome = Instance.new("TextLabel", main)
  48. welcome.Position = UDim2.new(0.025, 0, 0.114, 0)
  49. welcome.Size = UDim2.new(0, 428, 0, 36)
  50. welcome.Font = Enum.Font.SourceSans
  51. welcome.Text = "Welcome to the brand new UTG! Have fun."
  52. welcome.TextColor3 = Color3.fromRGB(0, 0, 0)
  53. welcome.TextSize = 23
  54. Instance.new("UICorner", welcome)
  55.  
  56. -- Область кнопок
  57. local scrollFrame = Instance.new("ScrollingFrame", main)
  58. scrollFrame.Name = "ScrollFrame"
  59. scrollFrame.Position = UDim2.new(0.025, 0, 0.197, 0)
  60. scrollFrame.Size = UDim2.new(0, 428, 0, 315)
  61. scrollFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  62. scrollFrame.ScrollBarThickness = 6
  63. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  64. scrollFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  65. scrollFrame.ScrollingDirection = Enum.ScrollingDirection.Y
  66. Instance.new("UICorner", scrollFrame)
  67.  
  68. -- Layout для кнопок
  69. local layout = Instance.new("UIListLayout", scrollFrame)
  70. layout.SortOrder = Enum.SortOrder.LayoutOrder
  71. layout.Padding = UDim.new(0, 6)
  72.  
  73. -- Функция добавления кнопок
  74. function library:CreateButton(text, callback)
  75. local button = Instance.new("TextButton", scrollFrame)
  76. button.Size = UDim2.new(1, 0, 0, 36)
  77. button.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
  78. button.Font = Enum.Font.SourceSansBold
  79. button.Text = " " .. text
  80. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  81. button.TextSize = 20
  82. button.TextXAlignment = Enum.TextXAlignment.Left
  83. Instance.new("UICorner", button)
  84.  
  85. button.MouseButton1Click:Connect(function()
  86. pcall(callback)
  87. end)
  88. end
  89.  
  90. return library
  91.  
Advertisement
Add Comment
Please, Sign In to add comment