I’m trying to code a movement script where players can pass below certain platforms by hitting S or the down key, like in platformer games. To do this I’m wanting to use collision groups - I set each platform to a collision group called “platforms” and set the collide to false.
The only thing I’ve found on how to remove players from collision groups is PhysicsService:SetPartCollisionGroup(Part, "Default") which sets player collision groups to the default one. However, wouldn’t this remove the player from ALL collision groups? My game has many different collision groups such as player-to-player collision groups so this would be problematic
I know how to set player characters to a collision group, but how can I remove them from it? For the record, simply setting the platform’s CanCollide property to false is not an option because this is a multiplayer game. Thanks