So when ever someone would send a friend request to someone else and the other person accepted both of their stats would go to up by 1
How would detect this in the first place
So when ever someone would send a friend request to someone else and the other person accepted both of their stats would go to up by 1
How would detect this in the first place
I’m guessing this is for your game, not on the website.
You should post your script here so others can help you out.
One of the rules of the Scripting helpers forum is not to ask people to make scripts for you. Seach around to see if there’s a tutorial for something similar. Don’t search for ‘friend request’, but search for ‘how to increase a stat’ or something similar.
Try to make your script from any information you find. If you get stuck you can post your script here, but put 3 backticks (```) before and after you copy/paste it here so it formats properly.
I know how to increase the stats of a player but not how to detect a friend request verdict
But you didn’t say if it’s a friend request on the site, or just in a friend system for your game. We can’t tell exactly what you’re doing unless you give us a bit more detail.
Friend in the game
extra text 123456
If you are looking to find when a player’s friend request is accepted in game, you can use starterGui:GetCore('PlayerFriendedEvent')
, though this has to be done on the client so be cautious.
Afaik there isn’t any way to see whether a request was declined for (I assume) security reasons, so that isn’t an option unfortunately.
How do I detect when someone requests one as well as who 2 individuals are?
I am trying to make a game where people just make new connections
You can’t, there isn’t any functionality for that. Best you can do is starterGui:SetCore('PromptSendFriendRequest')
to prompt sending the request but there’s the possibility that the player who’s prompted presses cancel. There is no real reliable way to find out when someone sends the request.
how about using the PlayerFriendedEvent? can i find out who friended who?
I can’t check right now because Roblox is down, but iirc the event passes the player who was friended. The other player would be the local player, as again, this would have to be done entirely on the client.
Have a gui with a button for send friend request with a list of the players in the game.
When the button is clicked then get the sender and receiver of the request.
The receiver gets a GUI pop up with 2 buttons: Accept or Decline.
When they click you have your answer to do whatever you want with it. Also remember to end the request if either player left the game.