AssetService:GetGamePlacesAsync
Returns a StandardPages object which contains the name and PlaceId of places within the current experience.
Returns
Code Samples
The following code prints the name and PlaceId of each place in the experience.
AssetService:GetGamePlacesAsync
local AssetService = game:GetService("AssetService")
local placePages = AssetService:GetGamePlacesAsync()
while true do
for _, place in placePages:GetCurrentPage() do
print("Name:", place.Name)
print("PlaceId:", place.PlaceId)
end
if placePages.IsFinished then
break
end
placePages:AdvanceToNextPageAsync()
end