Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make an in game notifications?

Asked by 4 years ago

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

2 answers

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

There’s a couple of tutorial videos that show up if you search “Roblox in game notifications”, please search before asking.

You can achieve this through the StarterGui:SetCore(“SendNotification”, config) method. You can find what the configuration table takes on the page.

Ad
Log in to vote
0
Answered by
Benbebop 1049 Moderation Voter
4 years ago
Edited 4 years ago

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

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. ankurbohra 681 — 4y

Answer this question