Hello.
I have this game where i want someone to friend request you. (A bot, not an actual player) But i have this problem.
I cant seem to figure out what button the player presses, There is no info online also. This is the script: (Localscript in startergui)
local NotificationBindable = Instance.new("BindableFunction")
game.StarterGui:SetCore("SendNotification", {
Title = "Somebody";
Text = "Sent you a friend request!";
Icon = "http://www.roblox.com/asset/?id=3264340825";
Duration = 5;
Button1 = "Accept";
Button2 = "Decline";
Callback = NotificationBindable;
})
But i want the script to know what button you pressed. Example: if you click decline it will print decline in the output.
Can you help me do this?

1 comment
i think there is something called a local function for that