Well the thing is that a local script can check a players rank in a group real-time.
That’s exactly what I have said:
There’s no need for the server script.
I get what you are trying to say, but if someone is demoted while they are in the game, the door will remain walk-through. It is better to check when someone touches the door in my opinion.
You can also use the touched event in the local script, there’s no need for a server script, just check if the player that touched is the local player, then if he is, check if he has rank in group.
This is marked as solved please resolve this in DMs.
1 Like