Why and how to use BoolValue for door script?

So I’ve made research and found that if I want to have a true owner for example for a door so only the owner can lock and unlock it I have to put a boolValue.
But why, and how do I do that kind of door? LIke HOW DO I CHECK IF THAT’S THE TRUE OWNER?

1 Like

No, you should try with a intvalue which contains the name of the owner

2 Likes

If it contains the name of the owner, then that’d be a StringValue.

2 Likes

sry i meant that

my mistake bruh

2 Likes

unfortunately I can’t make two solutions, on dev forum post :frowning:

1 Like

Just keep it @Hello1502HD, as it was his idea :smiley:

1 Like

I agree that was his idea, and also thank you for telling about string value :slight_smile:

1 Like