A service to support developer avatar creators.
- Memory category
- Instances
- Own members
- 33
- Inherited members
- 75
- Subclasses
- 0
- Siblings
- 608
Properties23
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.
No properties match the filters.
Methods62
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 byAvatarCreationService20
AvatarCreationService:AutoSetupAvatarAsync(player: Player,autoSetupParams: { [string]: any },progressCallback: ((...any) -> ...any)?,): string Automatically sets up a customModeland/or avatar accessories.Parameters Parameter Description player: PlayerThePlayerthat the avatar is being set up for.autoSetupParams: { [string]: any }A table containing the arguments. Type:type AutoSetupAccessory = { AccessoryType: Enum.AccessoryType, IsLayered: bool, Instance: Model, } type AutoSetupParams = { Body: Model?, Accessories: {AutoSetupAccessory}, }progressCallback: ((...any) -> ...any)?Optional callback function that will be invoked periodically with a progressInfo table with the overall progress (from 0 to 1). Type:(progressInfo: { Progress: number }) -> ()Returns Type Description stringA unique identifier for the generated avatar.Parameters Parameter model: ModelReturns Type FolderParameters Parameter serializedModel: stringReturns Type InstanceAvatarCreationService:GenerateAvatar2DPreviewAsync(avatarGeneration2dPreviewParams: { [string]: any },progressCallback: ((...any) -> ...any)?,): string Creates a 2D avatar preview and returns apreviewId.Parameters Parameter Description avatarGeneration2dPreviewParams: { [string]: any }A table of arguments for 2D preview generation. Type:avatarGeneration2dPreviewParams: {SessionId: string, FileId: string, TextPrompt: string?}progressCallback: ((...any) -> ...any)?Optional callback function that will be invoked periodically with a progressInfo table with the overall progress (from 0 to 1). Type:(progressInfo: { Progress: number }) -> ()Returns Type Description stringA string previewIdAvatarCreationService:GenerateAvatarAsync(avatarGenerationParams: { [string]: any },progressCallback: ((...any) -> ...any)?,): string Generates an avatar and returns a generationId.Parameters Parameter Description avatarGenerationParams: { [string]: any }A table of arguments for generating an avatar. Type:avatarGenerationParams: {SessionId: string, PreviewId: string}progressCallback: ((...any) -> ...any)?Optional callback function that will be invoked periodically with a progressInfo table with the overall progress (from 0 to 1). Type:(progressInfo: { Progress: number }) -> ()Returns Type Description stringA string generationId.- Gets the avatar creation token details for a list of avatar creation tokens at once.
Parameters Parameter Description tokenIds: { any }The list of avatar creation token IDs to get details of.Returns Type Description { any }Array of avatar creation token details as outlined above. AvatarCreationService:GetValidationRules( ): { [string]: any } Gets data regarding rules that assets must abide by to pass UGC validation.Returns Type Description { [string]: any }Dictionary of validation rules as detailed above.AvatarCreationService:HandleSelfieConsentResult( consentAccepted: boolean) Parameters Parameter consentAccepted: booleanAvatarCreationService:LoadAvatar2DPreviewAsync( previewId: string): EditableImage Load an AvatarGeneration 2D preview on the client from a previewId.Parameters Parameter Description previewId: stringLoad the preview generated fromGenerateAvatar2DPreviewAsync().Returns Type Description EditableImageAnEditableImagecontaining the preview image.AvatarCreationService:LoadGeneratedAvatarAsync( generationId: string): HumanoidDescription Loads a generated avatar using an avatar generation ID.Parameters Parameter Description generationId: stringA unique string that identifies the generated avatar, as returned byAutoSetupAvatarAsync().Returns Type Description HumanoidDescriptionTheHumanoidDescriptionof the generated avatar, which includes all the generated instances and properties.AvatarCreationService:PrepareAvatarForPreviewAsync( humanoidModel: Model) Prepares in-experience avatar for preview.Parameters Parameter Description humanoidModel: ModelTheModelcontainingMeshPartchildren withWrapDeformerinstances that require HSR data updating for preview.AvatarCreationService:PromptCreateAvatarAssetAsync(tokenId: string,player: Player,assetInstance: Instance,assetType: Enum.AvatarAssetType,): ...any Parameters Parameter Description tokenId: stringThe ID of a creation token. The token must be valid in that the universe the method is called from is the same universe the token was created for. Furthermore, the token creator must maintain ID verification and Roblox Premium (opens in a new tab). To create a token for utilization in this API, follow the token creation (opens in a new tab) process. The token's creation type must match theAvatarAssetTypepassed in to the method.player: PlayerThePlayerintended to be presented with the creation prompt.assetInstance: InstanceTheInstanceof the avatar asset intended for creation.assetType: Enum.AvatarAssetTypeTheAvatarAssetTypeof the expected creation. This must match the creation type of the provided token.Returns Type Description ...anyA tuple containing, in order:- An
PromptCreateAssetResultindicating the result of the creation prompt. - A string result. In the case of
PromptCreateAssetResult.Success, this will indicate the asset ID. In the case of any failure enum, this will indicate the resultant error message.
- An
AvatarCreationService:PromptCreateAvatarAsync(tokenId: string,player: Player,humanoidDescription: HumanoidDescription,): ...any Prompts aPlayerto purchase and create an avatar from aHumanoidDescription.Parameters Parameter Description tokenId: stringThe ID of an avatar creation token. The token must be valid in that the universe the method is called from is the same universe the token was created for. Furthermore, the token creator must maintain ID verification and Roblox Premium (opens in a new tab). To create a token for utilization in this API, follow the token creation (opens in a new tab) process.player: PlayerThePlayerintended to be presented with the creation prompt.humanoidDescription: HumanoidDescriptionTheHumanoidDescriptionof the avatar intended for creation.Returns Type Description ...anyA tuple containing, in order:- An
PromptCreateAvatarResultindicating the result of the creation prompt. - A string result. In the case of
PromptCreateAvatarResult.Success, this will indicate the bundle ID. In the case of any failure enum, this will indicate the resultant error message. - A secondary optional string result. In the case of
PromptCreateAvatarResult.Success, this will indicate the outfit ID. In the case of any failure enum, this will benil.
- An
AvatarCreationService:PromptCreateMakeupAsync(player: Player,makeupAssetEntries: { any },thumbnailHeadColor: Color3? = nil,): ...any Returns Type ...any- Prompt the
Playerto take a selfie and return the FileId.Returns Type Description stringA string FileId of the selfie on success, or an error string describing the reason for failure. AvatarCreationService:RequestAvatarGenerationSessionAsync(player: Player,callback: (...any) -> ...any,): ...any Request an AvatarGeneration session for aPlayer.Parameters Parameter Description player: PlayerThePlayerto request an AvatarGeneration session for.callback: (...any) -> ...anyCallback function that is invoked with a SessionInfo table, with information about the session. Type:(SessionInfo: { SessionId: string, Allowed2DGenerations: number, Allowed3DGenerations: number, SessionTime: number }) -> ()Returns Type Description ...anyA tuple containing aRBXScriptConnectionthat can be used to cancel the session request and the estimated wait time in seconds.AvatarCreationService:ValidateUGCAccessoryAsync(player: Player,accessory: Instance,accessoryType: Enum.AccessoryType,): ...any Studio only. Runs UGC validation for anAccessoryType.Parameters Parameter Description player: PlayerThePlayervalidation is completed for.accessory: InstanceThe instance validation is run on.accessoryType: Enum.AccessoryTypeTheAccessoryTypethe instance is expected to be.Returns Type Description ...anyA tuple containing, in order:- A boolean indicating if validation was successful for the accessory.
- An optional table of strings. This includes failure reasons if validation was unsuccessful; otherwise
nilif validation was successful.
AvatarCreationService:ValidateUGCBodyPartAsync(player: Player,instance: Instance,bodyPart: Enum.BodyPart,): ...any Studio only. Runs UGC validation for anBodyPart.Parameters Parameter Description player: PlayerThePlayervalidation is completed for.instance: InstanceThe instance validation is run on.bodyPart: Enum.BodyPartBodyPartthe instance is expected to be.Returns Type Description ...anyA tuple containing, in order:- A boolean indicating if validation was successful for the body part.
- An optional table of strings. This includes failure reasons if validation was unsuccessful; otherwise
nilif validation was successful.
AvatarCreationService:ValidateUGCFullBodyAsync(player: Player,humanoidDescription: HumanoidDescription,): ...any Studio only. Runs UGC validation for a whole body.Parameters Parameter Description player: PlayerThePlayervalidation is completed for.humanoidDescription: HumanoidDescriptionHumanoidDescriptionrepresenting the body that validation is run on.Returns Type Description ...anyA tuple containing, in order:- A boolean indicating if validation was successful for the body.
- An optional table of strings. This includes failure reasons if validation was unsuccessful; otherwise
nilif validation was successful.
No methods match the filters.
Events23
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 byAvatarCreationService13
AvatarCreationService.AvatarAssetModerationCompleted: RBXScriptSignal<(assetId: number,moderationStatus: Enum.ModerationStatus,)> Fires when an in-experience-created avatar asset's moderation status has been updated from pending.Parameters Parameter assetId: numbermoderationStatus: Enum.ModerationStatusAvatarCreationService.AvatarModerationCompleted: RBXScriptSignal<(outfitId: number,moderationStatus: Enum.ModerationStatus,)> Fires when an in-experience-created avatar's moderation status has been updated from pending.Parameters Parameter outfitId: numbermoderationStatus: Enum.ModerationStatusAvatarCreationService.AvatarOutfitModerationCompleted: RBXScriptSignal<(outfitId: number,moderationStatus: Enum.ModerationStatus,outfitType: Enum.OutfitType,)> Fires on the client when moderation completes for an in-experience-created outfit.Parameters Parameter outfitId: numbermoderationStatus: Enum.ModerationStatusoutfitType: Enum.OutfitTypeAvatarCreationService.OpenSelfieConsent: RBXScriptSignal<( )> AvatarCreationService.OpenSelfieQRCode: RBXScriptSignal<(url: string,jobId: string,)> AvatarCreationService.ReplicateAvatarGenerationImageIdWithErrorType: RBXScriptSignal<(fileId: string,errorType: number,errorMsg: string,)> AvatarCreationService.ReplicateAvatarModel: RBXScriptSignal<(id: string,success: boolean,serializedModel: string,bufferTable: { [string]: any },)> Parameters Parameter id: stringsuccess: booleanserializedModel: stringbufferTable: { [string]: any }AvatarCreationService.ReplicateAvatarPreviewUrl: RBXScriptSignal<(id: string,downloadUrl: string,)> AvatarCreationService.RequestAvatarGenerationImage: RBXScriptSignal<( )> AvatarCreationService.RequestAvatarModel: RBXScriptSignal<( id: string)> Parameters Parameter id: stringAvatarCreationService.RequestAvatarPreviewUrl: RBXScriptSignal<( id: string)> Parameters Parameter id: stringAvatarCreationService.UgcValidationFailure: RBXScriptSignal<(guid: string,errorMessage: string,)> AvatarCreationService.UgcValidationSuccess: RBXScriptSignal<(guid: string,serializedModel: string,price: number,)>
No events match the filters.