✓ Accepted answer
That is not what you use workspace:FindPartOnRayWithIgnoreList(). There's 4 parameters with workspace:FindPartOnRayWithIgnoreList() The 1st parameter is ray itself, the 2nd parameter is what to ignore, the 3rd parameter is terrain cells are cubes (I know, that kinda bothers me as well), and the 4th parameter is to ignore water.
Put your data on a table. Make sure you ignore the player.Character. I'm assuming you're using remote events.
local data = {
player.Character,
"blood",
"hair",
"lefthand",
"righthand"
}
Secondly, use workspace:FindPartOnRayWithIgnoreList() properly.
local part, position = workspace:FindPartOnRayWithIgnoreList(ray, Data, true, false)
The reason I used part, position is because it will make your life a lot easier when creating 'beams' and also finding other characters.
3 comments
Why do you have "Blood" between hair and the ray?
they are the things i want the ray to ignore
that is where you put them right?