Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is there a part version of humanoid.movedirection?

I'm trying to find the direction of a bullet so I can reflect it properly. If there's a different way to find this, please let me know.

2 answers

✓ Accepted answer

Yes, parts have a Velocity vector property which is essentially their movement direction scaled by their speed.

Velocity.Magnitude tells you the speed at which the object is moving (in studs/s), and Velocity.Unit gives you the direction only, with a magnitude of 1 stud/s.

1 comment

0

thanks

I think you are wanting the humanoid to walk to a certain part, in that case, you can do the following:

local Humanoid = _______ --Show the humanoid which you want to move
local Part = _______ --Show the part which you want to walk the humanoid to

Humanoid:MoveTo(Part.Position)

This discussion is preserved as it was. New answers, comments, and votes are closed.