setCore does not work for some reason but it prints

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    a count down in Notification
  2. What is the issue? Include screenshots / videos if possible!
    i dont see the Notification
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    none , where should i look

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

--local script
script.Parent.Parent.Activated:Wait()
game.StarterGui:SetCore('SendNotification',{Title = 'eating',Text='you eat your drink'})
script.Parent.RemoteEvent:FireServer()
local number = script.Parent.RemoteEvent.OnClientEvent:Wait()
if number == 1 then
	game.StarterGui:SetCore('SendNotification',{
		Title = 'you died',
		Text='dont eat metal next time'
	})--
elseif number == 2 then
	game.StarterGui:SetCore('SendNotification',{
		Title = 'you are safe',
		Text='can you do that again'
	})--
elseif number == 3 then
	game.StarterGui:SetCore('SendNotification',{
		Title = 'jump',
		Text='ho no it was a jumping potion'
	})--
	wait(3)
	for i=3,1,-1 do
		print('do')
		game.StarterGui:SetCore('SendNotification',{-- this does not work
			Title = 'count down',
			Text=i,
			Duration = 5
		})--
		wait(1)

	end
end
-- script
local client = script.RemoteEvent.OnServerEvent:Wait()

local rnumber = game.ServerStorage.GetRandomInt:Invoke(1,3)

wait()

script.RemoteEvent:FireClient(client,rnumber)

local humanoid = client.Character:FindFirstChildOfClass("Humanoid")

if rnumber == 1 then

humanoid.Health = 0

elseif rnumber == 2 then

-- nothing happens

elseif rnumber == 3 then

wait(3)

for i=3,1,-1 do

wait(1)

end

local jh = humanoid.JumpHeight

humanoid.JumpHeight = 600

humanoid.Jump = true

humanoid.JumpHeight = jh

end

wait()

script.Parent:Destroy()

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

It looks like the function does not accept integers, try converting the number to a string using tostring()

for i=3,1,-1 do
	print('do')
	game.StarterGui:SetCore('SendNotification',{
		Title = 'count down',
		Text = tostring(i),
		Duration = 5
	})--
	wait(1)
end