SendNotification HELP

SendNotification seems working but it does not show in player’s screen.
SCRIPT:

local notification = game.ReplicatedStorage.SendNotification
local startergui = game.StarterGui

notification.OnClientEvent:Connect(function(gunname, gunprice)
	local success, result = pcall(function()
		startergui:SetCore("SendNotification", {
			Title = "Bought: "..gunname.." for "..gunprice;
			Duration = 3;
		})
	end)
	if success == true then
		print("SendNotification")
	else
		warn(result)
	end
end)

I think it’s due to the “Text” argument/key which required for SendNotification

	local success, result = pcall(function()
		startergui:SetCore("SendNotification", {
			Title = "Bought: "..gunname.." for "..gunprice;
            Text = "Text goes here";
			Duration = 3;
		})
	end)

I don’t know why but it is still not showing up

Nevermind, I fixed it. It is required for the script to be in the StarterGui

Yeah that would also cause it not to work, you can also put it in StarterPlayer → StarterPlayerScripts

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.