Problem with getting attribute from model

Well
image
same error

I think problem is in rbxassetid not in attribute

I also tryed www.roblox.com/asset/?id=, but same result

can you show a screenshot of the attribute in the properties tab?

read the attributes name and im sure you’ll find out what the problem is

spoiler it says ImadeID

I know lol, in script it’s ImadeID. It doesn’t gives error anymore, image just don’t load…
EDIT: Code:

					if mapInfo:GetAttribute("ImadeID") then
						button.Image = "www.roblox.com/asset/?id="..tostring(mapInfo:GetAttribute("ImadeID"))
	print("image id:" .. button.Image) -- < This.
else 
	print("no Image ID")

try to paste the id into the image id box and see what the result is because there are images and decals, you probably have the decal id which doesn’t auto correct to the image id when set with a script im guessing That’s the problem then

Oh you mean without “www.roblox.com/asset/?id=”?

just copy the id go to explorer select a decal or image object paste the id and the image will load but u will most likely also get a different id use the new id u get try that
no scripting only doing stuff with explorer and properties tab


EDIT: Well i just tryed with all ID’s they work.

yes and now copy that id or the entire string and use that

Already tryed www.roblox.com/asset/?id=

im talking abt this
Screenshot_2022-07-19-12-13-26-05_40deb401b9ffe8e1df2f1cc5ba480b12
Screenshot_2022-07-19-12-13-12-24_40deb401b9ffe8e1df2f1cc5ba480b12
they are different

You mean full string in attribute?

Well if i’m using full strng then it works in script. Not in attribute

Well it’s too big for attribute, i just can’t paste it

yea but the thing is the id in the attribute is the decal id which wont work and the id when u paste will change to the image id which is the actual id u need
just change the attribute id to the id in the image when u paste

Finally it works, thanks! (30 lettersssssssss)

1 Like