I’m wondering if there is a way to make a user following system, where if a user is following another user on Roblox it would allow them through an area, or like it would print “following” or something like that.
I stand corrected, there is an endpoint. Scroll all the way to the bottom of this post.
What you’d need to do is create a function that looks for user2’s userid inside of user1’s following list. The post I sent is a good starting point for the http request side of stuff.
To add to the above, it’s important that you fetch the people that the player follows, not the people that follow you. This is so you have to look through less pages. If this is done between random players, it’s ideal to check whoever has the least followers/followings, and then call the APIs accordingly (so you make less page iterations). Basically you can figure it out by either looking at the followers of one player, or the followings of the other, therefore you can choose based on which option has less pages.
Also those pages can be very large if someone does it on purpose, which means that you need to set a maximum limit of pages to look through before basically giving up.
Lastly you can implement a caching system that keeps track of the follow relationship between players, so you avoid spamming your own servers. That system can work with a variable t that stores the time it last cached the response, if it’s further back in time than a maximum amount (for example a day), redo the request and update the cache.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
