I’m trying to make an npc look at another, but when the target npc is above the npc that should look. He looks op and I only want the looker to rotate in one axis. Please help me.
local targetPosition = Vector3.new(enemy.HumanoidRootPart.Position.X, enemy.HumanoidRootPart.Position.Y, enemy.HumanoidRootPart.Position.Z)
tower.HumanoidRootPart.CFrame = CFrame.new(tower.HumanoidRootPart.Position, targetPosition)