Local player uses key that only they can use on a door that only opens for them

I’m making a simple horror game where you have to open a door using a key / keycard. Which then leads to another area.

I want to know how to make it so that when the door gets unlocked by one player, it will remain locked to everyone else until they find the key and unlock the door for themselves.

I am completely new to scripting and I have no clue what I am doing, better at lighting, building, sfx stuff than scripting…

Just use a local script that opens a door when the player has the key and for example a proximity prompt is activated. I recommend looking it up on google and viewing the api documentation.

1 Like


https://gyazo.com/19e99ff71844a789ad4020bb2590ebbb

https://gyazo.com/1d1b3ab836f047498e8aaa01e08a8431
https://gyazo.com/786a67647e002866ee50e390111ff22c
Try this. Make a KeyCard tool and place a LocalScript inside of it. You can change the KeyAccess or create a part where the Card can be touched; just change the name.

1 Like

Thank you!
I’ll try this in the morning