Error with editable mesh

local mesh_part = AssetsService:CreateMeshPartAsync(Content.fromObject(editable_mesh), Enum.CollisionFidelity.PreciseConvexDecomposition)

I keep getting the error “Unable to cast to Dictionary” with the line of code above. I am trying to make an editable mesh and it keeps giving the same error. I looked up on the Roblox Learn page and still dont understand what I am doing wrong

That not a dictionary table


You have to format it like:
{
CollisionFidelity = Enum.CollisionFidelity.PreciseConvexDecomposition

}
Instead

1 Like

Thanks so much, I think im just stupid tbh because I was trying so hard to get this to work, I tried a dictionary earlier but I must’ve forgotten the brackets :neutral_face:

Nah, it’s a simple mistake that everyone makes.
You understand editable meshes already, so you are already like the top 5% of developers already just becouse of knowing that, don’t need calling yourself stuipid everyone makes mistakes.

1 Like