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

Image not changing when it is told to, just changing to a white image?

Hi, I recently made this script:

local val = true
script.Parent.MouseButton1Click:Connect(function()
	if val == true then
	script.Parent.Image = "http://www.roblox.com/asset/?id=4968347853"
	val = false
	else
	script.Parent.Image = "http://www.roblox.com/asset/?id=4968348079"  
	val = true
	end  
end)

And whenever I actually click on the Image Button, it just goes white and (the image) does not change to the asset id I want it to change to. I am also not getting any errors when I do click it. Ideas?

1 comment

0

well its bcs ur asset, mine work perfectly fine.

1 answer

✓ Accepted answer

You need to be using an Image not a Decal. To do this you got 2 options. Either get a decal, put your decal in it and copy the link it gives u roblox will convert it to an image. Or you can open up the developer panel and manually create one. Your choice.

1 comment

0

thanks

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