How would i turn something to face something

Basically i want a part to turn to face another part, just not sure what i need to do to achieve this.

On one axis or all? [Character limit]

1 Like

Uh, not sure but i think the X and Z axis?
Just dont want it looking up and down

1 Like

You could use CFrame.LookAt

ex:

local Part = game.Workspace.Part
local goalPart = game.Workspace.goalPart
Part.CFrame = CFrame.lookAt(Part.Position, Vector3.new(
goalPart.Position.X, 
Part.Position.Y, 
goalPart.Position.Z))

that may work, I’m not sure if you would need to make it a tween or not
edit, made it a little easier to read

1 Like
local partToFaceAt = -- path to part
local partThatWillFace == -- path to part
partThatWillFace.CFrame = CFrame.new(partThatWillFace.Position,partToFaceAt.Position)
1 Like

i would do this, althought it also moves turns it up and down

well guess use @Azul_Litt answer