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

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

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

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

1 comment

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.

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