So I have this script so that when a remote event is fired, it will send a notification.
The event fires, the pcall returns a success, but the notification does not appear.
local remoteEvents = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvents")
local fruitSpawnEvent = remoteEvents:WaitForChild("FruitSpawnEvent")
fruitSpawnEvent.OnClientEvent:Connect(function()
local starterGui = game:GetService("StarterGui")
local success, errormessage = pcall(function()
starterGui:SetCore("SendNotification", {Title = "Server", Message = "Fruit Spawned"})
end)
if success then
print(success)
else
print(errorm)
end
end)
