Hello there! I want to increase raycast length. Im using Unit to do this:
raycast = workspace:Raycast(pos1,pos2.Unit * 5000)
But direction is changing.
Hello there! I want to increase raycast length. Im using Unit to do this:
raycast = workspace:Raycast(pos1,pos2.Unit * 5000)
But direction is changing.
The second parameter of WorldRoot:Raycast is a directional vector, not a position.
If you want to raycast from one position to another, you must do workspace:Raycast(pos1, (pos2 - pos1).Unit * length)
to get the direction to the target position.