How would I make a friend chain finder (Finding someone who is friends with a friend who is friends with someone and so on) using Roblox API without getting rate limited. I do also want to make sure it doesn’t take forever. I have tried making a cooldown when I get rate limited
wait(math.min(backoff_time * 2, max_backoff)
However when I tried using this solution it will most likely take more than 20-40 minutes trying to find the specific user. I have also tried finding examples from users but I couldn’t even find one piece of code for finding friend chain links.