How could I make a notification appear at a specific time

I want to make a notification appear on players screen at a specific time like 2:30pm in my timezone but I don’t know how to do this.

If anyone has any ideas please reply with them!

Cheers.

1 Like

Hi!

You will have to look into DateTime

2 Likes

I’ve looked at it but I don’t really know how to incorporate it.

1 Like

Hi!

Do you want to have any server specific checks, to make sure when this gui should pops up, or do you just want it to pop up for the client, without any server specific validation?

1 Like

I’m wanting to use CoreGui:SetCore("SendNotification" to send specific players a notification at a specific time preferably on the server in case exploiters try to abuse it.

1 Like

You can use something like this,

local StarterGui = game:GetService("StarterGui")
local Bindable = Instance.new("BindableFunction")

function Bindable .OnInvoke(Response)
    print(Response .. " chosen.")
end

StarterGui:SetCore("SendNotification", {
	Title = "Notification",
	Text = "Is this a notification?",
	Duration = 5,
	Callback = Bindable,
	Button1 = "Yes",
	Button2 = "No"
})

You can also read more about using StarterGui:SetCore("SendNotification") here.

2 Likes