Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local Remote = game.ReplicatedStorage["ReplicatedStorage_CLOUD"].GameNotification
- local StarterGui = game:GetService("StarterGui")
- Remote.OnClientEvent:Connect(function(Plr, t, d, i)
- if Player.Name == Plr.Name then
- if t and d then
- script.Sound:Play()
- if i then
- StarterGui:SetCore("SendNotification", {
- Title = t;
- Text = d;
- Icon = i;
- });
- else
- StarterGui:SetCore("SendNotification", {
- Title = t;
- Text = d;
- });
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment