hi guys i’m tryna make a system where i have to check if a player follows someone, and i saw that there’s an api, so i wanna use it with roproxy, it works, but once you made the first request, if you follow or unfollow someone, and you make another request it remains the same and doesn’t refresh
local HttpService = game:GetService("HttpService")
local MattQId = 2992118050
local function checkFollowing(player)
local Follower = player.UserId
local Table = "https://friends.roproxy.com/v1/users/".. Follower .."/followings?sortOrder=Asc&limit=100"
local response = HttpService:RequestAsync({
Url = Table,
Method = "GET"
});
if response.Success then
local TableBody = HttpService:JSONDecode(response.Body)
for index, v in pairs(TableBody.data) do
print(v.id)
if v.id == MattQId then
print("Player is following MattQ")
return
end
end
end
print("player is not following MattQ")
end
script.Parent.Triggered:Connect(checkFollowing)