I saw on the documentation a new feature workspace:Raycast()
.
And on the documentation of workspace:FindPartOnRay()
it says:
Although this function is not officially deprecated, it’s highly recommended that you use the newer WorldRoot:Raycast()
function which utilizes an extensible RaycastParams
object and returns a RaycastResult
.
The question is, should I keep using the old FindPartOnRay method or switch to the new one?
What are the benefits of this new feature over the old one?