A non-replicated service that handles asset-related queries to the Roblox web API.
- Memory category
- Instances
- Own members
- 39
- Inherited members
- 75
- Subclasses
- 0
- Siblings
- 608
Properties24
Property categoryBehavior
- Determines if an
Instanceand its descendants can be cloned usingInstance:Clone(), and can be saved/published. - Deprecated: This deprecated property is a variant of
Instance.Archivablewhich should be used instead.Use Archivable instead.
Property categoryData
Property categoryPermissions
- The set of capabilities allowed to be used for scripts inside this container.
- Indicates whether the instance is inside a sandboxed container.
- When enabled, the instance can only access abilities in its
Capabilitieslist.
Defined byAssetService1
Property categoryBehavior
AssetService.AllowInsertFreeAssets: boolean Controls whetherAssetService:LoadAssetAsync()can load assets that are not owned by the experience creator.
No properties match the filters.
Methods76
Object:GetPropertyChangedSignal( property: string): RBXScriptSignal Get an event that fires when a given property of the object changes.Parameters Parameter Description property: stringThe property to connect to.Returns Type Description RBXScriptSignalA signal that fires whenever the property changes.- Returns true if an object's class matches or inherits from a given class.
Parameters Parameter Description className: stringThe class against which the Object's class will be checked. Case-sensitive.Returns Type Description booleanDescribes whether the Object's class matched or is a subclass of the given class. - Deprecated: This deprecated function is a variant of
Object:IsA()which should be used instead.Parameters Parameter className: stringReturns Type booleanUse IsA instead.
- Applies a tag to the instance.
Parameters Parameter Description tag: stringThe tag to apply to the instance. - This method destroys all of an instance's children.
- Create a copy of an instance and all its descendants, ignoring instances that are not
Archivable.Returns Type Description InstanceA copy of the instance, ornilif the instance is notArchivable. - Sets the
Instance.Parentproperty tonil, locks theInstance.Parentproperty, disconnects all connections, and callsDestroy()on all children. Instance:FindFirstAncestor( name: string): Instance Returns the first ancestor of theInstancewhoseInstance.Nameis equal to the given name.Parameters Parameter Description name: stringTheInstance.Nameto be looked for.Instance:FindFirstAncestorOfClass( className: string): Instance Returns the first ancestor of theInstancewhoseObject.ClassNameis equal to the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstAncestorWhichIsA( className: string): Instance Returns the first ancestor of theInstancefor whomObject:IsA()returns true for the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstChild( name: string, recursive: boolean? = false): Instance Returns the first child of theInstancefound with the given name.Parameters Parameter Description name: stringTheInstance.Nameto be searched for.recursive: boolean? = falseWhether or not the search should be conducted recursively.Instance:FindFirstChildOfClass( className: string): Instance Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstChildWhichIsA(className: string,recursive: boolean? = false,): Instance Returns the first child of theInstancefor whomObject:IsA()returns true for the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be searched for.recursive: boolean? = falseWhether or not the search should be conducted recursively.Instance:FindFirstDescendant( name: string): Instance Returns the first descendant found with the givenInstance.Name.Parameters Parameter Description name: stringTheInstance.Nameto search for.- Returns the
Actorassociated with the Instance, if any. Instance:GetAttribute( attribute: string): any Returns the value which has been assigned to the given attribute name.Parameters Parameter Description attribute: stringThe name of the attribute being retrieved.Returns Type Description anyThe value which has been assigned to the given attribute name. If no attribute has been assigned,nilis returned.Instance:GetAttributeChangedSignal( attribute: string): RBXScriptSignal Returns an event that fires when the given attribute changes.Parameters Parameter Description attribute: stringThe name of the specified attribute for which the change signal is being returned.Returns Type Description RBXScriptSignalAn event that fires when the given attribute changes.- Returns a dictionary of the instance's attributes.
Returns Type Description { [string]: any }A dictionary of string → variant pairs for each attribute where the string is the name of the attribute and the variant is a non-nil value. - Returns an array containing all of the instance's children.
Returns Type Description { Instance }An array containing the instance's children. Instance:GetDebugId( scopeLength: number? = 4): string Returns a coded string of the debug ID used internally by Roblox.Parameters Parameter Description scopeLength: number? = 4The scope length.Returns Type Description stringThe Debug ID string.- Returns an array containing all of the descendants of the instance.
Returns Type Description { Instance }An array containing the instance's descendants. - Returns a string describing the instance's ancestry.
- Returns the styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified.
Parameters Parameter Description name: stringName of the property to query.selector: string?Optional selector for the pseudo instance you are targeting on the instance.Returns Type Description anyThe styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified. Instance:GetStyledPropertyChangedSignal( property: string): RBXScriptSignal Returns an event that fires when the given style property changes on the instance.Parameters Parameter Description property: stringName of the style property for which to listen for changes.Returns Type Description RBXScriptSignalEvent that fires when the given style property changes.- Gets an array of all tags applied to the instance.
Returns Type Description { any }An array of strings, each representing a tag applied to the instance. - Check whether the instance has a given tag.
Parameters Parameter Description tag: stringThe tag to check for on the instance.Returns Type Description booleantrueif the instance has the given tag,falseotherwise. Instance:IsAncestorOf( descendant: Instance): boolean Returns true if anInstanceis an ancestor of the given descendant.Instance:IsDescendantOf( ancestor: Instance): boolean Returnstrueif anInstanceis a descendant of the given ancestor.Instance:IsPropertyModified( property: string): boolean Returnstrueif the value stored in the specified property is not equal to the code-instantiated default.Parameters Parameter Description property: stringName of the property to query.Returns Type Description booleanBoolean indicating whether the property is modified from its code‑instantiated default.Instance:QueryDescendants( selector: string): { Instance } Returns an array containing all descendants of the instance that match theselectorstring.Parameters Parameter Description selector: stringSelector string used to filter elements.Returns Type Description { Instance }An array of instances (empty if nothing matched the selector).- Removes a tag from the instance.
Parameters Parameter Description tag: stringThe tag to remove from the instance. Instance:ResetPropertyToDefault( property: string) Resets a property to its default value.Parameters Parameter Description property: stringName of the property to reset.Instance:SetAttribute( attribute: string, value: any) Sets the attribute with the given name to the given value.Instance:WaitForChild( childName: string, timeOut: number): Instance Returns the child of theInstancewith the given name. If the child does not exist, it will yield the current thread until it does.Parameters Parameter Description childName: stringTheInstance.Nameto be looked for.timeOut: numberAn optional time out parameter.- Deprecated: This item is deprecated in favor of
Instance:Destroy()andInstance:ClearAllChildren(). If you must remove an object from the game, and wish to use the object later, set itsParentproperty tonilinstead of using this method.
Sets the object'sParenttonil, and does the same for all its descendants. - Deprecated: This item has been superseded by
Instance:GetChildren()which should be used in all new work.
Returns an array of the object's children.Returns Type Description { Instance }Array of child objects/instances.Use GetChildren instead.
- Deprecated: This deprecated function is a variant of
Instance:Clone()which should be used instead.Returns Type InstanceUse Clone instead.
- Deprecated: This deprecated function is a variant of
Instance:Destroy()which should be used instead.Use Destroy instead.
Instance:findFirstChild( name: string, recursive: boolean? = false): Instance Deprecated: This deprecated function is a variant ofInstance:FindFirstChild()which should be used instead.Returns Type InstanceUse FindFirstChild instead.
- Deprecated: This deprecated function is a variant of
Instance:GetChildren()which should be used instead.Returns Type { Instance }Use GetChildren instead.
Instance:isDescendantOf( ancestor: Instance): boolean Deprecated: This deprecated function is a variant ofInstance:IsDescendantOf()which should be used instead.Parameters Parameter ancestor: InstanceReturns Type booleanUse IsDescendantOf instead.
- Deprecated: This deprecated function is a variant of
Instance:Remove()which has also been deprecated. Neither function should be used in new work.Use Remove instead.
Defined byAssetService34
AssetService:CachePartOperationsAsync( partOperations: { any }) Parameters Parameter partOperations: { any }Parameters Parameter content: ContentReturns Type boolean- Modifies an existing
Decalto contain a composite PBR textures created by layering the provided textures in the order they are provided in thelayersarray. Textures layer based on the alpha value of the color map. AssetService:CreateAssetAsync(object: Object,assetType: Enum.AssetType,requestParameters: { [string]: any }? = nil,): ...any Uploads a new asset to Roblox from the given object.Parameters Parameter Description object: ObjectThe object to be created as an asset.assetType: Enum.AssetTypeCurrently supported types are:AssetType.Model– withobjectas any validInstanceroot.AssetType.Plugin– withobjectas any validInstanceroot.AssetType.Mesh– withobjectas any validEditableMeshroot.AssetType.Image– withobjectas any validEditableImageroot.
requestParameters: { [string]: any }? = nilOptions table containing asset metadata:Name– Name of the asset as a string. Defaults to[object.Name].Description– Description of the asset as a string. Defaults to"Created with AssetService:CreateAssetAsync".CreatorId– ID of the asset creator as a number. Defaults to the logged in Roblox Studio user for Plugin context. Required for Open Cloud Luau Execution context.CreatorType–AssetCreatorTypeindicating the type of asset creator. Defaults toAssetCreatorType.Userin Plugin context. Required for Open Cloud Luau Execution context.IsPackage– Boolean value, only applicable to theAssetType.Modeltype. Defaults totrue.
Returns Type Description ...anyTheCreateAssetResultand asset ID pair if successful.AssetService:CreateAssetVersionAsync(object: Object,assetType: Enum.AssetType,assetId: number,requestParameters: { [string]: any }? = nil,): ...any Uploads a new version for an existing asset from the given object.Parameters Parameter Description object: ObjectThe object to be created as an asset.assetType: Enum.AssetTypeCurrently supported types are:AssetType.Model– withobjectas any validInstanceroot.AssetType.Plugin– withobjectas any validInstanceroot.AssetType.Mesh– withobjectas any validEditableMeshroot.AssetType.Image– withobjectas any validEditableImageroot.
assetId: numberThe ID of the asset for the new version.requestParameters: { [string]: any }? = nilOptions table containing asset metadata:Name– Astring. Name of the asset. Default: object.Name.Description– Astring. Description of the asset. Default: "Created with AssetService:CreateAssetAsync".CreatorId– Anumber. ID of the asset creator. Default: The logged in Roblox Studio user for Plugin context. Required for Open Cloud Luau Execution context.CreatorType– AAssetCreatorType. Type of asset creator. Default:AssetCreatorType.Userin Plugin context. Required for Open Cloud Luau Execution context.IsPackage– Abool. Only applicable to theAssetType.Modeltype. Default: true.
Returns Type Description ...anyTheCreateAssetResultand asset version number pair if successful.AssetService:CreateDataModelContentAsync(content: Content,options: { [string]: any }?,): ...any Creates ephemeral,DataModel-scoped content from the provided content input.Parameters Parameter Description content: ContentReference to the input content. Currently, this only supportsContentwrapping aEditableMeshorEditableImage.options: { [string]: any }?Optional dictionary containing configuration controls for the createdDataModelcontent. Currently no controls are surfaced and this parameter exists for future functionality.AssetService:CreateDecalAsync( content: { [string]: any }): Decal Creates a newDecalobject using the providedEditableImagecontent maps.Parameters Parameter Description content: { [string]: any }Dictionary containing one or more of the following key-value pairs. Each value must be aContentobject containing aEditableImage:TextureContent— The decal's color texture.NormalMapContent— The decal's normal map.MetalnessMapContent— The decal's metalness map.RoughnessMapContent— The decal's roughness map.
AssetService:CreateEditableImage( editableImageOptions: { [string]: any }?): EditableImage Creates a newEditableImage.Parameters Parameter Description editableImageOptions: { [string]: any }?Options table containing controls for the method:Size– AVector2that specifies the image's desired width and height.
Returns Type Description EditableImageThe newEditableImage, ornilif the device-specific editable memory budget is exhausted.AssetService:CreateEditableImageAsync(content: Content,editableImageOptions: { [string]: any }?,): EditableImage Creates a newEditableImageobject populated with the given image.Parameters Parameter Description content: ContentReference to asset content stored externally or as an object within the place, wrapping a single value of one of the supportedContentSourceTypevalues.editableImageOptions: { [string]: any }?Table containing options for the createdEditableImage. Currently no options are available since resizing viaSizeis not supported.Returns Type Description EditableImageA newEditableImagecontaining the provided image.AssetService:CreateEditableImageFromDownloadAsync( url: string): EditableImage Parameters Parameter url: stringReturns Type EditableImageAssetService:CreateEditableMesh( editableMeshOptions: { [string]: any }?): EditableMesh Creates a new, emptyEditableMesh.Parameters Parameter Description editableMeshOptions: { [string]: any }?Table containing options for the createdEditableMesh. Currently no options are available sinceFixedSizewill always befalsefor empty editable meshes.Returns Type Description EditableMeshThe newEditableMesh, ornilif the device-specific editable memory budget is exhausted.AssetService:CreateEditableMeshAsync(content: Content,editableMeshOptions: { [string]: any }?,): EditableMesh Returns a newEditableMeshobject created from an existing mesh content ID.Parameters Parameter Description content: ContentReference to asset content stored externally or as an object within the place, wrapping a single value of one of the supportedContentSourceTypevalues.editableMeshOptions: { [string]: any }?Options table containing controls for the method:FixedSize– Abool. Default value istrue, and the returnedEditableMeshwill not allow you to add or remove vertices, only modify their values. Set tofalseif the ability to change the mesh topology is required, at the expense of using more memory.
Returns Type Description EditableMeshThe newEditableMeshobject.AssetService:CreateMeshPartAsync(meshContent: Content,options: { [string]: any }? = nil,): MeshPart Creates a newMeshPartwith a specified mesh ID and an optional table of fidelity values.Parameters Parameter Description meshContent: ContentReference to asset content stored externally or as an object within the place, wrapping a single value of one of the supportedContentSourceTypevalues.options: { [string]: any }? = nilOptions table containing one or more controls for the method:CollisionFidelity– The value ofCollisionFidelityin the resulting part. Defaults toCollisionFidelity.Defaultif the option is absent or theoptionstable isnil.RenderFidelity– The value ofRenderFidelityin the resulting part. Defaults toRenderFidelity.Automaticif the option is absent or theoptionstable isnil.FluidFidelity– The value ofFluidFidelityin the resulting part. Defaults toFluidFidelity.Automaticif the option is absent or theoptionstable isnil.
AssetService:CreatePlaceAsync(placeName: string,templatePlaceID: number,description: string? = "",): number Clones a place through the giventemplatePlaceID.Parameters Parameter Description placeName: stringName of the new place.templatePlaceID: numberPlaceIdof the place to clone.description: string? = ""Description of the new place.Returns Type Description numberPlaceIdof the new place.AssetService:CreatePlaceInPlayerInventoryAsync(player: Instance,placeName: string,templatePlaceID: number,description: string? = "",): number Clones a place through the giventemplatePlaceIDand puts it into the inventory of the given player.Parameters Parameter Description player: InstanceThePlayerwhose inventory receives the cloned place.placeName: stringName for the new place.templatePlaceID: numberPlaceIdof the place to clone.description: string? = ""Description for the new place.Returns Type Description numberPlaceIdof the new place.AssetService:CreateSurfaceAppearanceAsync( content: { [string]: any }): SurfaceAppearance Creates a newSurfaceAppearanceobject using the provided content maps.Parameters Parameter Description content: { [string]: any }Dictionary containing the following key-value pairs:ColorMap— AContentobject that contains the color map. Default isnil.MetalnessMap— AContentobject that contains the metalness map. If more than one channel is present, only the red channel is used. Default isnil.NormalMap— AContentobject that contains the normal map. Default isnil.RoughnessMap— AContentobject that contains the roughness map. If more than one channel is present, only the red channel is used. Default isnil.EmissiveMask— AContentobject that contains the emissive mask. If more than one channel is present, only the red channel is used. Default isnil.
Returns Type Description SurfaceAppearanceA newSurfaceAppearanceinstance with the given maps from thecontentparameter.Parameters Parameter text: stringReturns Type ContentAssetService:CreateTextureAsync( content: { [string]: any }): Texture Parameters Parameter content: { [string]: any }Returns Type TextureParameters Parameter serializedInstance: stringReturns Type InstanceAssetService:FetchAssetWithFormat(url: string,assetFormat: string,options: { [string]: any }?,): { Instance } Parameters Parameter url: stringassetFormat: stringoptions: { [string]: any }?Returns Type { Instance }- Returns an array of asset IDs that are contained in a specified package.
Parameters Parameter Description packageAssetId: numberThe asset ID of the package to query.Returns Type Description { any }Asset IDs that are contained in a specified package. - Provides relevant metadata about a specific audio source.
Parameters Parameter Description idList: { any }Array of asset or content IDs for which to retrieve metadata. Max batch size is 30.Returns Type Description { any }Array of dictionary tables in the same order as the request, where each dictionary contains the following metadata for its asset/content:AssetId(string)Title(string)Artist(string)Duration(number) in secondsAudioType(AudioSubType)
AssetIdfield for reference purposes. Additionally, if theAudioTypecannot be determined for a given asset (perhaps because it's private audio), the resulting dictionary will not contain anAudioTypeentry. AssetService:GetBundleDetailsAsync( bundleId: number): { [string]: any } Returns details of the contents of specified bundle.Parameters Parameter Description bundleId: numberThe ID of the specified bundle.Returns Type Description { [string]: any }Dictionary with the following key-value pairs containing details about the specified bundle:Id— Bundle ID (same as passedbundleIdargument)Name— Bundle nameDescription— Bundle descriptionBundleType— String representing theBundleType, for example"BodyParts"or"DynamicHead"Items— Array of items in the bundle, each with details represented through the following keys:Id— Item IDName— Item nameType— Item type such as"Asset"AssetType— String representing theAvatarAssetTypeSupportsHeadShapes— Whether the asset supports head shape swapping. Only present ifAssetTypeis"DynamicHead".
AssetService:GetGamePlacesAsync( ): Instance Returns aStandardPagesobject which contains the name andPlaceIdof places within the current experience.Returns Type Description InstanceAStandardPagesobject whose pages contain the name andPlaceIdof each place in the current experience.AssetService:GetOpaqueContentMetadataMap( opaqueContent: Content): { [string]: any } Parameters Parameter opaqueContent: ContentReturns Type { [string]: any }- Loads a
Modelinstance given its asset ID. This is the modern replacement forInsertService:LoadAsset()and supports loading third-party assets.Parameters Parameter Description assetId: numberThe asset ID number of the asset being loaded. AssetService:PromptCreatePlatformContentAsync(player: Player,object: Object,assetType: Enum.AssetType,): ...any Allows in-experience asset creation for users by prompting a publish dialog.Parameters Parameter Description player: PlayerThe user who submits an asset creation.object: ObjectThe asset to be created. Currently can't contain scripts or nest non-public assets.assetType: Enum.AssetTypeThe asset type. Currently can only beAssetType.Model.Returns Type Description ...anyThePromptCreatePlatformContentResultand asset ID pair if successful.AssetService:PromptImportAnimationClipFromVideoAsync(player: Player,progressCallback: (...any) -> ...any,): ...any Prompts the specified player to select and upload a video, which is then converted into anAnimationClip.Parameters Parameter Description player: PlayerThe player who is prompted, on their own client, to select and upload a video. The player's consent is required before the video is uploaded.progressCallback: (...any) -> ...anyA function that receives status updates (anAnimationClipFromVideoStatusvalue) while the video is uploaded and processed.Returns Type Description ...anyA tuple containing anAnimationClipFromVideoStatusdescribing the outcome and, on success, the resultingAnimationClip(nilotherwise).Parameters Parameter content: ContentReturns Type stringAssetService:SavePlaceAsync( requestParameters: { [string]: any }?) Saves the state of the current place.Parameters Parameter Description requestParameters: { [string]: any }?Optional dictionary that includesSaveWithoutPublish, a boolean indicating whether to save with publish or without publish, andPlaceId, the destination place ID to save over. An example usage would be: AssetService:SavePlaceAsync({PlaceId = 1, SaveWithoutPublish = true}). If PlaceId is not provided, the default behavior will save over the current original place which is calling SavePlaceAsync. If SaveWithoutPublish is not provided, the default behavior is SaveWithoutPublish=false.AssetService:SearchAudioAsync( searchParameters: AudioSearchParams): AudioPages Finds audio assets matching a variety of search criteria.Parameters Parameter Description searchParameters: AudioSearchParamsAAudioSearchParamsobject defining the search criteria such as keyword, title, artist, audio type, and duration range.Returns Type Description AudioPagesAnAudioPagesobject containing the paginated results of the audio search.- Deprecated: Use
GetAssetIdsForPackageAsync()instead.
Returns an array of asset IDs that are contained in a specified package.Parameters Parameter Description packageAssetId: numberThe asset ID of the package to query.Returns Type Description { any }Asset IDs that are contained in a specified package.Use GetAssetIdsForPackageAsync instead.
- Deprecated: This item is deprecated and no longer functions correctly. Do not use it for new work.
Returns the UserId of the account who created the creationID asset.Parameters Parameter Description creationID: numberThe asset ID to look up for creator information.Returns Type Description numberThePlayer.UserIdof the account that created the asset.Use GetProductInfo instead.
AssetService:SearchAudio( searchParameters: AudioSearchParams): AudioPages Deprecated: UseSearchAudioAsync()instead.
Finds audio assets matching a variety of search criteria.Parameters Parameter Description searchParameters: AudioSearchParamsAAudioSearchParamsobject defining the search criteria such as keyword, title, artist, audio type, and duration range.Returns Type Description AudioPagesAnAudioPagesobject containing the paginated results of the audio search.Use SearchAudioAsync instead.
No methods match the filters.
Events14
Object.Changed: RBXScriptSignal<( property: string)> Fires immediately after a property of the object changes, with some limitations.Parameters Parameter property: string
Instance.AncestryChanged: RBXScriptSignal<( child: Instance, parent: Instance)> Fires when theInstance.Parentproperty of this object or one of its ancestors is changed.Instance.AttributeChanged: RBXScriptSignal<( attribute: string)> Fires whenever an attribute is changed on theInstance.Parameters Parameter attribute: stringInstance.ChildAdded: RBXScriptSignal<( child: Instance)> Fires after an object is parented to thisInstance.Parameters Parameter child: InstanceInstance.ChildRemoved: RBXScriptSignal<( child: Instance)> Fires after a child is removed from thisInstance.Parameters Parameter child: InstanceInstance.DescendantAdded: RBXScriptSignal<( descendant: Instance)> Fires after a descendant is added to theInstance.Parameters Parameter descendant: InstanceInstance.DescendantRemoving: RBXScriptSignal<( descendant: Instance)> Fires immediately before a descendant of theInstanceis removed.Parameters Parameter descendant: Instance- Fires immediately before (or is deferred until after) the instance is destroyed via
Instance:Destroy(). - Fires whenever any style property is changed on the instance, including when a property is set to
nil. Instance.childAdded: RBXScriptSignal<( child: Instance)> Deprecated: This deprecated event is a variant ofInstance.ChildAddedwhich should be used instead.Parameters Parameter child: InstanceUse ChildAdded instead.
Defined byAssetService4
AssetService.AudioMetadataFailedResponse: RBXScriptSignal<( requestid: number)> Parameters Parameter requestid: numberAssetService.AudioMetadataRequest: RBXScriptSignal<(requestid: number,request: { any },)> AssetService.AudioMetadataResponse: RBXScriptSignal<(requestid: number,response: { any },)> AssetService.OpenPublishResultModal: RBXScriptSignal<( resultType: Enum.PromptCreatePlatformContentResult)> Parameters Parameter resultType: Enum.PromptCreatePlatformContentResult
No events match the filters.