GetBranches
Return an array of places in this game using GetGamePlacesAsync.
-- Print all branches in this game.
local branches = GetBranches()
for index, branch in branches do
print(`Branch "{branch.Name}" PlaceId: {branch.PlaceId}`)
end
Return an array of places in this game using GetGamePlacesAsync.
-- Print all branches in this game.
local branches = GetBranches()
for index, branch in branches do
print(`Branch "{branch.Name}" PlaceId: {branch.PlaceId}`)
end
{
"functions": [],
"properties": [],
"types": [],
"name": "GetBranches",
"desc": "Return an array of places in this game using GetGamePlacesAsync.\n\n```lua\n--\tPrint all branches in this game.\nlocal branches = GetBranches()\nfor index, branch in branches do\n\tprint(`Branch \"{branch.Name}\" PlaceId: {branch.PlaceId}`)\nend\n```",
"source": {
"line": 24,
"path": "src/shared/core/lib/GetBranches.luau"
}
}