Kotyara19k-Official

Untitled

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