NPC MoveTo Player

I have looked for simple answers but no promising results. I just want a dummy to follow a player from any distance, that’s all. Any help is appreciated.

(I also don’t know where to put the script)


You could use humanoid.WalkToPoint() and set the point to where the players torso is

I will try that, but where would I put the script?

this script wont work ignore pls

Get a dummy out of the build rig tab, and write this

local Animations ="Configuration")
Animations.Parent = script.Parent
local walk ="Animation")
WalkAnim.Parent = Animations
WalkAnim.AnimationId = "rbxassetid://507777826"

local plr = game.Players.LocalPlayer
local character = game.Workspace:WaitForChild(Player.Name) -- not display name!
local Bot = script.Parent
local humanoid = script.Parent:WaitForChild('Humanoid')
local walk = humanoid:LoadAnimation(WalkAnim)

My script wont work, sorry man :(

1 Like
local dummy = script.Parent
local playerToChase: Model = -- the player to chase

while task.wait(.25) do

(this is just the bare bones, you need to specify the player character yourself.)

Sorry for the late response, but would this be a local or server script?

Also, if you dont want a player to chase

local plr_name = game.Players.LocalPlayer.Name
local char = game.Workspace:WaitForChild(plr_name)
local dummy = script.Parent
local playerToChase: char = -- the player to chase


Try this and place this as a localscript.