How to convert rbxgameasset to rbxassetid with code

Looking for a way to convert rbxgameasset to rbxassetid with code.
Can be called with a plugin or in runtime with code. The rbxgameasset must be with the route of the file (so it can be searched with the name of the uploaded content) and converted to a string with the asset ID so it could be used in my other games.

rbxgameasset
Format : Folder/category + asset name
Description: fetches a file uploaded through the game explorer in studio.
Example: rbxgameasset://Images/Potion

rbxassetid
Format: “rbxassetid://” + asset ID
Description: fetches an asset ID from the Roblox website. Must be approved.
Example: rbxassetid://607948062

1 Like

Apparently you can’t

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.