I’ve been trying to stop ending up with the same value after getting the magnitude of the two positions but I’m having no luck. Any help will be appreciated thank you for your time!
I’m creating a blocking system, when a player blocks attacks from the front are supposed to be blocked, and attacks coming from behind the player do not get blocked and damages the player.
I’m having trouble with the “frontComparison” and the “backComparison” variables, as “frontComparison” is always less than “backComparison” even when attacking a blocking player from behind.
Basically I’m trying to figure out which CFrame the enemy is closer to when attacking the blocking player
Sheesh yeah I really have to be careful, I probably shouldn’t name stuff “thing” cause I REALLY got tangled on what everything was lol. Thanks so much!