AssetStatus
The loading state of an asset tracked by AssetService.
Access items through Enum.AssetStatus.
Behavior
Enum.AssetStatus is returned by
AssetService:GetStatus. It distinguishes an
asset that has not been requested from one that is loading, available, or failed.
Items
Items4Value
None
The asset has not been requested or has no cached status.
Loading
The asset request is in progress.
Loaded
The asset finished loading successfully and is available from the cache.
Failed
The asset request failed.
Example
local assets = game:GetService("AssetService")
local status = assets:GetStatus("astassetid://10")
if status == Enum.AssetStatus.Loaded then
print("asset available")
end