The entire model goes funky when I set one of it's descendants to nil?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    I’m making a settings system where you can disable textures.

  2. What is the issue?
    When I set the texture’s parent to nil, the entire model goes funky and it just breaks .-.
    Screenshot

  3. What solutions have you tried so far?
    I tried putting the textures into ReplicatedStorage, but it also does the same thing.

It happened before as well, when I set one of the model’s descendants’ parent to nil, the model becomes glitchy, though you can still collide with it.

Is it a bug in Roblox’s rendering thingy?
What can I do to fix this visual glitch?

Thanks for reading :slight_smile:

Nevermind, all I had to do is ungroup the model and group it together again.
Screenshot