Question on what this is called

EDIT: You can research this by searching for send notification in roblox studio here’s a video I found!
How to Make NOTIFICATIONS | Roblox Studio Tutorial - YouTube

Hey! I was trying to implement a system in my game similar to what others do where you can make this little UI thing show up but be able to customize it but I don’t know what its called or what to search for any help is appreciated thanks!

Edit: I have seen people customize this into there game but I don’t know how or what to search for when researching it that’s the best photo I could find from online
Inkedc12bb34c05f79d34a97794c588aeed76

1 Like

You can check out this article. Hope this helps. :wink:

1 Like

I more so meant like how some games make systems, where you click, invite on someone (Someone who is in the server) through in-game UI and it prompts them with the friend request looking UI but says Player has invited you or something.

Hi.
This is a coregui and can be triggered through SendNotification
I don’t really have time explaining it entirely but below I’ve dropped you a function I made a while back which should trigger the friend request fully customized as you’d wish.

local function callback(Text)
	if Text == "Yes" then
		print("Accepted friend request")
	elseif Text == "No" then
		print("Declined friend request")
	end
end
local NotificationBindable = Instance.new("BindableFunction")

game.StarterGui:SetCore("SendNotification", {
	Title = " "; --Username of the requester
	Text = " "; --Description of the notification, for example "Sent you a friend request!"
	Icon = " "; --The image that is displayed, usually a player's thumbnail.
	Duration = 0; --How long you'd like the prompt to last
	Button1 = " "; --The "Yes" within a friend request
	Button2 = " "; --The "No" within a friend request
	Callback = NotificationBindable;
})
2 Likes

To create a new notification, you can use StarterGui:SetCore("SendNotification", configTable).

You can customize the notification UI by setting the Title, Text, Icon, Duration, Callback, Button1, and Button2 properties of the configTable.

3 Likes

Hey sorry if I’m using up your time but how would I get if the invited player accepted the invite or something

Sorry for the spelling I’m on my phone right now

Where it has the prints, simply change that to the action you’d like to be preformed.
For example, what I’ve used was if the player clicks accept it would print “Accepted friend request”

1 Like

Thanks I didn’t notice that till now

1 Like

Sorry for this but one last thing :sweat_smile: anyways how would I make it so a different player activates it and sends it to a different player as like an invite.

Edit: I think I know how I will experiment

https://developer.roblox.com/en-us/api-reference/function/StarterGui/SetCore

1 Like

Hey this doesnt work when you click yes or no any idea why? This was not meant to sound demanding or rude.

1 Like

Its some pretty old code of mine so I wouldn’t be shocked if I’d gotten something wrong, however I’ll try and get it working.

I’ll edit this message if I come up with a solution.

2 Likes

It’s most likely because both the if text == whatever and the Button1 = whatever. Both of those have to be the same.

E.g.

Make sure those two things are the exact same. And same thing goes for the other option:

Both of those should be the same as well.