Performance question

I noticed in a game i was playing when you go into a menu it deletes all the other menus till you get out of the new menu and i assume it just clones it again
is this better than just disabling and enabling the screengui?

  • where would i put it to clone it from… I assume replicatedstorage

what in the world.
i get it it works but thats like “work harder, not smarter”

to be more clear, disabling and enabling would save more time and make it 100x easier

It’s not recommended to delete and clone repeatedly, as it takes some time to duplicate all the objects and determine the properties.

Creating objects is much more expensive than changing the value of a field.

the question was not whats easier

this question is kinda obvious, i mean would you rather take time to clone objects and parent them just to show a menu while affecting performance or just straight up hide them?