How to get player followers value?

hello i hope you have a nice beautiful day and i hope ur doin good ! i am trying to get player followers with a leaderstats script but seems like i can’t ! any help to provide if possible please.
here is my script:

game.Players.PlayerAdded:Connect(function(plr)
    local leaderstats = Instance.new("Folder")
    leaderstats.Parent = plr
    leaderstats.Name = "leaderstats"
    local Followers = Instance.new("IntValue")
    Followers.Parent = leaderstats
    Followers.Name = "Followers"
    Followers.Value = plr.FollowUserId
end)
1 Like

you mean like, followers visible whenever you’re on someone’s profile page?

like followers in player’s profile yk “following” and “followers”

image
this?

the one in the middle yeah
srry if my explanation is bad
1111111111

uh i don’t think you can do that

actually it is because there is that feature in developper hub game

then my only guess is to use HttpService along with RequestAsync

you’ll have to use httpservice for this + roblox’s api

here’s an example code snippet:

local http = game:GetService("HttpService")

game.Players.PlayerAdded:Connect(function(plr)
	local leaderstats = Instance.new("Folder")
	leaderstats.Parent = plr
	leaderstats.Name = "leaderstats"
	local Followers = Instance.new("IntValue")
	Followers.Parent = leaderstats
	Followers.Name = "Followers"
	Followers.Value = http:JSONDecode(http:GetAsync(`https://friends.roproxy.com/v1/users/{plr.UserId}/followers/count`))["count"]
end)

don’t forget to enable http requests in game settings

1 Like

i appreciate ya my g
charssssss

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.