I want to have a script find the value of a "Value" object. I tried if script.Parent.Parent.myvalue.Value = false then (My door function)
The script thinks that the "=" is supposed to be "then". Is there a way to make the code find the value of "myvalue" and make the door open under the condition that "myvalue" is a certain value?
=
operator is exclusively for assignments. When you want to use comparisons, you use the ==
operator, which checks equality. Your script should look like this:if script.Parent.Parent.myvalue.Value == false then --... end
if not script.Parent.Parent.myvalue.Value then --... end