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