Kotyara19k-Official

UtG But this is a library (Like Rayfield or OrionHub)

Apr 5th, 2025 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. local library = {}
  2.  
  3. -- Создание GUI
  4. local UltimateTrollingGuiV3 = Instance.new("ScreenGui")
  5. UltimateTrollingGuiV3.Name = "UltimateTrollingGuiV3"
  6. UltimateTrollingGuiV3.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  7. UltimateTrollingGuiV3.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  8. UltimateTrollingGuiV3.ResetOnSpawn = false
  9.  
  10. -- Главное окно
  11. local Main = Instance.new("Frame")
  12. Main.Name = "Main"
  13. Main.Parent = UltimateTrollingGuiV3
  14. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  15. Main.BorderSizePixel = 0
  16. Main.Position = UDim2.new(0.382, 0, 0.2, 0)
  17. Main.Size = UDim2.new(0, 451, 0, 534)
  18. Main.Active = true
  19. Main.Draggable = true
  20.  
  21. local UIGradient = Instance.new("UIGradient")
  22. UIGradient.Color = ColorSequence.new{
  23. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(137, 0, 254)),
  24. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(223, 0, 255))
  25. }
  26. UIGradient.Parent = Main
  27.  
  28. local UICorner = Instance.new("UICorner")
  29. UICorner.Parent = Main
  30.  
  31. local Title = Instance.new("TextLabel")
  32. Title.Name = "Title"
  33. Title.Parent = Main
  34. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  35. Title.BackgroundTransparency = 1.000
  36. Title.Position = UDim2.new(0.06, 0, 0, 0)
  37. Title.Size = UDim2.new(0, 395, 0, 51)
  38. Title.Font = Enum.Font.SourceSans
  39. Title.Text = "ULTIMATE TROLLING GUI V3"
  40. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  41. Title.TextScaled = true
  42. Title.TextWrapped = true
  43.  
  44. local SubTitle = Instance.new("TextLabel")
  45. SubTitle.Name = "SubTitle"
  46. SubTitle.Parent = Main
  47. SubTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  48. SubTitle.BackgroundTransparency = 1.000
  49. SubTitle.Position = UDim2.new(0.17, 0, 0.06, 0)
  50. SubTitle.Size = UDim2.new(0, 297, 0, 35)
  51. SubTitle.Font = Enum.Font.SourceSans
  52. SubTitle.Text = "FE UTG is back! With V3! Thanks for using!"
  53. SubTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  54. SubTitle.TextScaled = true
  55. SubTitle.TextWrapped = true
  56.  
  57. local Welcome2 = Instance.new("TextLabel")
  58. Welcome2.Name = "Welcome2"
  59. Welcome2.Parent = Main
  60. Welcome2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  61. Welcome2.BorderSizePixel = 0
  62. Welcome2.Position = UDim2.new(0.025, 0, 0.114, 0)
  63. Welcome2.Size = UDim2.new(0, 428, 0, 36)
  64. Welcome2.Font = Enum.Font.SourceSans
  65. Welcome2.Text = "Welcome to the brand new UTG! Have fun."
  66. Welcome2.TextColor3 = Color3.fromRGB(0, 0, 0)
  67. Welcome2.TextSize = 23
  68. Welcome2.TextWrapped = true
  69.  
  70. local UICorner2 = Instance.new("UICorner")
  71. UICorner2.Parent = Welcome2
  72.  
  73. -- Scroll область
  74. local ScrollSizer = Instance.new("Frame")
  75. ScrollSizer.Name = "ScrollSizer"
  76. ScrollSizer.Parent = Main
  77. ScrollSizer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  78. ScrollSizer.Position = UDim2.new(0.025, 0, 0.197, 0)
  79. ScrollSizer.Size = UDim2.new(0, 428, 0, 310)
  80.  
  81. local ScrollingFrame = Instance.new("ScrollingFrame")
  82. ScrollingFrame.Parent = ScrollSizer
  83. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  84. ScrollingFrame.BorderSizePixel = 0
  85. ScrollingFrame.Size = UDim2.new(1, 0, 1, 0)
  86. ScrollingFrame.ScrollBarThickness = 6
  87. ScrollingFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  88. ScrollingFrame.ScrollingDirection = Enum.ScrollingDirection.Y
  89. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  90.  
  91. local UICorner3 = Instance.new("UICorner")
  92. UICorner3.Parent = ScrollingFrame
  93.  
  94. local UIListLayout = Instance.new("UIListLayout")
  95. UIListLayout.Parent = ScrollingFrame
  96. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  97. UIListLayout.Padding = UDim.new(0, 5)
  98.  
  99. -- Функция создания кнопок
  100. function library:CreateButton(text, callback)
  101. local button = Instance.new("TextButton")
  102. button.Name = text
  103. button.Parent = ScrollingFrame
  104. button.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
  105. button.Size = UDim2.new(0, 419, 0, 36)
  106. button.Font = Enum.Font.SourceSansBold
  107. button.Text = " " .. text
  108. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  109. button.TextSize = 20
  110. button.TextXAlignment = Enum.TextXAlignment.Left
  111.  
  112. local corner = Instance.new("UICorner")
  113. corner.Parent = button
  114.  
  115. button.MouseButton1Click:Connect(function()
  116. pcall(callback)
  117. end)
  118. end
  119.  
  120. return library
  121.  
Advertisement
Add Comment
Please, Sign In to add comment