Disabling character collisions with all parts

What I want to do is disable ALL collisions with the players character.

This will mean they fall through the floor.

Yes.

What I want is to be able to freely move the player into the floor using AlignPosition. AlignPosition can move the player to the right position but if the end position overlaps with another part ( i.e the ground ) they get moved out. I want to hold them there for as long as I want.

How it works right now

I’m adding a Touched connection to the players HumanoidRootPart then whenever a new part touches, I add a NoCollisionConstraint to all parts in the character.

I remove these NoCollisionConstraint objects from the player once I’m done.

The problems with this solution

It doesn’t always filter parts that are in the way.

Potential improvement

It seems it would make a lot more sense to just CanCollide equal to false for all parts in the player however, the characters parts collisions are set every frame.

I’ve seen this post on how to set collisions to change only on state change

but then I’d be relying on the humanoid state not changing for the code to work.

2 Likes

Probably CollisionGroup is the only thing that will let you do this

2 Likes

Thanks, I overlooked the existance of the Default collision group.