Well, in the 'Transformers' franchise, Sam Witwicky, portrayed by Shia LaBeouf, didn't explicitly die. He was the main character in the first three 'Transformers' movies, showcasing his unique connection with the Autobots. After 'Transformers: Dark of the Moon' released in 2011, Sam's character was written out. He didn't appear anymore in subsequent films.
Despite being a central figure in the first trilogy, his absence was hardly addressed in the latter movies. So, we don't really have a clear answer if Sam Witwicky died or simply was phased out as the series redirection.