AssetService

extends Instance

Class fields

FieldXML typeValue
NamestringAssetService
summarystringA service used to set and get information about assets stored on the Roblox website.

Functions

3
SetAssetRevertUrl
(revertUrl: string) → void
FieldXML typeValue
NamestringSetAssetRevertUrl
SetAssetVersionsUrl
(versionsUrl: string) → void
FieldXML typeValue
NamestringSetAssetVersionsUrl
SetPlaceAccessUrl
(accessUrl: string) → void
FieldXML typeValue
NamestringSetPlaceAccessUrl

Yield functions

9
CreatePlaceAsync
(placeName: string, templatePlaceID: int, description: string = …) → int
FieldXML typeValue
NamestringCreatePlaceAsync
CreatePlaceInPlayerInventoryAsync
(player: Instance, placeName: string, templatePlaceID: int, description: string = …) → int
FieldXML typeValue
NamestringCreatePlaceInPlayerInventoryAsync
GetAssetVersions
(placeId: int, pageNum: int = …) → Dictionary
FieldXML typeValue
NamestringGetAssetVersions
summarystringGiven a placeID, this function will return a table with the version info of the place. An optional arg of page number can be used to page through all revisions (a single page may hold about 50 revisions).
GetCreatorAssetID
(creationID: int) → int
FieldXML typeValue
NamestringGetCreatorAssetID
summarystringGiven a creationID, this function will return the asset that created the creationID. If no other asset created the given creationID, 0 is returned.
GetGamePlacesAsync
() → Instance
FieldXML typeValue
NamestringGetGamePlacesAsync
GetPlacePermissions
(placeId: int) → Dictionary
FieldXML typeValue
NamestringGetPlacePermissions
summarystringGiven a placeID, this function will return a table with the permissions of the place. Useful for determining what kind of permissions a particular user may have for a place.
RevertAsset
(placeId: int, versionNumber: int) → bool
FieldXML typeValue
NamestringRevertAsset
summarystringReverts a given place id to the version number provided. Returns true if successful on reverting, false otherwise.
SavePlaceAsync
() → void
FieldXML typeValue
NamestringSavePlaceAsync
SetPlacePermissions
(placeId: int, accessType: AccessType = …, inviteList: Array = …) → bool
FieldXML typeValue
NamestringSetPlacePermissions
summarystringSets the permissions for a placeID to the place accessType. An optional table (inviteList) can be included that will set the accessType for only the player names provided. The table should be set up as an array of usernames (strings).