You need to add properties to your script fragment. And I'm also not sure whether or not you can use ".value".
Anyway, delete the code you have and replace it with a single semicolon. Press OK and save. You should have a new script attached to your topic now. Edit that script and put in a property:
Door property HDWhiteRunDoor auto
Save and compile it. Close the script, and then right-click it and edit its properties. Assign the property HDWhiteRunDoor to HDWhiteRunDoor, or you can just click the auto-fill button.
Now delete the semi-colon in your script fragment, and put back what you had before. You should now be able to compile it, assuming HDWhiteRunDoor.value is a valid function.