How do I transfer rbxgameasset:// to an asset id through script?

Is there a way I can do this?
I am trying to upload lots of decals and then get their assetids through a script

nah bro u can do that while you are playing the game unless if its possible.

for now u have to upload it to roblox then use rbxassetid://id here to get the image

The problem is that getting the id individually is too time consuming

There has been multiple topics on this, but here is one that should probably answer your question:

It isn’t possible to achieve this programmatically, if you want the asset’s ID then you need to right click on the asset and click ‘Copy ID to Clipboard’.