📜  humanoid:move left roblox - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:16.060000             🧑  作者: Mango

代码示例2
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)