Mryeetmemes

GameNotifications

Dec 9th, 2021
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Remote = game.ReplicatedStorage["ReplicatedStorage_CLOUD"].GameNotification
  3. local StarterGui = game:GetService("StarterGui")
  4.  
  5. Remote.OnClientEvent:Connect(function(Plr, t, d, i)
  6.     if Player.Name == Plr.Name then
  7.         if t and d then
  8.             script.Sound:Play()
  9.             if i then
  10.                 StarterGui:SetCore("SendNotification", {
  11.                     Title = t;
  12.                     Text = d;
  13.                     Icon = i;
  14.                 });
  15.             else
  16.                 StarterGui:SetCore("SendNotification", {
  17.                     Title = t;
  18.                     Text = d;
  19.                 });
  20.             end
  21.         end
  22.     end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment