MaxproGlitcher

Notification Test Script

Aug 23rd, 2024
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1.  
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  4.  
  5. local mainFrame = Instance.new("Frame")
  6. mainFrame.Size = UDim2.new(0, 200, 0, 100)
  7. mainFrame.Position = UDim2.new(1, -220, 1, -120)
  8. mainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  9. mainFrame.BackgroundTransparency = 0.3
  10. mainFrame.Parent = screenGui
  11.  
  12. local frameCorner = Instance.new("UICorner")
  13. frameCorner.CornerRadius = UDim.new(0, 10)
  14. frameCorner.Parent = mainFrame
  15.  
  16. local notificationLabel = Instance.new("TextLabel")
  17. notificationLabel.Size = UDim2.new(1, 0, 0.4, 0)
  18. notificationLabel.Position = UDim2.new(0, 0, 0, 0)
  19. notificationLabel.BackgroundTransparency = 1
  20. notificationLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  21. notificationLabel.Text = "Example notification"
  22. notificationLabel.TextScaled = true
  23. notificationLabel.Parent = mainFrame
  24.  
  25. local creditsLabel = Instance.new("TextLabel")
  26. creditsLabel.Size = UDim2.new(1, 0, 0.3, 0)
  27. creditsLabel.Position = UDim2.new(0, 0, 0.7, 0)
  28. creditsLabel.BackgroundTransparency = 1
  29. creditsLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  30. creditsLabel.Text = "Made by PlayerExploits"
  31. creditsLabel.TextScaled = true
  32. creditsLabel.Parent = mainFrame
  33.  
  34. local progressBar = Instance.new("Frame")
  35. progressBar.Size = UDim2.new(0, 0, 0.15, 0)
  36. progressBar.Position = UDim2.new(0.025, 0, 0.475, 0)
  37. progressBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  38. progressBar.Parent = mainFrame
  39.  
  40. local progressBarCorner = Instance.new("UICorner")
  41. progressBarCorner.CornerRadius = UDim.new(0, 5)
  42. progressBarCorner.Parent = progressBar
  43.  
  44. local tweenService = game:GetService("TweenService")
  45. local tweenInfo = TweenInfo.new(5, Enum.EasingStyle.Linear)
  46.  
  47. local goal = {}
  48. goal.Size = UDim2.new(0.95, 0, 0.15, 0)
  49.  
  50. local tween = tweenService:Create(progressBar, tweenInfo, goal)
  51. tween:Play()
  52.  
  53. tween.Completed:Connect(function()
  54. local slideTweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Linear)
  55. local slideGoal = {}
  56. slideGoal.Position = UDim2.new(1.2, 0, 1, -120)
  57.  
  58. local slideTween = tweenService:Create(mainFrame, slideTweenInfo, slideGoal)
  59.  
  60. local fadeGoal = {}
  61. fadeGoal.BackgroundTransparency = 1
  62.  
  63. local fadeTween = tweenService:Create(mainFrame, slideTweenInfo, fadeGoal)
  64.  
  65. slideTween:Play()
  66. slideTween.Completed:Connect(function()
  67. fadeTween:Play()
  68. end)
  69.  
  70. fadeTween.Completed:Connect(function()
  71. mainFrame:Destroy()
  72. end)
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment