#Someone can say me how to do : if player follow this player then ...

1 messages · Page 1 of 1 (latest)

toxic basin
#

Just constantly measure the distances between 2 players

#

And please type with better grammar lol

merry thistle
storm fossil
toxic basin
#

So if I don't / can't provide further help they know that it might be a factor

merry thistle
merry thistle
junior ermine
toxic basin
#

AI can be very unreliable sometimes so take that into consideration

#

but basically it gave me a script and I used my own user id and a famous creator (Cheedaman) just to test it

local HttpService = game:GetService("HttpService")

local YOUR_USER_ID = 398942793 -- Replace with your user ID
local TARGET_USER_IDS = {40185128} -- Replace with the user IDs you want to check

-- Create a comma-separated string for the user IDs
local userIdsString = table.concat(TARGET_USER_IDS, ",")

local url = "https://friends.roblox.com/v1/users/" .. YOUR_USER_ID .. "/followings?userIds=" .. userIdsString

local success, response = pcall(function()
    return HttpService:GetAsync(url)
end)

if success then
    local data = HttpService:JSONDecode(response)
    for _, user in ipairs(data.data) do
        if user.isFollowing then
            print("You are following user with ID:", user.userId)
        end
    end
else
    warn("Failed to get following data:", response)
end

output said "Failed to get following data: HttpService is not allowed to access ROBLOX resources"

toxic basin
junior ermine
toxic basin
#

What?

junior ermine