module script (everything works)
local module = {}
function module.notify(player, text)
local notiRemote = game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Notify")
notiRemote:FireClient(player, text)
end
return module
local script:
local notiRemote = game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Notify")
local notification = game:GetService("ReplicatedStorage"):WaitForChild("UIElements"):WaitForChild("Clonables"):WaitForChild("notification")
local notiUi = script.Parent:WaitForChild("notification")
local sound = game:GetService("SoundService"):WaitForChild("notification")
notiRemote.OnClientEvent:Connect(function(text)
local newNotification = notification:Clone()
newNotification.Parent = notiUi
newNotification.Text = text
sound:Play()
end)