For example, I am trying to make a hotel.
If a player has a key card to a door, the brick turns red to indicate its closed. If the key card is in ServerStorage, the brick would turn green.
For example, I am trying to make a hotel.
If a player has a key card to a door, the brick turns red to indicate its closed. If the key card is in ServerStorage, the brick would turn green.
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
When the player touches the door, check to see if the player has the key card in their character. Whenever a player equips an item, it is parented to their character
I have the door already but I am asking about the front desk/ kiosk. If somebody has the keycard, the brick for that room changes colour to red.
Show us your code
I have a door that uses 2 number values and when both key card and door are intact and have the name number value, the door opens