02_usage.md

Back to reference

Usage

Here's an example of using Nevermore

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LoadCustomLibrary = require(ReplicatedStorage:WaitForChild("Nevermore"))


-- Do actual things
local Players = game:GetService("Players")

local SnackbarManager = LoadCustomLibrary("SnackbarManager").new()
    :WithPlayerGui(Players.LocalPlayer:WaitForChild("PlayerGui"))

SnackbarManager:MakeSnackbar("Nevermore loaded!")