I know this topic has been discussed before, but I need some help.
My UI has two buttons, one to send a friend request and one to block the user. Here’s what it looks like: https://gyazo.com/9876703df1be5bf6fb0f8bbf6da16bea
Now, for the friend request button, I want to change the text to “Unfriend Player” if the player has accepted the friend request. I’m using game.StarterGui:SetCore("PromptSendFriendRequest")
to send the friend request, and I’m wondering if there is some function that runs if the player accepts/declines.
I’ve read a lot on the web about game.StarterGui:SetCore("PromptSendFriendRequest")
, and either the info about what I’m looking for isn’t there, or I’m just not understanding it. If you guys know anything could you help me understand it?
Thanks, ok_wannabe