Makes a local file available to the engine and returns an asset id (an rbxasset:// string) you can assign to image, sound, and mesh properties. This is how you use your own files as in-game assets. Also registered as getsynasset.

Parameters

string
required
The file to expose, under the workspace folder.

Returns

string
An asset id referring to the file.

Example

Errors