How do i make towers look at a part, without their legs connecting with them and they don't get into impossible angles

So my towers are anchored, and i want them to look at stuff, SetPrimaryPartCFrame() grabs the entire model to look at it which looks like weird for giant zombies, is there a alternative for it?

I assume you don’t want model to look up or down. You can just subtract out the Y component before it goes into LookAt.

local targetPosAtSameY = targetPos + (Vector3.yAxis * (zombieOrigin.Y - targetPos.Y))
local lookDirectionNoPitch = CFrame.lookAt(zombieOrigin, targetPosAtSameY)

i mean, i want to like, stop the legs from being attached to the cframe