Is there anyway to check which model causes most lag

Is there anyway to check which model causes most lag like task manager

hmmm, I could be wrong but hopefully this helps
The MicroProfiler is Roblox’s most powerful tool for debugging performance issues. It shows you what parts of your game (scripts, rendering, physics, etc.) are consuming the most resources.

How to Open the MicroProfiler

  1. Press Ctrl + F6 (or Command + F6 on Mac) while testing your game in Play mode.
  2. The MicroProfiler window will open with detailed graphs.
  3. Look for processes related to Rendering or Simulation, as these often involve models.

What to Look For

  • Rendering Spikes: Check for spikes in rendering time when certain models are visible.
  • Physics Performance: Check for high usage in physics simulation, which might indicate overly complex or moving models.

Maybe this would be better

2. Use the Developer Console

The Developer Console provides a simpler overview of performance, including memory usage and script activity.

How to Open the Developer Console

  1. Press F9 while testing the game.
  2. Go to the Performance tab.

What to Check

  • Memory:
    • Look for sudden spikes in memory usage when a model is loaded or becomes visible.
  • Scripts:
    • Look for scripts that consume a lot of resources.

worst case…

3. Optimize and Test Models Individually

If you suspect a specific model is causing lag:

  1. Disable Models Temporarily:
  • Start by disabling or removing models one at a time.
  • Test the game after each change to see if performance improves.
  1. Optimize Each Model:
  • Check for excessive PartCount. High part counts, especially unions, can strain rendering and physics.
  • Reduce unnecessary Unions, Meshes, or high-polygon objects.
  • Avoid using too many Transparent or Reflective materials.

by disable I mean turn off the visibility and maybe set can collide too false
I want to say making it invisible may help slightly since the visual rendering is skipped.
Though as far as performance goes, I doubt this makes a big difference.
anyways hopefully something here helps.