local hi = CFrame.fromMatrix(self.Player.Instance.Character.HumanoidRootPart.CFrame.Position,self.Player.Instance.Character.HumanoidRootPart.CFrame.RightVector,Vector3.new(0,1,0).Unit)
local hit,pos,surface,material = workspace:FindPartOnRayWithIgnoreList(Ray.new(self.Player.Instance.Character.HumanoidRootPart.CFrame.Position,hi.LookVector.Unit * self.SwordDistance or 7),{self.Player.Instance.Character})
I don’t understand why it doesn’t works.
What I am trying to do, is ray cast at front, by using CFrame.FromMatrix()
Ignoring the rotation basically,
I am trying to get the look vector without rotation on Y axis
But with CFrame.fromMatrix() it was possible, i forgot how