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

How to use Model.Humanoid:MoveTo(Vector3,Part) with a R15 Rig?

Asked by 5 years ago
local pos = game.Workspace.GreenFlag.PrimaryPart.Position
local part = game.Workspace.GreenFlag.PrimaryPart

game.Workspace.Zombie.Humanoid:MoveTo(pos,part)

I have created a script in the SeverScriptService.

I created the "Zombie" Model by going to Plugins --> Rig Builder --> R15 then changed the name to Zombie.

I created a part, grouped it to make it a model and named it "GreenFlag"

I clicked on the GreenFlag Model then in the PrimaryPart box then clicked on the GreenFlag in the Workspace.

Please! Could someone tell me why this does not work.

If I run game.Workspace.Zombie:MoveTo(pos,part) the Zombie is standing on the Green flag instantly.

No matter what I try I have not been able to make the Humanoid do anything.

1 answer

Log in to vote
0
Answered by 5 years ago

You're calling MoveTo on the model, which teleports the model to the specified position.

I think you're looking for Humanoid:MoveTo, not Model:MoveTo.

That would begame.Workspace.Zombie.Humanoid:MoveTo(pos, part).

0
If you check the code at the top you will see that is exactly what I have been doing, however it simply will not work using the R15 rig created from the plugins tools. Balvamar 5 — 5y
Ad

Answer this question