I have a testing studio place where I created Npcs to chase each other and they do that by looping through workspace to find other humanoids besides their own and chasing them. The problem is I use this if statement (fighter.HumanoidRootPart.Position.X. - closestEnemy.HumanoidRootPart.Position.X). Magnitude < 3
that when they are close and less than 3 studs away from each other they will damage one another, but when they are even touching each other, no Damage is happening and when I print that equation into output, I get a high nu开发者_运维百科mber like "55 or 40". Someone please help! Thank you.
`
精彩评论