In your example, //Images/DeerImage, you are not given the asset ID you show in the web link from the link used. Even if you scripted it this way, you do not get the asset ID you highlighted from the library. It’s simply not given and doesn’t exist within the script.
That address, as I said, is used locally. I’m not sure if you are misunderstanding the word locally, but I’ll make it quite clear in case you are struggling.
When you upload, in your example “DeerImage”.
You are uploading that to a specific place.
It does not exist in any other place.
If you want to use it in another place, you have to reference the asset ID, like what’s used in the library.
It does not exist in any other place.
If you have say a group and you upload “DeerImage” to say “Place 1”, you can not reference /Images/DeerImage from any other place.
When you use /Images/DeerImage, Roblox isn’t going “hmm… I wonder what this is”, translating that to an asset ID, then fetching the ID. No, that’s ridiculous, it’s loading it from the place file it exists within and it’s using the same path that was used, not making up a new one. Yes, it’s sending an HTTP request, but not for an asset ID. Why on earth would Roblox or anyone for that matter put in an ability to reference locally, which contrary to what you believe, yes, it is locally (to that place), just to have it need to convert that to an asset ID to look for it by asset ID somewhere else? What you are saying makes literally no sense.
If I’m running a server locally off my computer and during the execution of a file on my server, that file accesses another part of my server that’s also local, but that file isn’t shared, you don’t suddenly gain access to that file independently because you have access to the local file.
If you could fetch an asset ID from a local image, which I’m not entirely certain you can (I have one way I could test that I know of but I don’t know or even think it would work), that still doesn’t give you the asset ID on a place file download.
Just because you can, in studio, go to your assets, click on images, see a list of all the images uploaded to that place, click on that image and get the asset ID so you can find it in the library, doesn’t mean that anyone else accessing it can do that. I know if I give someone permission to edit a game but I don’t give them permission to edit group games, they can’t access what I upload. They can’t even play my animations in that place. So if someone with game edit permissions can’t access what another person uploads to a group because they don’t have group edit permissions, why would a player locally be able to access that same information?
rbxgameasset is not the same as assetid.
Even IF you could access the asset ID this way, which once again, I highly doubt you can, Roblox could EASILY change that and make that a permission-level access. It would not be hard on their end to rectify this at all.