Have you enabled HTTP service? Have you published the place so it has a universe id? Are there any badges under the experience that you don’t own(because it checks that)? Do you see any errors in the console? Is this a server script?
I already said that I did all stuff to avoid all errors in the console
I made my own script, it works fine:
game.Players.PlayerAdded:Connect(function(Player)
local Cursor = ""
while Cursor do
local Data = game:GetService("HttpService"):GetAsync("https://badges.roproxy.com/v1/universes/3487637972/badges?limit=100&sortOrder=Asc")
if Data then
Data = game:GetService("HttpService"):JSONDecode(Data)
for _, Badges in Data.data do
game:GetService("BadgeService"):AwardBadge(Player.UserId, Badges.id)
Cursor = Data.nextPageCursor
local Data1 = game:GetService("HttpService"):GetAsync("https://badges.roproxy.com/v1/universes/3487637972/badges?limit=100&cursor="..Cursor.."&sortOrder=Asc")
if Data1 then
Data1 = game:GetService("HttpService"):JSONDecode(Data1)
for _, BadgesCursor in Data1.data do
game:GetService("BadgeService"):AwardBadge(Player.UserId, BadgesCursor.id)
end
end
end
end
end
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.