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

How do we make a dummy or a zombie walk?

Asked by 4 years ago

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

Log in to vote
-1
Answered by
ryan32t 306 Moderation Voter
4 years ago

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
Ad

Answer this question