Why doesnt my collision groups work?

I have two groups setup as you can see on the image:
https://gyazo.com/84e98a893128c86288d1305f45a7431c

One of them doesnt collide with anything and the other is just the default one. To the “No Collision”

local Torso = Character.Torso
PhysicsService:SetPartCollisionGroup(Torso, "No Collisions")
	
local HumanoidRootPart = Character.HumanoidRootPart
HumanoidRootPart.CanCollide = true
	
local Head = Character.Head
PhysicsService:SetPartCollisionGroup(Head, "No Collisions")

The HumanoidRootPart doesnt seem to collide with Default even though it should. To reassure you of this i took a look at the collision Group id which as expected displayed 0. We can also be certain about it being cancollide = true.

In this character that we have a morph and even though their baseparts collision Group is the default one, it doesnt collide with anything either.

The desired behavior here is that the HumanoidRootPart, Head and Torso doesnt collide with anything. While the morph can collide with other parts etc. Im using r6 btw

1 Like

I don’t really understand this… Is your problem that you can’t get them to collide?

If so, try not setting them to ‘No Collisions’ or they won’t collide.

You could also try using the Output to check any errors or print things occasionally to make sure the script is functioning correctly.

If I am not understanding this correctly, please correct me and I’ll try to find a correct solution.

The three parts you mentioned have collisions enabled and are required to have collisions enabled because of the downcast that makes the humanoid move and stay above ground.

Your repro, thread and question are somewhat unclear.

“The desired behavior here is that the HumanoidRootPart, Head and Torso doesnt collide with anything. While the morph can collide with everything else(Default). Im using r6 btw@

Okay… Is the script server or local? If local it will probably not work, depending on how you’re using it.

Is this a custom character (StarterCharacter) or is this the player’s normal character?

It’s a blocky r6 character inside starterplayer.