Ad
Log in to vote
0

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

Asked by 21 days ago
Edited 21 days ago

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
0
Is Bulbasaur a BasePart? Hypoxla 125 — 21d
0
yes libaryman1 4 — 21d

1 answer

Log in to vote
0
Answered by
NykoVania 198 Moderation Voter
21 days ago

Try this.

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

Answer this question