You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I am trying to create a game that randomly finds places on Roblox. I am trying to filter places that are private.
What is the issue? Include screenshots / videos if possible!
multiget-playability-status in the Roblox API always returns false, even on public games, as it requires a roblox cookie. same with multiget-place-details
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Yes, I have tried a lot of solutions, such as multiget-place-details and multiget-playability-status but those require an authenticated user.
Code to check if it is private:
function getPlayability(universeId)
local url = "https://games.roproxy.com/v1/games/multiget-playability-status?
universeIds="..universeId
return HttpService:JSONDecode(HttpService:GetAsync(url))[1].isPlayable
end
No, not exactly. I am randomly generating PlaceIds and validating them using MarketPlaceService.
I am then getting the universeId using this code, then checking Playability.
function getUniverse(placeId)
local endpoint = "https://apis.roproxy.com/universes/v1/places/"..placeId.."/universe"
local id = GET(endpoint).universeId
end
So maybe it is erroring, or maybe isPlayable is actually nil and it is returning an error in the json. Have you printed out the json and not just the value isPlayable?