I want to make a part look at a part without using the Y axis.
Code:
local otherPartPos = workspace.TestPart.Position
part.CFrame = CFrame.lookAt(part.Position, Vector3.new(otherPartPos.X,0,otherPartPos.Z))
I want to make a part look at a part without using the Y axis.
Code:
local otherPartPos = workspace.TestPart.Position
part.CFrame = CFrame.lookAt(part.Position, Vector3.new(otherPartPos.X,0,otherPartPos.Z))
That looks like it should work just fine. What are you having issues with?
Well. my part still looks down at the target.
I have fixed it by setting the main part position for the Y axis.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.