if script.Parent.Parent.Door.CanCollide = true then
It shows that = is red, I don't get it and I need help with it.
When you are making an if
statement and want an equal condition, then you would have to use ==
. For example:
if script.Parent.Parent.Door.CanCollide == true then