Deprecate Player:DistanceFromCharacter

This API method is rather pointless. Not only is it hardly simplifying an already simple solution, but its restricted to the Character’s head to the Vector3 point. (You could argue why the head and not the Torso as its closer to center of mass of the humanoid?)

And really all you have to do is (Character.Head.Position-Vec2).magnitude and you get the same results as the API with more flexibility.

All this API method is, is API bloat and serves pretty little purpose and its use should be discouraged.

13 Likes

Not only that. If the head is missing or the character is nil it returns 0 (signifying the character is directly on top of the position, even if they weren’t anywhere near it when they died).

This is awful behaviour and as a result I always avoid this method. If using this method requires me to check if the character isn’t nil and if the head is there then I may as well do the check myself without the method.

5 Likes