About
A plug-and-play notification module built on top of Fusion 0.3. It handles the full lifecycle of a notification — entrance animation, progress, hover-pause, options, signals, and cleanup — with a single function call.
No global state leaks. No manual cleanup. Every notification owns its scope and destroys itself.
Features
- 4 built-in styles: Modern, Minimal, Bold, Classic
- Spring-driven entrance and exit animations
- Progress bar that fades white → red as time runs out (spring-smoothed color)
- Hover to pause — hovering the notification freezes the timer until you move away
- RichText support out of the box (
<b>,<i>,<font color>) - Optional icon (ImageLabel, tinted to match style)
- Viewport model support with slow camera rotation
- Up to 2 interactive option buttons with individual signals
OnOption1,OnOption2,OnDismissedsignals on every notification- Persistent mode (no auto-dismiss, used automatically when options are present)
- 6 stack position presets (TopLeft, TopCenter, TopRight, BottomLeft, BottomCenter, BottomRight)
- Custom separator color per notification
- Fully reactive — every visual property is driven by Fusion state
Setup
Place the module under your preferred location, then require it in a LocalScript:
local Notification = require(ReplicatedStorage.Notifications.Notification)
That’s it. The ScreenGui is created automatically.
Basic Usage
-- simple string
Notification({ Type = "String", Content = "Hello world!" })
-- richtext
Notification({
Type = "String",
Content = "<b>Achievement unlocked!</b> You reached level 10.",
Style = "Classic",
Duration = 5,
})
-- with icon
Notification({
Type = "String",
Content = "You earned a reward!",
Icon = "rbxassetid://6034509993",
Style = "Modern",
})
-- with progress bar
Notification({
Type = "String",
Content = "Auto-saving...",
Duration = 4,
ShowProgress = true,
Style = "Minimal",
})
-- persistent (stays until dismissed by options)
Notification({
Type = "String",
Content = "Server restarting in 5 minutes.",
Persistent = true,
Style = "Bold",
})
Interactive Options + Signals
Every call returns a signals table, even if options are not used.
lua
local signals = Notification({
Type = "String",
Content = "Are you sure you want to delete this item?",
Style = "Modern",
Option1 = { Text = "Delete" },
Option2 = { Text = "Cancel" },
})
signals.OnOption1:Connect(function()
-- player pressed Delete
deleteItem()
end)
signals.OnOption2:Connect(function()
-- player pressed Cancel
end)
signals.OnDismissed:Connect(function()
-- fires on any dismissal (option pressed OR timed out)
end)
Pressing either option fires the corresponding signal and then dismisses the notification. OnDismissed always fires last.
Viewport Model
local model = workspace.Trophy -- any Model instance
Notification({
Type = "Viewport",
Content = model,
Style = "Modern",
Duration = 6,
ViewportDistance = 2.5,
ViewportHeight = 1.2,
ViewportSpeed = 0.6,
})
The model is cloned into a ViewportFrame with a camera that slowly orbits around its pivot.
Styles
| Style | Description |
|---|---|
Modern |
Dark glass, gradient edges, top shine, separators |
Minimal |
Simple dark background, bottom line only |
Bold |
Deep dark, left accent bar, gradient edges, shadow |
Classic |
Warm brown tones, rounded corners, separators, top shine |
Notification({ Type = "String", Content = "Hey!", Style = "Bold" })
Custom separator color per notification:
Notification({
Type = "String",
Content = "Low health!",
Style = "Modern",
SeparatorColor = Color3.fromRGB(255, 80, 80),
})
Stack Position
Notification.setPosition("TopRight")
-- presets: BottomCenter, BottomRight, BottomLeft, TopCenter, TopRight, TopLeft
Calling setPosition moves the entire stack instantly. You can call it at any time.
Full API Reference
Notification.fire(props) / Notification(props)
Both forms are equivalent. Returns a signals table.
| Prop | Type | Default | Description |
|---|---|---|---|
Type |
`“String” | “Viewport”` | "String" |
Content |
`string | Model` | "" |
Style |
string |
"Modern" |
Visual style preset |
Duration |
number |
3.0 |
Seconds before auto-dismiss (min 0.5) |
ShowProgress |
boolean |
true |
Show progress bar (ignored if persistent) |
Persistent |
boolean |
false |
Disable auto-dismiss |
Icon |
string |
nil |
Asset ID for icon image |
SeparatorColor |
Color3 |
white | Color of separator lines and left bar |
Option1 |
{ Text: string } |
nil |
First option button |
Option2 |
{ Text: string } |
nil |
Second option button |
ViewportDistance |
number |
2.2 |
Camera orbit distance (Viewport only) |
ViewportHeight |
number |
1.4 |
Camera height offset (Viewport only) |
ViewportSpeed |
number |
0.8 |
Camera orbit speed (Viewport only) |
Notification.setPosition(preset: string)
Repositions the entire notification stack. Valid presets: BottomCenter, BottomRight, BottomLeft, TopCenter, TopRight, TopLeft.
Signals (returned by every .fire() call)
| Signal | Fires when |
|---|---|
OnOption1 |
Player clicks Option 1 |
OnOption2 |
Player clicks Option 2 |
OnDismissed |
Notification fully disappears (any reason) |
Notes
- Notifications stack vertically and clean up their own Fusion scope on dismissal
- Hover-pause only works on PC (MouseEnter/MouseLeave). On mobile the timer always runs
OnDismissedfires after the fade-out completes (~1 second after dismiss is triggered)- Options automatically set
Persistent = true
ModuleScript: Notification

