(Insert Drumroll)
INTRODUCING FLEXNOTIFY NOTIFICATION SYSTEM!!!
Hello! I am JAcoboiskaka1121 and I introduce to you, FlexNotify! A simple, yet powerful notification Module that’s easy to use and customise! Anyway enough with the introduction, You can find the Module here. Scroll down for the usage guide!
USAGE GUIDE
There are 2 functions for the system. Let’s go over them! But first, Guide on how to install it!
- Get the model linked at the top or at the bottom of the post.
- Insert it into your Roblox experience
- Parent it to ReplicatedStorage.
- Make a local script inside one of these:
- StarterPlayerScripts
- StarterGui
- Any of your guis.
- require the Module with
require(game.ReplicatedStorage.FlexNotify)
- Follow the rest of the guide!
CHANGE PARAMETERS
It’s in the name, Change parameters changes the default settings of the system. Start by calling the function.
FlexNotify:ChangeParameters()
And put the properties inside the brackets, the Settings are as follows.
- Duration: How long should the notification stay on screen.(number)
- Position: Where should the Notification be (string). There are 4 positions:
Top Right
Top Left
Bottom Right
Bottom Left
- Sound: Should a sound be played once the notification is showed?(bool)
and last but not least. - Max notifications: The amount of maximum notifications on screen (number)
In the function they would look something like this:
FlexNotify:ChangeParameters(
5, --Duration
"bottomright", -- Position(Make sure there isn't any spaces)
true, --Sound
10, -- Max Notifications
)
These change the default setting, there are more settings that have to be specified inside the Notify function itself.
but now, the main course.
NOTIFY
This is the main function used to trigger the notification, Start by calling the function:
FlexNotify.Notify()
and same thing with the last function, put the settings in the brackets, The settings are as follows:
- Text: The main text that you want the notification to show, this is required. It also supports rich text, use the HTML rich text guide here.(string)
- Notification type: Type of notification you want the message to be (string). Here are the types:
Success: If the event is successful, String is “success”
Failed: If the event is unsuccessful, String is “failed”
Information: A middle ground between all the types. String is nil or “information”
Custom: If you want the notification to be custom. String is “custom”
Undefined: Couldn’t find any of the types above. String is a random string.
- Position: Like the last function, Changes the Position, The list is on the top. (string)
- Sound: If a sound should play when triggered. (Bool)
- Duration: How long should the Notification stay on screen. (Number)
- Image: Sets an Image to show with the notification if provided with an Image ID. (Number)
A function with these settings will look like this:
FlexNotify.Notify(
"Hello world!",-- Main text
"information",-- Notification type(make sure all letters are lowercase)
"topleft",-- Position(make sure there's no spaces)
true, -- Sound
3, -- Duration
1234567890 --Image
)
Note: Any setting you change inside the Notify function will override the ChangeParameters Setting.
CONCLUSION
That’s basically it on how to use it, you can get it here, or on the other hyperlinks.
This is my first community resource, so let me know if you like it and improvements I can make! Message me or put a comment under the post if you find any bugs or problems. Hope you enjoy using it! Anyway, Have an amazing day or night or midnight, or eveni-you get the point! Anyway.
See you!!!