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

How do we make a dummy or a zombie walk?

Okay. So I want to make a zombies that follows a player, and I've tried this script (in a local script)

while wait() do
	zombie:MoveTo(game.Players.LocalPlayer.HumanoidRootPart.Position)
end

But instead the zombie just stays there(the zombie is a dummy I've added by the plugin "Rig Builder"). I've also went in the zombie's Humanoid > WalkToPoint (1,1,1) but it doesn't work. Help will be appreciated!

1 answer

If my answer helped then please accept it so I can get reputation, thank you!

Make sure no bodyparts are Anchored and use humanoid:MoveTo(Vector3):

local dummyHumanoid = workspace.Dummy.Humanoid
-- defining Humanoid
local localPlayer = game.Players.LocalPlayer
-- defining LocalPlayer
repeat
-- repeat loop
dummyHumanoid:MoveTo(localPlayer.Character.HumanoidRootPart.Position)
-- using Humanoid:MoveTo() Function
wait()
until true == false

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