How to script a door opening with points...please help

OK I have a door and a double door and I need some major help. I need a script that will open the doors on a command of a button, but only if the player has enough points to open that door. Someone please help.


try this tutorial on youtube to figure out the things…script in .js is already there so have a look on it and Enjoylink text