How do you fix the collisions of every part in your game?

Hey there. I’ve recently been having issues with ROBLOX related to CollisionFidelity’s being set to “Box” by default, meaning that your character is able to walk through mesh parts and unions. I’d like a fix to this, as I’ve tried pretty much every solution out there.

Here is a code that was written on the devforum, but it doesn’t work:

local main = workspace

for _, object in pairs(main:GetDescendants()) do
	if object:IsA("MeshPart") then
		object.CollisionFidelity = "Default"
	end
end

If you could help, it would be appreciated!

Just checked the API, you can’t write to a MeshPart’s CollisionFidelity.

1 Like

Have you tried entering MeshPart into the Search bar at the top of the Workspace window in Studio? It should show all your MeshParts, and you can select them all then change the CollisionFidelity manually.

Usually MeshParts set to Box makes it so you are unable to walk around them without hitting some part of it though, not walk through it.

2 Likes