Ad
Log in to vote
0

GetPropertyChangedSignal doesn't work for some reason?

Asked by 15 days ago

so i tested this script with the printed thing and i didn't see printed in the output

so does anyone know how to fix this script

local color1 = script.Parent.Parent.color1.Value

script.Parent.BrickColor = BrickColor.new(color1)

local function onColorChange()
    print("printed")
    script.Parent.BrickColor = BrickColor.new(color1)

end

script.Parent.Parent.color1:GetPropertyChangedSignal("Value"):Connect(onColorChange)

Answer this question