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
notsad2
(nots7d)
July 27, 2024, 2:06pm
#2
you mean like, followers visible whenever you’re on someone’s profile page?
like followers in player’s profile yk “following” and “followers”
the one in the middle yeah
srry if my explanation is bad
1111111111
notsad2
(nots7d)
July 27, 2024, 2:33pm
#6
uh i don’t think you can do that
actually it is because there is that feature in developper hub game
notsad2
(nots7d)
July 27, 2024, 2:35pm
#8
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
system
(system)
Closed
August 10, 2024, 2:59pm
#11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.