1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

CreateAssetResult

CreateAssetResult is returned as the first element of the tuple from AssetService:CreateAssetAsync() and AssetService:CreateAssetVersionAsync(). It indicates whether the asset was created or updated successfully, or why the operation failed. On success, the second tuple element is the new asset ID (for CreateAssetAsync) or the new version number (for CreateAssetVersionAsync); on failure, the second element is a string with additional diagnostic information.

Items

NameValueDescription
Success1The asset was created or updated successfully.
PermissionDenied2The caller does not have permission to create or update an asset in the target inventory.
UploadFailed3The upload request to the Roblox asset service failed for a reason other than a permission error.
Unknown4An unexpected error occurred and the operation could not complete.

Success

The asset was created or updated successfully.

FieldValue
value1

PermissionDenied

The caller does not have permission to create or update an asset in the target inventory.

FieldValue
value2

UploadFailed

The upload request to the Roblox asset service failed for a reason other than a permission error.

FieldValue
value3

Unknown

An unexpected error occurred and the operation could not complete.

FieldValue
value4