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

How to make a model move

Asked by 10 years ago

I have a game called Hunt Shedletsky. Where you obviously hunt him. But I need help scripting it(NOT SAYING I WANT YOU TO SCRIPT IT) . I just have a issue with it.

0
It isn't really clear what you want moving. A Humanoid? A part? User#2 0 — 10y
0
Since he said Model I'll assume he wants the :MoveTo() method. Azarth 3141 — 10y
0
Still not known if he wants a model or a humanoid, though. User#2 0 — 10y
0
No. I'll give you the link that is wanted to move like a zombie: http://www.roblox.com/Model-item?id=149236195 Roboy5857 20 — 10y

2 answers

Log in to vote
1
Answered by
Trewier 146
10 years ago

For this answer,I am assuming that Shedletsky is in Workspace

If you want Shedletsky to walk, you would use:

Workspace.Shedletsky.Humanoid:MoveTo(Vector3.new(0,0,0))

and change the Vector3 to wherever you want him to walk to. Or:

Workspace.Shedletsky.Humanoid:MoveTo(Workspace.Part)

You can make him walk to a part. Keep in mind, he will walk in a straight line, he won't use AI to walk around an edge to get up stairs or anything like that.

Now, if you want him to teleport, you would do something like this:

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

Or again, a part:

Workspace.Shedletsky:MoveTo(Workspace.Part)

Again, you would change the Vector3 to wherever you want him to teleport. However, keep in mind you can't teleport him inside of a space where he would collide with bricks, he would at the lowest valid point that is higher than the one you are trying to teleport him to.

I hope this helps you out.

0
I have a question. If I say Workspace.Shedletsky:MoveTo(Vector3.new(Workspace.Part) Can I change it to Workspace.Shedletsky:MoveTo(Vector3.new(Workspace.Players)? Roboy5857 20 — 10y
0
Uhm, if you want to move it to a player I would use something like this: Workspace.Shedletsky:MoveTo(Vector3.new(Workspace.playerName:GetCFrame() + Vector3.new(0,6,0)) This will move Shedletsky 6 studs over playerName's head. The six studs is not really neccessary, but it is a good idea to have it in there just in case. Trewier 146 — 10y
Ad
Log in to vote
-1
Answered by
Kratos232 105
10 years ago

I don't understand the question... Try using the MoveTo() Method, because that's the only way I can think of. Or you could just move everything in the model individually.

  • Kratos232

Answer this question