I have attempted to set a meshpart’s collision fidelity using the command prompt but it throws an error saying that “CollisionFidelity is not a valid member of MeshPart”. I have a ton of meshes that I want to change from default collision to box collision to improve performance in my game.
Here is the code I used that would give me the error:
for _,v in pairs(workspace:GetDescendants()) do
if v:IsA(“MeshPart”) then
v.CollisionFidelity = Enum.CollisionFidelity.Box
end
That is unfortunate as I have a large amount of similar meshparts in my game. It is going to be tedious going through and setting all of their collision to box or hull because I’m trying to optimize performance.