So I was making a sniper for my game and I figured out that Mouse.Hit can't detect an object from far away and returns as nil. How I can make Mouse.Hit detect the object from far away.
Mouse.Hit
will give mouse CFrame
To detect an object with mouse use Mouse.Target