Hello fellow developers!
Today I will be introducing my own made free and open source NotificationService
, an easy way to set notification in games. This allows to have different tags styles in games within your script easily.
Features:-
- 4 different tag types (notification, success, error, and warning)
- Anti exploit and fully operated by server
- Ability to change notification duration easily without scripting
- Ability to change different notifications icons without scripting
- Modern UI and clean animations
- Compatible for different screens (PC, phones, tablets)
- Clean and customizable code
Setup:-
To start using the NotificationService
after downloading it, just place the Script inside ServerScriptService
.
Then require the Events
module in youre own script.
local ServerScriptService = game:GetService("ServerScriptService")
local NotificationService = require(ServerScriptService:WaitForChild("NotificationService").Events)
Documentation:-
There are 2 main functions in the Events
module which are.
-
PushNtfc
Pushes notification to certain player. -
PushNtfcToGroup
Puches notification to group of players.
Firstly PushNtfc
, takes 4 params which are:-
- player => Player targeted (Player)
- title => Text displayed on the title of the notification (string)
- content => Text displayed on the content of the notification (string)
- Type => The type of the notification and it changes the notification icon (βsuccessβ | βerrorβ| βwarningβ| "ntfc)
Secondly PushNtfcToGroup
is same as PushNtfc
put takes group instead of player:-
- group => An array that contains players
- title => Text displayed on the title of the notification (string)
- content => Text displayed on the content of the notification (string)
- Type => The type of the notification and it changes the notification icon (βsuccessβ | βerrorβ| βwarningβ| "ntfc)
Code examples:-
NotificationService.PushNtfcToGroup(players:GetPlayers(),"Warning!","You cant access this area.","warning")
---------------------------------------------------------------------
NotificationService.PushNtfc(player,"Join Group!","Dont forget to join game group!","ntfc")
---------------------------------------------------------------------
NotificationService.PushNtfc(player,"Error!","Somrthing went wrong, try again","error")
Installing:-
You can get the notification service through
-Creator Marketplace
-BulitByBit
This is my first ever post on the developer hub soo it might not be the best if you have any improvent for the resource or my post feel free to comment.
if you using this for another resource or asset please consider crediting me