NikkoStudios
  • Welcome
  • Notification System
    • Introduction
    • Installation
    • Usage
  • Overhead UI
    • Introduction
    • Usage
Powered by GitBook
On this page
  • :newServer()
  • :newClient()
  • Example
  1. Notification System

Usage

:newServer()

Server Script
local Notif = require(game.ReplicatedStorage.NS_Notification.Notification)
local Icons = require(game.ReplicatedStorage.NS_Notification.IconPresets)

Notif:newServer(color, icon, duration, title, msg)

This is for sending notifications to the server (all clients in-game).

:newClient()

Server Script
local Notif = require(game.ReplicatedStorage.NS_Notification.Notification)
local Icons = require(game.ReplicatedStorage.NS_Notification.IconPresets)

Notif:newClient(target, color, icon, duration, title, msg)

This is for sending notifications to specific clients in-game.

Example

Server Announcement - Server Script
local Notif = require(game.ReplicatedStorage.NS_Notification.Creator)
local Icons = require(game.ReplicatedStorage.NS_Notification.IconPresets)
Notif:newServer(Color3.fromRGB(60, 149, 41), Icons.Bullhorn, 10, "Announcement", "Thanks for checking out the Notification System!")
Player Joined - Server Script
local Notif = require(game.ReplicatedStorage.NS_Notification.Notification)
local Icons = require(game.ReplicatedStorage.NS_Notification.IconPresets)

game.Players.PlayerAdded:Connect(fucntion(plr)
    plr.CharacterAdded:Wait()
    Notif:newClient(plr, Color3.fromRGB(18, 150, 64), Icons.Notification, 10, "Welcome!", "Welcome to the game! Enjoy your time here!"
end)
PreviousInstallationNextOverhead UI

Last updated 3 years ago

Page cover image