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
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;
})
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”