📅  最后修改于: 2022-03-11 14:56:16.060000             🧑  作者: Mango
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)