I was playing a game on Roblox it had a gate where players who were a certain rank or higher could walk through this gate SMOOTHLY (it appeared to have no onTouch, teleporting system, or lag while moving through the block). It was as if there was no block there at all for the people who were the certain rank or above, and it was there for the people who were under the rank.
I want to know how I would go about making this. Is there a property of the player or the block that allows certain players to pass through, or is this a complex bit of code?
P.S. I’m assuming this is the right category… correct me if I’m wrong.
It probably used magnitude, which get’s the length of 2 vectors and used TweenService to move the gate. There is a property in parts called CanCollide, which determines if something should pass through it or not.