If you are looking for a "piece" of code to use in a script executor (like Synapse X or Solara), developers often use a simple line to disable the GUI element responsible for the animation.

A common script snippet to disable the hatch GUI in many Roblox simulators looks like this:

Look for the gear icon (usually on the left or bottom of the screen).