Im trying to make a script that changes the image in a box, but when I do this it underlines the equals in red saying then expected recieved =
local id = script.Parent.Value local imageholder = script.Parent.One activation:GetPropertyChangedSignal("Value"):connect(function() if id.Value = 1 then -- error here imageholder.Image = end end
Why is the = sign underlined in red?
You have a syntax error. When you're comparing a value to another you use double equal signs.
if someValue == otherValue then end
You need to set = 1
to == 1