SetCore: SendNotification has not been registered by the CoreScripts

Hello everyone,
I’m trying to send a notification to players who want to enter a staff-only area.
I looked at some tutorials and some devforum posts, but nothing seems to help me. I keep getting the error “SetCore: SendNotification has not been registered by the CoreScripts”.
I have a script which detects touched events (in my model), a remote function (ReplicatedStorage) and a local script (StarterGui).

The part of my script (it works):

local players = game:GetService("Players")
local replicatedstorage = game:GetService("ReplicatedStorage")
local notification = replicatedstorage:WaitForChild("Notification")

scanner.Touched:Connect(function(touchpart)
	if dooropen == true then
		if touchpart.Parent:IsA("Model") and touchpart.Parent:FindFirstChild("Humanoid") then
			local player = players:GetPlayerFromCharacter(touchpart.Parent)
			if player:GetRankInGroup(staffgroup) < 255 then
				notification:FireClient(player, "noentry")
			end
		end
	end
end)

My local script (works until startergui:SetCore):

local replicatedstorage = game:GetService("ReplicatedStorage")
local startergui = game:GetService("StarterGui")
local notification = replicatedstorage:WaitForChild("Notification")

notification.OnClientEvent:Connect(function(reason)
	if reason == "noentry" then
		startergui:SetCore("Send Notification", {
			Title = "Stop!";
			Text = "You are not allowed to enter this area."
		})
	end
end)

It would be great if someone could find the problem here :smiley:

You need to remove the space in “Send Notification”:
startergui:SetCore("SendNotification", {

1 Like

Oh god, what a stupid mistake. Thank you for your help :slight_smile: