BY THE WAY I DO KNOW THAT THE BACK-RAY IS NOT BEING TESTED FOR! Running in a server script, inside of an AI's torso. The problem is when I try to get him to follow me with the first ray, I get this: Youtube Video
wait(1)
while wait() do
local frontRay =Ray.new(script.Parent.CFrame.p,script.Parent.CFrame.lookVector*300)
local backRay= Ray.new(script.Parent.CFrame.p,script.Parent.CFrame.lookVector*-300)
local part,pos=game.Workspace:FindPartOnRayWithIgnoreList(frontRay,script.Parent.Parent:GetChildren())
if part ~= nil then
print(part.Name)
print(part.Parent.Name)
if part.Parent:FindFirstChild("Humanoid") then
script.Parent.Parent.Humanoid:Move(part.Parent.Torso.Position)
print("moving")
end
end
end

2 comments
the second paramater for FindPartOnRayWithIgnoreList should be a table. ?
It is. its "script.Parent.Part:GetChildren()" or something