I’ve seen several games award the player when they follow the developers on Roblox, and was wondering how I might do this?
One of the best examples of this is Oaklands by Typical Developers, Screenshots attached
I’ve seen several games award the player when they follow the developers on Roblox, and was wondering how I might do this?
One of the best examples of this is Oaklands by Typical Developers, Screenshots attached
Rewards through Liking/Favoriting/Invites - #9 by XAXA
This is pretty complicated and apparently it might be against the ToS too.
If you still want to go ahead, it looks like you will want to use RoProxy. Here’s a post explaining how to:
local HttpService = game:GetService("HttpService")
local CreatorId = 108557439 --joshuaThe5th's ID (you)
local function IsPlayerFollowing(PlayerId)
--check who the player is following
local Success, Result = pcall(HttpService.GetAsync, HttpService, "https://friends.roproxy.com/v1/users/"..PlayerId.."/followings?limit=100&sortOrder=Asc")
if Success then
local Success2, Result2 = pcall(HttpService.JSONDecode, HttpService, Result)
if Success2 then
for _, Following in ipairs(Result2.data) do
if Following.id == CreatorId then
return true
end
end
return false
else
warn(Result2)
end
else
warn(Result)
end
end
print(IsPlayerFollowing(1112206535)) --mattcarter0311's ID (one of your followers), true
print(IsPlayerFollowing(261)) --Shedletsky's ID (not one of your followers), false
The section that was quoted in the post has long since been removed.
For getting if the player is following, you would need to utilise APIs and proxys (as Forummer’s post shows.)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.