CageMeshID Not Scriptable

So, I want to change the cagemeshID while the game is running but it’s giving me a error.

	realItem.Parent = char

	if realItem.Handle:FindFirstChildOfClass('WrapLayer') then
		realItem.Handle:FindFirstChildOfClass('WrapLayer').CageMeshId = 'rbxassetid://0'
	end

Here is the error I’m receiving.
image (1)

People are saying I cannot edit it because it’s only readable.

But Puffiness and Order has also the same thing? But those are able to be edited while the game is running despite the website saying it’s only readable and that it would cause errors.

Does anyone know a bypass or do I need to make a plugin or something to edit the cagemeshID?

All I want to do is change the ID once it’s applied, Why am I getting this error? This seriously has to be something stupid because all I want to do is something simple and that’s changing an ID. Why is roblox making this so much harder to do? Is letting people change an ID too much to ask for?

Yah sadly (as far as I know) you can’t change IDs like that. You’ll have to create a new cage with that ID and replace the old one.

Replacing the IDs with new existing cages deforms the clothings, Also if you don’t know a solution please don’t comment anything because it really doesn’t help. I also need a explanation for the order and puffiness saying its not allowed to be edited when it can be while the game is running. it doesn’t make sense? Which is why I believe there is a way.

??? My solution was, create a new cage and set that id to the new one, but since I guess it wasn’t implied deleted the old cage at the same time too.

Sorry but this doesn’t help me with my problem. Mine has to be changed while the game is running. Without the original cagemeshID it will never apply on the character correctly, This would be a solution for someone else.

Previously, RayK_iv answered you, mesh cannot be changed via script
In the example you are giving, it clones the cage from some directory, then parents it with the body of the character and delete the original cage

It also said puffiness and order couldn’t be changed by script. It was also proven wrong.

“Read Parallel” means that the method is safe to read from in parallel luau, on the other hand ReferenceMeshId is “Plugin Security” and can only be read from / written to by a plugin.

Editing cage MeshId seems to internally edit ReferenceMeshId, leading to this permission error. Unfortunately, I don’t know of any way to bypass this issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.