Kotyara19k-Official

Untitled

Apr 5th, 2025
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. --// UTG V3 Styled Library (Core GUI + API)
  2.  
  3.  
  4. -- GUI
  5. local ScreenGui = Instance.new("ScreenGui")
  6. ScreenGui.Name = "UltimateTrollingGuiV3"
  7. ScreenGui.ResetOnSpawn = false
  8. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  10.  
  11. local Main = Instance.new("Frame")
  12. Main.Name = "Main"
  13. Main.Parent = ScreenGui
  14. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  15. Main.BorderSizePixel = 0
  16. Main.Position = UDim2.new(0.35, 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. local ScrollSizer = Instance.new("Frame")
  74. ScrollSizer.Name = "ScrollSizer"
  75. ScrollSizer.Parent = Main
  76. ScrollSizer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  77. ScrollSizer.BackgroundTransparency = 1.000
  78. ScrollSizer.BorderSizePixel = 0
  79. ScrollSizer.Position = UDim2.new(0.025, 0, 0.20, 0)
  80. ScrollSizer.Size = UDim2.new(0, 428, 0, 333)
  81.  
  82. local ScrollingFrame = Instance.new("ScrollingFrame")
  83. ScrollingFrame.Name = "ScrollingFrame"
  84. ScrollingFrame.Parent = ScrollSizer
  85. ScrollingFrame.Active = true
  86. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. ScrollingFrame.BorderSizePixel = 0
  88. ScrollingFrame.Size = UDim2.new(0, 427, 0, 333)
  89. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  90. ScrollingFrame.ScrollBarThickness = 4
  91.  
  92. local UIListLayout = Instance.new("UIListLayout")
  93. UIListLayout.Parent = ScrollingFrame
  94. UIListLayout.Padding = UDim.new(0, 4)
  95.  
  96. -- API для создания кнопок
  97. function library:CreateButton(text, callback)
  98. local button = Instance.new("TextButton")
  99. button.Name = text
  100. button.Parent = ScrollingFrame
  101. button.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
  102. button.Size = UDim2.new(0, 419, 0, 36)
  103. button.Font = Enum.Font.SourceSansBold
  104. button.Text = " " .. text
  105. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  106. button.TextSize = 20
  107. button.TextXAlignment = Enum.TextXAlignment.Left
  108. button.TextWrapped = true
  109.  
  110. local corner = Instance.new("UICorner")
  111. corner.Parent = button
  112.  
  113. button.MouseButton1Click:Connect(function()
  114. pcall(callback)
  115. end)
  116.  
  117. -- обновление CanvasSize
  118. task.wait()
  119. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y + 10)
  120. end
  121.  
  122.  
Advertisement
Add Comment
Please, Sign In to add comment