Transformers has been licensed to game studios for decades, which has produced a spread of titles of wildly varying quality. Finding them legally is far easier than most players expect, and considerably safer than the obfuscated download links that circulate.
Transformers: War for Cybertron and its sequel Fall of Cybertron are the titles most often recommended, both developed by High Moon Studios and built as third-person shooters with separate Autobot and Decepticon campaigns. The 2007 film tie-in and the later PlatinumGames title Devastation have their own followings.
Several of these appear on Steam and console storefronts, and older titles turn up in second-hand bins and budget re-releases. Availability shifts as licences move between publishers, so a game that was delisted may return later.
Answers that hide a download address inside bold and italic words are trying to evade moderation, which tells you what they expect to happen to a plain link. Whatever the destination, a site distributing a full commercial game for nothing is not a safe download.