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

How can i make some thing move around?

Asked by 8 years ago

Hi, im new here :3 im from lua learner...

Im makeing a horror game :3 but i dunno how to make the ghost move :p.....So i need ur help ._.

I need these to ask a question

Ignore: ????????????????????????????????????????????????????????????????????????????????????????

I guess, you should jus't answear it .-.

0
Is the "Ghost" a model? Goulstem 8144 — 8y
0
No it's not its a part. zaidRANGER 0 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago

To make something with a Humanoid move around, use walkTo, a property inside a Humanoid that makes the Humanoid's parent move around.

Ad
Log in to vote
0
Answered by 8 years ago

You should be using the :MoveTo() function. For example:

part = game.Workspace.Part
part:MoveTo(Vector3.new(0, 5, 0)

Note that :MoveTo() requires a position value.

This function can also be applied to humanoids:

game.Workspace.*PlayerName*:MoveTo(Vector3.new(0, 0, 0))

This works on pretty much every asset able to be in the workspace on itself.

As you want to move a ghost, the wiki will try to send you to the :Move() function, wich is better than using the :MoveTo() function.

Answer this question