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

How to make a image label change when a bool value is false?

So I'm trying to make it where when the bool value is false it changes the image of an image label but it doesn't work.

local imagelabel = script.Parent.Parent.Bulbasaur     
local part = workspace.Bulbasaur                                
                                                                                     
if part.Value == false then
	imagelabel.Image = "rbxassetid://1179108570"
end

2 comments

0

Is Bulbasaur a BasePart?

0

yes

1 answer

✓ Accepted answer

Try this.

part.Value.Changed:Connect(function(NewVal)
    if NewVal == false then
		 imagelabel.Image = 'rbxassetid://1179108570'
	end
end)

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