The error message fully reads:
03:36:19 – SetCore: Send Notification has not been registered by the CoreScripts
How would I fix this?
The error message fully reads:
03:36:19 – SetCore: Send Notification has not been registered by the CoreScripts
How would I fix this?
Welcome to the forums!
Can we see the code that is causing this issue?
P.S: I’ve changed your category to make it more fitting.
Handler Code:
local MessagingService = game:GetService(“MessagingService”)
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local Notification = ReplicatedStorage.GlobalAnnouncementSystem:WaitForChild(“Notify”)
local FirstCommand = “/announce”
local Admin = “UnusualGamingY_T”
game.Players.PlayerAdded:Connect(function(Player)
if Player.Name == Admin then
Player.Chatted:Connect(function(Msg)
local SplitMessage = Msg:split(" ")
if SplitMessage[1] == FirstCommand then
MessagingService:PublishAsync(“Global_Announcement”, Msg:gsub(SplitMessage[1], “”))
Notification:FireClient(Player, “Success”, “Your message has successfully been sent!”)
end
end)
end
end)
MessagingService:SubscribeAsync(“Global_Announcement”, function (message)
Notification:FireAllClients(“Global Announcement”, message[“Data”])
end)
Notification Handler Code:
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local StarterGui = game:GetService(“StarterGui”)
local Notification = ReplicatedStorage.GlobalAnnouncementSystem:WaitForChild(“Notify”)
Notification.OnClientEvent:Connect(function(Title, Description)
StarterGui:SetCore(“Send Notification”,
{
Title=Title,
Text=Description
}
)
end)
Can you wrap this in code tags?
I don’t know how to wrap it.
Select all your code and click the code button inside of your composers header.
local MessagingService = game:GetService("MessagingService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Notification = ReplicatedStorage.GlobalAnnouncementSystem:WaitForChild("Notify")
local FirstCommand = "/announce"
local Admin = "UnusualGamingY_T"
game.Players.PlayerAdded:Connect(function(Player)
if Player.Name == Admin then
Player.Chatted:Connect(function(Msg)
local SplitMessage = Msg:split(" ")
if SplitMessage[1] == FirstCommand then
MessagingService:PublishAsync("Global_Announcement", Msg:gsub(SplitMessage[1], ""))
Notification:FireClient(Player, "Success", "Your message has successfully been sent!")
end
end)
end
end)
MessagingService:SubscribeAsync("Global_Announcement", function (message)
Notification:FireAllClients("Global Announcement", message["Data"])
end)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local StarterGui = game:GetService("StarterGui")
local Notification = ReplicatedStorage.GlobalAnnouncementSystem:WaitForChild("Notify")
Notification.OnClientEvent:Connect(function(Title, Description)
StarterGui:SetCore("Send Notification",
{
Title=Title,
Text=Description
}
)
end)
Thanks, which line is causing the issue?
The console says its a SetCore issue
There’s your mistake, there should be no space, correct it to become:
StarterGui:SetCore("SendNotification",
Thank you for your assistance
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.