Convert numbers to assetids automatically

if a number is passed into an instance that needs some kind of id (think Sound.SoundId or MeshPart.MeshId) and not the full “rbxasset//:id” convert it automatically instead of throwing a “Failed to load sound [id]: Temp read failed.” error

3 Likes

I can’t find a reason against this. If studio can autocomplete when you paste a number in, why can’t the client/server do the same?

Although I will admit this kinda leads to bad practices I do agree it seems odd it’s not coded in as that level of failsafe

They’ve shutdown similar feature requests before because it introduces unexpected behaviour and bugs that are hard to track down.

2 Likes

okay fair enough i do get how it could encourage bad practices, how about making the error message if you do input an invalid type more verbose though? just throwing a temp read failed error isn’t the most helpful, maybe something like “expected rbxassetid:// got [type]”?