I want to convert a https://www.roblox.com/library/ asset link to a rbxassetid:// link inside a script. How would I do that? If I just put the roblox.com link into the texture I am adding it to it gives me an failed to load error.
COMMUNITY QUESTION
How do I convert a roblox.com asset link to rbxassetid?
1 answer
If you mean converting a link to another link in a script, I'm not sure. But if not, this is what you do.
You copy the numbers by "/library/" and paste it by rbxassetid://. Usually Roblox automatically converts it into a rbxasset link but if it doesn't, that's what you do.
1 comment
0
That only works when manually pasting in studio, if you do that with scripts you will get an error that it failed to load.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Can you use this https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/GetProductInfo somehow to get the assetId maye?