Universal Script 📌
100.5k Views
7 Executions

Nofication maker

Universal Script 📌
Nolanz
NolanzPublished 10
2 years 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

Notifications maker

View Raw
local TweenService = game:GetService("TweenService")

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "NotificationGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local notificationFrame = Instance.new("Frame")
notificationFrame.Name = "NotificationFrame"
notificationFrame.Size = UDim2.new(0.3, 0, 0.5, 0)
notificationFrame.Position = UDim2.new(1, -20, 1, -20)
notificationFrame.AnchorPoint = Vector2.new(1, 1)
notificationFrame.BackgroundTransparency = 1
notificationFrame.Parent = screenGui

local uiListLayout = Instance.new("UIListLayout")
uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder
uiListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
uiListLayout.Padding = UDim.new(0, 10)
uiListLayout.Parent = notificationFrame

local notificationColors = {
    Info = {bg = Color3.fromRGB(45, 125, 255), text = Color3.new(1, 1, 1)},
    Success = {bg = Color3.fromRGB(40, 167, 69), text = Color3.new(1, 1, 1)},
    Warning = {bg = Color3.fromRGB(255, 193, 7), text = Color3.new(0, 0, 0)},
    Error = {bg = Color3.fromRGB(220, 53, 69), text = Color3.new(1, 1, 1)},
    Neutral = {bg = Color3.fromRGB(108, 117, 125), text = Color3.new(1, 1, 1)},
    Achievement = {bg = Color3.fromRGB(255, 215, 0), text = Color3.new(0, 0, 0)},
    Update = {bg = Color3.fromRGB(0, 123, 255), text = Color3.new(1, 1, 1)},
    Reminder = {bg = Color3.fromRGB(255, 87, 34), text = Color3.new(1, 1, 1)}
}

local function createNotification(title, description, notificationType, duration, priority)
    description = description or ""
    duration = duration or 5
    priority = priority or 1

    local notificationTemplate = Instance.new("Frame")
    notificationTemplate.Size = UDim2.new(1, 0, 0.2, 0)
    notificationTemplate.BackgroundTransparency = 1


Comments

11
Log in to join the conversation. Login
idk1234's profile picture
idk12342 years ago(edited)

new ver works perfectly, big vouch from me use this script

2
Nolanz's profile picture
NolanzUploader2 years ago(edited)

@idk1234, This script can be used for practically anything you want, including notifications. For example, if you're in a game, it can alert you when an admin, moderator, or even the creator joins. It's basic, simple, but effective. Personally, I'm not sure what else it's used for, but it works well for notifications.

2
idk1234's profile picture
idk12342 years ago(edited)

Works on solara which is awesome, just a quick question whats the script used for? because i get the notifcations and the script loaded so fast. W script huge vouch

2
Nolanz's profile picture
NolanzUploader2 years ago(edited)

@Orealated I'll let you know when I put it in a Module.

1
Nolanz's profile picture
NolanzUploader2 years ago(edited)

I guess I can do that, but do you find it good for being a Module too?@Orealated

1
Orealated's profile picture
Orealated2 years ago(edited)

This should have been a module @Nolanz

1
Nolanz's profile picture
NolanzUploader2 years ago(edited)

@idk1234 The new version is out

1

More universal scripts

See all
Universal Script 📌
3.9k
185.5k
Bumped 6 hours ago
Script hub
581
48
7 hours ago
Universal Script 📌
28.8k
673.9k
Bumped 9 hours ago
Script hub
14.0k
2.7k
Bumped 11 hours ago
Key System
Paid
Script hub
263.9k
88.5k
Bumped 12 hours ago
Key System
Universal Script 📌
3.1k
10.5k
Bumped 12 hours ago
Universal Script 📌
789
47
Approved 13 hours ago