I’m currently having an issue when trying to get the part that intersects with the ray I’m casting.
local bullet = Ray.new(bulletExitPosition,calculatedDirection);
local bulletHitPart,bulletHitPosition = workspace:FindPartOnRay(bullet,parsedPlayerCharacter,true,false);
As you can see, It’s typed out correctly, however, when I print bulletHitPart it will always return nil, however when I print bulletHitPosition it returns a valid Vector3 position.
I’m not too sure what I’m doing wrong, any and all help is greatly appreciated!