Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I change MeshId of MeshPart using a script?

Asked by
LawlR 182
5 years ago
Edited 5 years ago

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

Log in to vote
1
Answered by 5 years ago

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.

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. LawlR 182 — 5y
0
If it has joints and motors I guess so. But just call the MakeJoints method on the model. User#19524 175 — 5y
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. LawlR 182 — 5y
0
I might just switch to R6 since it doesn't use MeshParts. LawlR 182 — 5y
0
Why? If specialmeshes can, why dont meshparts use the same mechanism asadefa 55 — 5y
Ad

Answer this question