For some reason this script refuses to detect the body parts of other characters on the map. Currently, it is fired from the player’s HumanoidRootPart in a straight line. How can I fix this? Thanks!
This picture shows several attempts to hit another character, with each attempt clearly failing:
The blacklist is referring to the character that casts the raycast, which I intend to hit other characters. The character in the picture is not the player character that is in the blacklist. I don’t know why it doesn’t work
I cannot include the entire script where this portion comes from as it it is rather long and is mostly concerned with non-raycast related things.
The ray seems to cast fowards from the HumanoidRootPart since the raycast actually is able to detect solid walls in front of the character. It is only when the obstacle is another player’s character that I run into the strange issue.
The other character isn’t referenced in the code as I intend to use the raycast to find the other player.
The intended behavior looks something like this, the players are the circles facing the black arrow: