As someone else said, it's really really hard to use a keyboard, a midi synth, and end up with a natural sounding guitar as a result.
It is kinda possible.... There are a few guitar synths.... Real Strat is one that I can think of off hand. They have really high quality sampled sounds. You need that because most midi and even a lot of the sample libraries are not very realistic sounding. Much of that has to do with the very unique articulations and noises and such that is inherent in the playing of a real guitar. But even using something like Real Strat requires a very unique skill set to add the articulations on the fly as one is playing. Use of the Mod wheel and certain parts of the keyboard are important to the realism aspect.
As I listened to this, I was noticing almost from the start that it didn't sound real. Just in the phrasing of the notes and the tone quality, it was evident that this was a keyboard attempt to emulate a guitar sound.... not saying that in a negative way, just expressing a fact.
Don't give up. Take the time to listen to it with an object unbiased ear and see where you went off the tracks. I heard a similar keyboard attempt at guitar many years ago on a different forum and it really took me several close listens to be sure it was a keyboard and not a guitar. The creator of that song in question was a keyboard player and rarely had guitar players contribute to his original music. The guitar playing and the solo in particular were really well done and it was hard to determine on a quick listen. Yep.... keep at it. That's the only way you get better.
Here's a link to Real Strat. Watch some of the videos.
https://www.musiclab.com/products/realstrat/video.htmlCheck out the Pat Benatar Hit Me With Your Best Shot guitar solo and how it was made. Cool stuff.