Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why won't this image label change?

I'm trying to make this image change when a button is pressed, but it only disappears.

local phone = script.Parent.Parent.PhoneTemplate
local images = {
    "rbxassetid://1996485774",
}

phone.Image = images[1]

This is only a snippet of my script, also thanks if you can help me out!

1 comment

0

Try doing something like: script.Parent.MouseButton1Click:Connect (function() script.Parent.Parent.Phonetemplate.Image = rbxassetid://1996485774. (Sorry if it looks bad; I'm on phone

2 answers

✓ Accepted answer

As Horribilis said, the problem is the id you used.

You used the decal id, while you should use the image id of the decal which in your case is 1996485756.

You can use this api to turn a decal id into its image id.

I think you can also put the decal id into a Decal in roblox studio and it should turn it to the image id, but not sure.

1 comment

0

The decal thing worked great, thanks!

The problem is not your script, it's your image. I ran your same script with a different image and it worked fine. You likely put in the wrong ID.

1 comment

0

It is the correct ID, I checked on the website.

This discussion is preserved as it was. New answers, comments, and votes are closed.