I'm trying to make some parts become local parts by setting their parent to a camera named 'LocalBin'. however, once I attempt to do so it always errors with the error message below, deletes all the parts in the folder, and then moves the empty folder into the local bin. Why is is deleting my parts?
"Something unexpectedly tried to set the parent of Local to NULL while trying to set the parent of Local. Current parent is LocalBin."
(This is done from a localscript in the character)
Update: I found that if I move each individual part into the camera instead of the model itself, then the parts show up locally. However, now all of the meshes in the gun have been deleted, and all of the unions just look like big blocks)
It's a replication issue. Here's what really happens:
Client moves the object to the Camera.
Client tells server "Hey, I've moved {x} to {Camera}".
Server says "Hey no wtf is {Camera} I'm only seeing NULL".
Server flips out because the Camera doesn't exist on the server.
Server sets the parent to nil.
Server tells the Client this.
Client flips out and kills the part. Whoops.
How to avoid this? Stick FE on and stop using hacky methods.