What are some way to get servermemory and luaheap down?

What are some way to get servermemory and luaheap down? Trying to optimize my game.



Get rid of any unnecessary instances (welds between anchored parts, unused scripts, unused instances, instances which cause clutter and don’t offer any benefit to the game etc.) also try to destroy created instances once they have been used instead of leaving them in the workspace forever.