yes they all have a humanoidrootpart and a humanoid inside them
Oh by the way,
Use "math.abs((ppl.HumanoidRootPart.Position - player.Character.HumanoidRootPart.Position).magnitude) <= 7"
, to get the absolute value, so that you don’t get negative numbers.
As for why it doesn’t detect the humanoidrootpart, I’ve got no clue.
1 Like
Damn thats tough. Do you have any other ways to detect using dotproduct on your mid? Or just methods I can make a good combat system with dot product?
I don’t know dotproduct. I usually just use math or raycasting to check the distance.
I was thinking, could I somehow get everything the thats inside the dotproduct and filter out If it has a humanoid and a hrp?