Advertisement
RoScripter

Timed Notifications

Jul 19th, 2020
5,423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. local StarterGui = game:GetService("StarterGui")
  2.  
  3. local Notifications = {
  4.     "Notification Message 1",
  5.     "Notification Message 2",
  6.     "Notification Message 3",
  7.     "Notification Message 4",
  8.     "Notification Message 5",
  9. }
  10.  
  11. local TimeBetweenNotifications = 5 --REPLACE 5 WITH THE NUMBER OF SECONDS YOU WANT TO WAIT IN BETWEEN NOTIFICATIONS APPEARING
  12.  
  13. while true do
  14.     for i = 1, #Notifications do
  15.         local Notification = Notifications[i]
  16.        
  17.         StarterGui:SetCore("SendNotification", {
  18.             Title = "System Notification",
  19.             Text = Notification,
  20.             Duration = 5
  21.         })
  22.        
  23.         wait(TimeBetweenNotifications)
  24.     end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement