Skip to content
Saiko

getcustomasset

Copies a workspace file into the content provider and returns an rbxasset:// URL usable by Image, Sound and Mesh properties.

Signature

luau
getcustomasset(path: string, noCache: boolean?): string

Parameters

pathstring

Path to the asset inside the workspace.

noCacheboolean?

Bypass the cached copy.

Returns

string

Example

luau
local img = Instance.new("ImageLabel")
img.Image = getcustomasset("saiko/logo.png")