How can i desactivate a dummy torso collision

im trying to remove the collision of a torso of this dummy keeping the player colission, but how can i do it?

local Dummy = workspace.Dummy --Example.

local function DummyCollisions(Boolean)
	for _, Child in ipairs(Dummy:GetChildren()) do
		if Child:IsA("BasePart") then
			Child.CanCollide = Boolean --Prevents collisions.
			Child.Anchored = not Boolean --Prevents falling.
		end
	end
end

DummyCollisions(true) --Enables collisions.
DummyCollisions(false) --Disables collisions.

ty for that but it doesn’t works

Ignore this post, I replied to the wrong thread.

Ignore this post, I replied to the wrong thread.

It does work but the collisions are re-enabled every frame. You’ll need to make use of collision groups to achieve this.

2 Likes

How do i use Collision groups to make the part not collide or query with anything?