Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make an in game notifications?

I am talking about those popups that are on the bottom-right corners. This is for a gamepass.

2 answers

To create custom popups/notifacations use SetCore specifically SendNotification. It has 7 parameters: Title, Text, Icon, Duration, Callback, Button1 and Button2. I will demonstrate Title, Text and Icon in this.

To create a notification you write.

game:GetService("StarterGui"):SetCore("SendNotifacation")

But this will just create a completely blank notification. To add custom text you create a table containing the three parameters mentioned above.

{Title = nul; Text = nul; Icon = nul}

To complete combine these two together and replace nul with some strings. Like so:

Ex.

local StarterGui = game:GetService("StarterGui")

StarterGui:SetCore("SendNotifacation", {
	Title = "ExampleTitle";
	Text = "ExampleText";
	Icon = "rbxassetid://0"
})

This should create a notification that says "ExampleTitle" with smaller "ExampleText" written underneath it with whatever image "rbxassetid://0" represents to the left of all that.

For more see Roblox Developer Hub or YouTube

1 comment

0

Not providing the second argument will error, it will not create a blank notification. Notifications expect some necessary data to be used, not doing the same will result in at error.

This discussion is preserved as it was. New answers, comments, and votes are closed.