VINDICTA
Instances · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

getcustomasset

Returns an rbxasset:// URL for a file in the executor workspace.

function getcustomasset(path: string): string

Synopsis

How it works

Copies the file at path (relative to the executor workspace) into Roblox's internal ContentProvider cache. Returns an rbxasset:// URL that can be used in any property accepting content IDs (textures, sounds, meshes, etc). The file persists in cache for the session.

Under the hood

The executor writes the file to a location within the Roblox content directory (or a temp cache folder), then constructs an rbxasset:// URI pointing to it. When Roblox's content pipeline requests this URI, it reads the local file instead of making a web request. This allows loading custom images, sounds, and meshes without uploading to Roblox servers.

Usage

Load a custom texture
local url = getcustomasset("textures/my_skin.png")
workspace.Character.Shirt.ShirtTemplate = url

Parameters

path string
Path to the file relative to the executor workspace folder.

Returns

string An rbxasset:// content URL pointing to the cached file.