Answers for ":MoveTo() roblox"

0

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)
Posted by: Guest on September-23-2020

Browse Popular Code Answers by Language