I want to get all the ids of the outfits so i can load there avatars
my issue is that i get this error HttpService is not allowed to access ROBLOX resources
so i am asking for another way to do this.
Current Code:
game:GetService("ReplicatedStorage"):WaitForChild("GetAvatar").OnServerEvent:Connect(function(plr,url)
local suc,err = pcall(function()
local HttpService = game:GetService("HttpService")
local request = HttpService:GetAsync(url)
local decoded = HttpService:JSONDecode(request)
if not decoded.data then
return warn("Unable to get outfits.")
else
print(decoded.data)
end
end)
if err then
warn(err)
end
end)
the image attached is what is meant by “outfits”