EditableMesh creates just a gridbox

My editable mesh keep turning into this… has anyone already experimented this issue? If so do you know how to fix it? Any help is appreciated !

  • I din’t even modify the Mesh in the code ;-;

The error for me comes from CreateMeshPartAssync as when I use it and clone the created mesh to workspace it places the same box thing into it…

Here is my code:

		collider.Size = Car.bodyworks:FindFirstChild(collider.Name).Size
		collider.CFrame = Car.bodyworks:FindFirstChild(collider.Name).CFrame
		
		local EM = AssetService:CreateEditableMeshAsync(Content.fromUri(collider.MeshId))
		
		local MPart = AssetService:CreateMeshPartAsync(Content.fromObject(EM))

		collider:ApplyMesh(MPart)

I tried printing vertices count it was correct, it’s just not displaying it…

EditableMesh instances don’t replicate from server to client yet, you will probably be able to see the mesh once you switch to the server. If you want to see it on the client you will either have to wait for an update on EditableMesh replication, run the script in a localscript, or try and replicate it manually through custom code.

2 Likes

Okay thank you very much ! It was just for collisions on the server side so that’s not a problem then, thanks!