It never sent any error; it just never showed up. I tried using a Remote Event and the same thing happened. I tried using a Remote Function and it kept saying either these two things: Unable to cast value to object, Missing value or nil.
Local Script
sgui = game:GetService("StarterGui")
wait(5)
game.ReplicatedStorage.Notify.OnClientInvoke:Connect(function(plr,guitext,guititle)
if plr then
print("All clients are notified.")
sgui:SetCore("SendNotification",{Title = guititle, Text = guitext, Icon = "", Duration = 5})
else
print("Something went wrong.")
end
end)
Server Script
game.Players.PlayerAdded:Connect(function(plr)
local guititle = "A Moderator has entered the server."
local guitext = plr.Name.." has entered the server."
game.ReplicatedStorage.Notify:InvokeClient(plr,guititle,guitext)
end)
It never showed where it went wrong, despite looking on the dev wiki or devforum.

2 comments
does it "say something went wrong."?
No. Not even showing the notification