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?
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.