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

MoveTo Method

I understand this works with both humanoids and parts/models, but I haven't been able to understand the concept. No matter what I try the code never works and most of the time I don't even get an error for it. Does MoveTo even work anymore? If so, can someone give me a short code example that I can try out. Thank you.

1 comment

0

unanchor the humanoid root part

1 answer

✓ Accepted answer

The most common :MoveTo() method is for use on models. They move an entire model to a new position.

Workspace.Model:MoveTo( Vector3.new(0,0,0) )

The second is for living Humanoids. It will make them walk to a new point. It also requires a part, but this is usually given as the base and deemed unnecessary in new work. Try finding a free-model NPC that doesn't do anything (I have one in my models called New Make NPC you can use). Then test the MoveTo method on it.

Workspace['NPC Name'].Humanoid:MoveTo( Vector3.new(0,0,0), Workspace.Baseplate )

1 comment

0

The arm welds are upside-down!

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