Also, whenever I tap my pen lightly on my tablet, it creates dots in photoshop, but whenever I try to make a line, nothing appears.
Could you please let us know the operating system you are using? Please take a look at this article Cannot paint with stylus when zoomed in on image | Windows 10 if using Windows 10.
If not so, please refer the below help articles as per your OS:-
Let us know if that helps.
I have a Windows 10 and the paintbrush tool doesn't work regardless of whether I'm zoomed in or out. None of those articles helped me, unfortunately.
I have the same problem. Photoshop allows me to create lines using a mouse, but doesn't with my drawing tablet.
I still can't find a soloution.
I've been struggling with this problem since early this year, after Windows 10's April update. It seems to be related to that. You probably won't have the same issues on an earlier version of Windows, but I have not found a solution to this problem on Windows 10. It's not a problem shared by Krita, though, so as a workaround, you could draw and paint in Krita, which is free, and come back to Photoshop for editing and text and filter effects.