roblox moveto part code example
Example: Move object beside player roblox :moveto()
local npc = script.Parent
local target = v.Character.HumanoidRootPart.Position
local maxDistance = 20
npc.Humanoid:MoveTo(target - CFrame.new(npc.HumanoidRootPart.Position, target).LookVector * maxDistance)