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?
Thanks,
R0bl0x10501050
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.
Yeah, I believe it’s just collision filtering with an aesthetic Tweening for the style. PS: use a server script and not a local script if you don’t want exploiters to mess with the ranking system.