Universal Script 📌
1.3k Views
13 Executions

Notification System

Universal Script 📌
stav
stavPublished 10
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

sends notifications This is meant to act like a table, you can change it to not be a return but a table. Example: Notif.NewNotification('journey.lol', 'test', 5, { Callback = function(callback) if callback then print(callback) end end, Button1 = 'Accept', Button2 = 'Decline' })

View Raw
return {
        NewNotification = function(title, txt, dur, buttons)
            local starterGui = cloneref(game:GetService('StarterGui'))
            local packet = {
                Title = title,
                Text = txt,
                Duration = dur
            }

            for i,v in buttons do
                packet[i] = v
            end

            starterGui:SetCore('SendNotification', packet)
        end
    }


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
178.7k
1.7M
Bumped 1 hour ago
Key System
Universal Script 📌
9.0k
31.3k
Bumped 2 hours ago
Script hub
49.7k
12.2k
Bumped 3 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 8 hours ago
Key System
Script hub
20.5k
3.9k
Bumped 8 hours ago
Key System
Paid
Universal Script 📌
695
49
Approved 14 hours ago
Universal Script 📌
598
512
Approved 14 hours ago
Universal Script 📌
562
126
Approved 14 hours ago