You're referring to the 2001 horror film "Thirteen Ghosts"!
: The film is about a family who inherits a haunted mansion from a distant relative, and they're forced to live there with 13 ghosts who were once imprisoned in the house. Thirteen.Ghosts.2001.720p.BRRip.Hindi.Dual-Audi...
: In the final confrontation, Arthur’s love for his children breaks the machine’s cycle. The house's clockwork mechanism is destroyed, and the spirits are released from their mechanical cages. You're referring to the 2001 horror film "Thirteen Ghosts"
: After inheriting a state-of-the-art glass mansion from their eccentric occultist uncle, Cyrus Kriticos, a widowed father and his family discover the house is actually a machine designed by the Devil. It serves as a prison for twelve vengeful spirits, with the family intended to trigger the release of a thirteenth. The house's clockwork mechanism is destroyed, and the