New to game and don't play DnD.
I feel like I am missing something here, as my spells that seem to use an Attack roll (I am assuming it uses that particular class stat - like CHA for Warlock or INT for Wizard, WIS for Cleric) seem to have very low percentages to hit compared to my attackers. Often even their own weapon use even with low dex or str. So things like Eldritch blast, Scorching Ray, Guiding Bolt. So I have been prioritizing spells with savings throws as opposed to hit rolls which is a little sad. It also makes by best damaging spell from my Bard (Dissonant Whispers) which is weird
I try and have Bless on. And I know elevation matters. But is there some mechanic I am missing, or any tips and tricks people have to help out here.
So the three biggest reasons people have issues are:
1. Attacking a mob in a dark area when you don't have either a light source on the target or darkvision to the range you are attacking (60/120 feet). (Imposes disadvantage)
2. Using a ranged attack while in melee range - some spells are melee range spells and some are not. Eldritch Blast for example is NOT a melee range spell. If you are in melee range and casting it you do so with disadvantage*.
3. Not having the right stats for the spells you are casting. As you guessed with Warlock its Charisma for spell attacks.
Hope that helps.
*Disadvantage means you roll two dice and take the lower number, it's about equivalent to a -5 to the roll depending. Its really bad.