When I try to do this, I get an access is restricted error. How would I change the MeshId of one part to the MeshId of another using a script?
COMMUNITY QUESTION
How would I change MeshId of MeshPart using a script?
1 answer
###MeshId cannot be written from scripts because it is an fbx file. It is downloaded to the user's computer, and it would be a big security hazard for Roblox to let developers get access to their player's files. For this reason, MeshId cannot be set from a script. If you really need this behaviour, I'd have the MeshPart stored in somewhere like ServerStorage and clone it into the Workspace whenever I need it.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Wow that is really annoying. This would break joints and motors wouldn't it, so I'd have to remake them too. Since I'm trying to change this on a player, I'd have to weld it onto them or something and that is just way too work, darn.
If it has joints and motors I guess so. But just call the MakeJoints method on the model.
Wouldn't the player die if I deleted the old body parts though, and if I made them invisible then how would I animate the new body parts? Too advanced for me.
I might just switch to R6 since it doesn't use MeshParts.
Why? If specialmeshes can, why dont meshparts use the same mechanism