Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I change MeshId of MeshPart using a script?

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?

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.

5 comments

0

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.

0

If it has joints and motors I guess so. But just call the MakeJoints method on the model.

0

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.

0

I might just switch to R6 since it doesn't use MeshParts.

0

Why? If specialmeshes can, why dont meshparts use the same mechanism

This discussion is preserved as it was. New answers, comments, and votes are closed.