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 2 years ago
Edited 2 years 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 — 2y
0
yes libaryman1 6 — 2y

1 answer

Log in to vote
0
Answered by
NykoVania 231 Moderation Voter
2 years ago

Try this.

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

Answer this question