Trying to use :FindPartOnRayWithIgnoreList but :FindPartInRegion3WithIgnoreList comes up instead?
local turret = script.Parent
local RayCharles = Ray.new(turret.Position, Vector3.new(0,50,0))
while wait(1) do
local hit, positon = game.Workspace:FindPartsInRegion3WithIgnoreList()--Won't say anything about FindPartOnRayWithIgnoreList
end

2 comments
FindPartsOnRay is depracated, use the new raycast system instead (https://developer.roblox.com/en-us/api-reference/function/WorldRoot/Raycast)
Ok Thanks