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

How can i make some thing move around?

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 .-.

2 comments

0

Is the "Ghost" a model?

0

No it's not its a part.

2 answers

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

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.

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