Hey, so a weird issue here, my game isn’t loading images even though I’m putting the asset ID in correctly through my script.
Code:
Menu.MaterialShop.ShirtCustomization.DecalInput.FocusLost:Connect(function()
if tonumber(Menu.MaterialShop.ShirtCustomization.DecalInput.Text) then
local Id = "http://www.roblox.com/asset/?id="..Menu.MaterialShop.ShirtCustomization.DecalInput.Text
Menu.MaterialShop.ShirtCustomization.SetImage.Image = Id
else
Menu.MaterialShop.ShirtCustomization.DecalInput.Text = "Input is not a number!"
end
end)
I have also tried
local Id = "rbxassetid://"..Menu.MaterialShop.ShirtCustomization.DecalInput.Text
which also didn’t work.
Am I doing something wrong or is roblox being weird?
The issue in your code lies in how you are assigning the value to the Image property. In both cases you are assigning a string (the asset ID or URL) to the Image property, but the Image property expects an actual image asset or URL, not just a string, to fix that you need to use the ImageLabel 's Image property with a valid asset ID or a URL Xx
Make sure that the asset ID you’re providing is correct and corresponds to a valid image asset in Roblox. If the image still doesn’t load, double check the asset ID or try using a different asset to see if it resolves the issue. If it doesn’t then I think it has something to do with the engine
It could be for a few reasons but I’m not certain, asset IDs are typically consistent and should not have offsets when loaded in the studio, so the presence of such offsets could be due to factors like cached data, versioning or variations, or script/plugin interference, and further investigation or assistance from Roblox support