#Someone can say me how to do : if player follow this player then ...
1 messages · Page 1 of 1 (latest)
What if English isn't their first language?
Translate better ig
I'm letting them know that it's harder for me to understand the issue they are having
So if I don't / can't provide further help they know that it might be a factor
Which is completely fair, but maybe in the future something like "I don't understand, could you reword that?" may be a little more kind
Well I was being blunt
"I don't understand" is plenty blunt lol
No, I meant how to check if the player is following another player.
this might be due to my limited knowledge, but with a conversation I had with chatgpt it seems it is very hard to do this due to roblox privacy settings. Chatgpt suggested using external means in order to access followers
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"
Thanks
This script will not work just so you know
I use a script google
What?
I find a another way