Ad
Log in to vote
0

MoveTo Method [closed]

Asked by
bloxxyz 274 Moderation Voter
7 years ago

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.

0
unanchor the humanoid root part Sulu710 136 — 1y

Locked by JesseSong

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
MrNicNac 855 Moderation Voter
7 years ago

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 )
0
The arm welds are upside-down! ReadyHappiness 109 — 3y
Ad