I have a little “game” inside my place where you press a bunch of buttons in order, and if you get them correctly it spawns a brick.
But I want it such that when you get it right, it sets the icon of an ImageLabel to green and then changes it to gray after 2 seconds without interrupting the main thread.
The issue is that whenever I try to set the image inside spawn it doesn’t get set properly and instead goes invisible.
Here is the code I had:
spawn(function()
correctLight.Image = lightIcons.tick
wait(2)
correctLight.Image = lightIcons.tickGray
end)
If I instead use:
correctLight.Image = lightIcons.tick
The image does get set but if I use the full code like above, it won’t let you play until the icon goes gray again.