Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
4

What's the point of having two parameters in Humanoid:MoveTo?

Asked by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
10 years ago

Humanoid:MoveTo(Vector3 location, Part part) seems pointless to have the part parameter when the only thing anyone really cares about telling the humanoid to do is to walk to that point. The most common usage of this method has the location as the position of a character's Torso, and the part being that torso. If the wiki description "Causes the character of the humanoid to walk to the location" is 100% accurate then the second parameter is absolutely pointless and serves no function in the method at all - it may as well not even be referenced in the method's function itself. What's the point?

0
I've wondered this as well. I don't even think that it has a function. TheGuyWithAShortName 673 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

It is useless indeed. Probably it served some ancient function, but now there is no need for it. Gonna ask admins about removing it.

0
This may have just been a better question for the dev boards anyway. 1waffle1 2908 — 10y
0
I already started topic on developer feature requests. ZarsBranchkin 885 — 10y
Ad

Answer this question