MaxproGlitcher

Script notification pas tester

Oct 12th, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1.  
  2. local player = game.Players.LocalPlayer
  3.  
  4. local screenGui = Instance.new("ScreenGui")
  5. screenGui.ResetOnSpawn = false
  6. screenGui.Parent = player:WaitForChild("PlayerGui")
  7.  
  8. local notificationFrame = Instance.new("Frame")
  9. notificationFrame.Size = UDim2.new(0, 250, 0, 60)
  10. notificationFrame.Position = UDim2.new(0.5, -125, 0, -70)
  11. notificationFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  12. notificationFrame.BorderSizePixel = 0
  13. notificationFrame.Parent = screenGui
  14.  
  15. local notificationCorner = Instance.new("UICorner")
  16. notificationCorner.CornerRadius = UDim.new(0, 10)
  17. notificationCorner.Parent = notificationFrame
  18.  
  19. local messageLabel = Instance.new("TextLabel")
  20. messageLabel.Size = UDim2.new(1, -20, 1, -30)
  21. messageLabel.Position = UDim2.new(0, 10, 0, 10)
  22. messageLabel.Text = "by lordi_scripts"
  23. messageLabel.Font = Enum.Font.Gotham
  24. messageLabel.TextSize = 20
  25. messageLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  26. messageLabel.BackgroundTransparency = 1
  27. messageLabel.TextWrapped = true
  28. messageLabel.Parent = notificationFrame
  29.  
  30. local progressBar = Instance.new("Frame")
  31. progressBar.Size = UDim2.new(1, -20, 0, 4)
  32. progressBar.Position = UDim2.new(0, 10, 1, -14)
  33. progressBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  34. progressBar.BorderSizePixel = 0
  35. progressBar.Parent = notificationFrame
  36.  
  37. local progressBarCorner = Instance.new("UICorner")
  38. progressBarCorner.CornerRadius = UDim.new(0, 2)
  39. progressBarCorner.Parent = progressBar
  40.  
  41. notificationFrame:TweenPosition(UDim2.new(0.5, -125, 0, 10), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5, true)
  42.  
  43. local tweenService = game:GetService("TweenService")
  44. local tweenInfo = TweenInfo.new(5, Enum.EasingStyle.Linear)
  45. local progressBarTween = tweenService:Create(progressBar, tweenInfo, {Size = UDim2.new(0, 0, 0, 4)})
  46. progressBarTween:Play()
  47.  
  48. wait(5)
  49.  
  50. notificationFrame:TweenPosition(UDim2.new(0.5, -125, 0, -70), Enum.EasingDirection.In, Enum.EasingStyle.Quint, 0.5, true, function()
  51. screenGui:Destroy()
  52. end)
Advertisement
Add Comment
Please, Sign In to add comment