Playing the guitar is something cool.
Cool dudes play cool riffs.
But first, you need to learn how to play electric guitar.
Thankfully, there are many ways to do so be it online or with a teacher.
Even though most of the musical elements are the same between electric and acoustic instruments, the technique to produce sound differs greatly.
An electric guitar is very responsive and you don't need much to make it sound because it is plugged to an amp and any hit to the strings will make them sound and you control how loud or quiet that sound is with the volume on your amp.
That is why you need to develop good technique in order to play electric properly.
If you look at great players like Steve Vai or Joe Satriani, they shred at very fast speeds and high volumes and that is because they have spend the time teaching their hands how to work in harmony with each other.
An easy lesson would be to begin by warming up.
Spend 10 minutes warming up with basic right and left hand skills.
The point of this time is to focus on what both hands are doing and to listen to the quality of the sound that you are creating.
Is it in time? Is it in tone? In other words, does it sound good.
Then find a scale or a riff that interests you, set a tempo on a metronome that you can comfortably do and begin playing.
As soon as you begin making mistakes, slow it down.
Any good shredder will tell you that before you can play fast, you need to be able to play slow.
Learn to control both hands in unison and to avoid making unnecessary contact with other strings that are not being played, this will avoid feedback while playing at high volumes.
Increase the tempo once you are able to play the scale, the riff or the song without making mistakes.
Always challenge your comfort level without sacrificing quality.