MeshID Error? "Unable to assign property MeshId. Script write access is restricted"

So this is a part of my serializing script AKA Datastore 2 I’m getting an error tho when i’m trying to serialize a Mesh i’m trying to get the MeshID so I can put it back when the player loads his plot or whatever. But i’m getting this error:
Unable to assign property MeshId. Script write access is restricted

Thanks.

I’m assuming for security reasons, Roblox does not allow you to set the MeshId of a MeshPart through a script; it’s read-only. You can get around this by using a SpecialMesh or FileMesh. If you absolutely need collisions, you should have it pre-loaded in storage.

You’re doomed, otherwise.

just kidding, i’m sure you’ll find a way!

3 Likes

oo hmm yea smart. Thanks Alot gonna try that.

1 Like