i want to make a door thats locked until you favorite the game but im having issues with finding out if a player has favorited the game or not. i want to do this using http service and not avatar editor service because i dont want to have to request to access the users inventory when they join.
local BaseUrl = "https://www.roproxy.com/users/favorites/list-json?assetTypeId=%d&itemsPerPage=%d&pageNumber=%d&userId=%d"
local function GetFavorites(player, assetTypeId, itemsPerPage, pageNumber)
local Url = string.format(BaseUrl, assetTypeId, itemsPerPage, pageNumber, player.UserId)
print(Url)
local Success, Result = pcall(HttpService.GetAsync, HttpService, Url)
if not Success then warn(Result) return end
Success, Result = pcall(HttpService.JSONDecode, HttpService, Result)
if not Success then warn(Result) return end
return Result
end
this is the code im using to check but im getting an http error saying invalid redirect, any potential solutions?