Is their a way to make raycast to ignore more thing's like the npc and their teammates?
local ray = Ray.new(script.Parent.Head.CFrame.p, (TargetEnemy.Torso.Position - script.Parent.Head.CFrame.p).unit * 300) -- ignore the targetenemy
local part, position = workspace:FindPartOnRay(ray, game.Workspace.Allies and game.Workspace.Ignore, false, true) -- problem
-- right from the wiki ;)
