I'm making a gate for my school group (ID: 5081986), and need only Ranks 255, 253, 250, 249, 190 and 8 to open it. Ranks 0, 1, 2, 3, 4, 5, 12, 13, 16, 100, 104, 120 cannot open it. The part names are GateClosed (workspace.GateClosed) [VISIBLE AT START] and GateOpen (workspace.GateOpen) [INVISIBLE AT START]. It would be good if the cancollide could be done as well.
Any help is appreciated, thanks!
[EDIT] ClickDetectors would work well, as well as a close gate function.

2 comments
@PaleNoobs thanks for the answer, i was ideally thinking with a click detector, but i forgot to add that in the description, would that be amendable on the current script
Also, a close gate function was also what I was looking for but forgot to add.