I created a simple doorway, used it with some other code to generate a room, hit play, and then copied pasted that room into the workspace so I could edit it more.
When I try to separate the CSG doorway parts after copying it from “Play” mode, I get the Error: “Something went wrong. CSG returned error code -6. Please file a bug report, preferably with a file containing the problematic object(s).”
The attached .rbxl file contains the original separated CSG parts, a working union that can separate without error, and a broken union that I created by copying it from Play mode.
Hello @SkyyOrbs , thank you for reporting it! We don’t replicate history data in Play mode, as this is meant to simulate the final in-experience behavior. However, you can copy the object while in Run or Server view and paste it back into Studio to continue editing.
In my bug report that’s what I did, I copied a CSG part while in Run mode and pasted it in studio. When I try to edit it, I can’t. I always get error -6. Please run the attached rbxl file and try to separate the parts, you should get the same error.
That’s interesting; I wasn’t able to reproduce the issue on my end. Just to confirm, did you switch from Test to Run mode before hitting Play?
Regardless, for your use case, you should be able to run your script directly from the Command Bar or use the same API within a plugin. Both methods allow you to run scripts without entering Play mode. Hope that helps!