Notification Service

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.
image

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.

  1. PushNtfc Pushes notification to certain player.
  2. PushNtfcToGroup Puches notification to group of players.

Firstly PushNtfc, takes 4 params which are:-

  1. player => Player targeted (Player)
  2. title => Text displayed on the title of the notification (string)
  3. content => Text displayed on the content of the notification (string)
  4. Type => The type of the notification and it changes the notification icon (β€œsuccess” | β€œerror”| β€œwarning”| "ntfc)

image

Secondly PushNtfcToGroup is same as PushNtfc put takes group instead of player:-

  1. group => An array that contains players
  2. title => Text displayed on the title of the notification (string)
  3. content => Text displayed on the content of the notification (string)
  4. 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

10 Likes

Image has mistake.
Error!
Somrthing went wrong, try again

4 Likes

It’s not pleasant that it takes a whole second to show the notification. Also, multiple notifications shouldn’t snap down when one is removed! The open/close animation looks good, it’s just too slow.

6 Likes

multiple notifications shouldn’t snap down when one is removed!

what do you mean exactly?

its an easter egg ;)β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž

1 Like

It would be cool if it was possible to know if the player clicks the notification. For example, there is a virtual phone in game, and you can get a notification when someone sends you message throught phone, and players can click the message to open the chat app.
Another example would be: player recieves a notification that some player bought a item from their virtual shop, and then the player when clicks the notification, it teleports him to his shop.

1 Like

Great idea β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž

Are notifications modifiable? I’d like to set the tweens to shorter times and (slightly) add more tweens, and because if i made notifications, they would be without gradient/round corner/transparency (if it has transparency, maybe adding vignette/blur?) and smaller. (i dont want you to change the notification, im asking if i can modify the module when i use it so the ui looks like that)

The notification ui is just normal gui which is located inside the module and you can coustmize the look of it as you like, and you can change the tweens through the module.

1 Like

Hi there!

I like the UI, however I have found an issue (don’t worry, a fix too!)

When a player dies then whenever I try to pushNtfc it says:
ServerScriptService.NotificationService.Events:60: NotificationUI is not a valid member of PlayerGui "Players.NatixX0_0X.PlayerGui" - Server - Events:60

How to fix:

Go into the NotificationService script and add the following line just below local NotificationUI = Instance.new("ScreenGui")

NotificationUI.ResetOnSpawn = false

1 Like

Thanks for the fix.
Currently, I’m planning a new version of it since there were some bad techniques I used back then.

1 Like