Skip to main content
Turns a file in your workspace folder into a Roblox content id you can use in-game.
path is workspace-relative. In return, you get a string that works anywhere Roblox takes a content id - ImageLabel.Image, Decal.Texture, Sound.SoundId, MeshPart textures, and so on. Most commonly used to pull your own images and audio into a game, like a custom UI skin or a custom sound.

Parameters

Returns

string - an rbxasset://... content id pointing at the file.

Example

Save an image to the workspace, then show it in your own GUI.
Supports standard image and audio file formats (.png, .jpg, .mp3, .ogg).