Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 1 year ago
Edited 1 year 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 — 1y
0
yes libaryman1 6 — 1y

1 answer

Log in to vote
0
Answered by
NykoVania 231 Moderation Voter
1 year ago

Try this.

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

Answer this question