Hello all!
I’ve recently created a module called NotificationService for better notification use and also for the people who are not capable to create a notification system.
Before anything else, make sure you know how to use ModuleScripts to properly use this module.
Here is how to set it up:
-
Download this model: https://create.roblox.com/marketplace/asset/15903816491
-
Drag the module script called NotificationService to anywhere you want, I personally use it in ReplicatedStorage
-
Drag the Notifications UI to StarterGui
-
Delete the Folder you left in the workspace
After all, you shall be ready.
Remember, you have to require the module to use it.
Here is an example code snippet for better understanding:
local Players = game:GetService("Players")
local NotificationsModule = require(game.ReplicatedStorage.NotificationService) -- Your path to the module.
Players.PlayerAdded:Connect(function(player)
repeat wait() until player.PlayerGui
-- Create a welcome notification:
-- Usage:
-- Player: Player you want to create for
-- Init: Text you want to display
-- Color: Your text color (in Color3 format!)
-- Wait 5 seconds to ensure.
wait(5)
NotificationsModule:CreateNotification(player, "Welcome!", Color3.fromRGB(255,255,255))
end)
Make sure you give me feedback, and suggestions, also what to improve, and what to remove.
Note: I created this on my alternate account.