Advertisement
CAT_SUS

announce_ui.lua

Aug 5th, 2023 (edited)
5,606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.24 KB | None | 0 0
  1. local ACCOUNCE = Instance.new("ScreenGui")
  2. local Frameq = Instance.new("Frame")
  3. local UIListLayout = Instance.new("UIListLayout")
  4. local tweenservice = game:GetService('TweenService')
  5.  
  6.  
  7. ACCOUNCE.Name = "ACCOUNCE"
  8. ACCOUNCE.Parent = game:FindFirstChild('CoreGui') or game.Players.LocalPlayer:WaitForChild("PlayerGui")
  9. ACCOUNCE.ResetOnSpawn = false
  10. ACCOUNCE.ZIndexBehavior = Enum.ZIndexBehavior.Global
  11. ACCOUNCE.IgnoreGuiInset = true
  12. ACCOUNCE.Enabled = true
  13.  
  14. Frameq.Parent = ACCOUNCE
  15. Frameq.AnchorPoint = Vector2.new(0.5, 0)
  16. Frameq.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  17. Frameq.BackgroundTransparency = 1.000
  18. Frameq.BorderColor3 = Color3.fromRGB(0, 0, 0)
  19. Frameq.BorderSizePixel = 0
  20. Frameq.Position = UDim2.new(0.5, 0, 0.0441576131, 0)
  21. Frameq.Size = UDim2.new(0.600000024, 0, 0.100000001, 0)
  22.  
  23. UIListLayout.Parent = Frameq
  24. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  25. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  26. UIListLayout.Padding = UDim.new(0, 3)
  27.  
  28. local function Create(subjectTexting,Texting)
  29.     local Frame = Instance.new("Frame")
  30.     local UICorner = Instance.new("UICorner")
  31.     local DropShadow = Instance.new("ImageLabel")
  32.     local TextLabel = Instance.new("TextLabel")
  33.     local TextLabel_2 = Instance.new("TextLabel")
  34.     local UIStroke = Instance.new("UIStroke")
  35.    
  36.     Frame.Parent = Frameq
  37.     Frame.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  38.     Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  39.     Frame.BorderSizePixel = 0
  40.     Frame.Size = UDim2.new(0.850000024, 0, 0.99000001, 0)
  41.     Frame.BackgroundTransparency = 1
  42.     Frame.Size = UDim2.new(0.85,0,0,0)
  43.    
  44.     UICorner.CornerRadius = UDim.new(0, 3)
  45.     UICorner.Parent = Frame
  46.  
  47.     DropShadow.Name = "DropShadow"
  48.     DropShadow.Parent = Frame
  49.     DropShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  50.     DropShadow.BackgroundTransparency = 1.000
  51.     DropShadow.BorderSizePixel = 0
  52.     DropShadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  53.     DropShadow.Size = UDim2.new(1, 47, 1, 47)
  54.     DropShadow.ZIndex = -5
  55.     DropShadow.Image = "rbxassetid://6015897843"
  56.     DropShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  57.     DropShadow.ImageTransparency = 0.500
  58.     DropShadow.ScaleType = Enum.ScaleType.Slice
  59.     DropShadow.SliceCenter = Rect.new(49, 49, 450, 450)
  60.     DropShadow.ImageTransparency = 1
  61.    
  62.     TextLabel.Parent = Frame
  63.     TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  64.     TextLabel.BackgroundTransparency = 1.000
  65.     TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  66.     TextLabel.BorderSizePixel = 0
  67.     TextLabel.Size = UDim2.new(1, 0, 0.311292261, 0)
  68.     TextLabel.Font = Enum.Font.Unknown
  69.     TextLabel.Text = subjectTexting or "Announce"
  70.     TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  71.     TextLabel.TextScaled = true
  72.     TextLabel.TextSize = 14.000
  73.     TextLabel.TextWrapped = true
  74.     TextLabel.TextTransparency = 1
  75.    
  76.     TextLabel_2.Parent = Frame
  77.     TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  78.     TextLabel_2.BackgroundTransparency = 1.000
  79.     TextLabel_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  80.     TextLabel_2.BorderSizePixel = 0
  81.     TextLabel_2.Position = UDim2.new(0, 0, 0.343104959, 0)
  82.     TextLabel_2.Size = UDim2.new(1, 0, 0.656894982, 0)
  83.     TextLabel_2.Font = Enum.Font.GothamBold
  84.     TextLabel_2.Text = Texting or "script has update pls rejoin or idk"
  85.     TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  86.     TextLabel_2.TextScaled = true
  87.     TextLabel_2.TextSize = 14.000
  88.     TextLabel_2.TextTransparency = 1
  89.     TextLabel_2.TextWrapped = true
  90.     TextLabel_2.Name = "___"
  91.    
  92.     UIStroke.Transparency = 1
  93.     UIStroke.Color = Color3.fromRGB(255, 255, 255)
  94.     UIStroke.Parent = Frame
  95.    
  96.     return Frame
  97. end
  98.  
  99. local function start(subject,txting,tim)
  100.     coroutine.wrap(function()
  101.         pcall(function()
  102.             tim = tim or 5
  103.             local frame = Create(subject,txting)
  104.  
  105.             tweenservice:Create(frame,TweenInfo.new(0.45),{
  106.                 BackgroundTransparency = 0,
  107.                 Size = UDim2.new(0.85,0,0.99,0)
  108.             }):Play()
  109.  
  110.             tweenservice:Create(frame:FindFirstChild('___'),TweenInfo.new(0.5),{
  111.                 TextTransparency = 0.35,
  112.  
  113.             }):Play()
  114.  
  115.             tweenservice:Create(frame:FindFirstChild('TextLabel'),TweenInfo.new(0.5),{
  116.                 TextTransparency = 0,
  117.  
  118.             }):Play()
  119.  
  120.             tweenservice:Create(frame:FindFirstChild('DropShadow'),TweenInfo.new(1),{
  121.                 ImageTransparency = 0.5,
  122.  
  123.             }):Play()
  124.  
  125.             tweenservice:Create(frame:FindFirstChild('UIStroke'),TweenInfo.new(0.5),{
  126.                 Transparency = 0.75,
  127.  
  128.             }):Play()
  129.  
  130.             task.wait(tim)
  131.  
  132.             tweenservice:Create(frame,TweenInfo.new(0.7),{
  133.                 BackgroundTransparency = 1,
  134.             }):Play()
  135.  
  136.             tweenservice:Create(frame:FindFirstChild('___'),TweenInfo.new(0.5),{
  137.                 TextTransparency = 1,
  138.  
  139.             }):Play()
  140.  
  141.             tweenservice:Create(frame:FindFirstChild('TextLabel'),TweenInfo.new(0.5),{
  142.                 TextTransparency = 1,
  143.  
  144.             }):Play()
  145.  
  146.             tweenservice:Create(frame:FindFirstChild('DropShadow'),TweenInfo.new(0.6),{
  147.                 ImageTransparency = 1,
  148.  
  149.             }):Play()
  150.  
  151.             tweenservice:Create(frame:FindFirstChild('UIStroke'),TweenInfo.new(0.5),{
  152.                 Transparency = 1,
  153.  
  154.             }):Play()
  155.  
  156.             wait(1.1)
  157.             -- Size = UDim2.new(0.85,0,0,0)
  158.             tweenservice:Create(frame,TweenInfo.new(0.7),{
  159.                 BackgroundTransparency = 1,
  160.                 Size = UDim2.new(0.85,0,0,0)
  161.             }):Play()
  162.  
  163.             wait(0.75)
  164.            
  165.             frame:Destroy()
  166.         end)
  167.     end)()
  168.     return
  169. end
  170.  
  171. local sung = {}
  172.  
  173. function sung:NewAccounce<T...>(SubjectTXT,TXT,Time):()
  174.     return start(SubjectTXT,TXT,Time)
  175. end
  176.  
  177. return sung
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement