I want to know if it affects ´cause my friends guitar and mine have sound different...so while the gauge is bigger it has a heavier tone¿
That is true to a point but string gauge is just one, very small, part of a huge equation most of which is taken up by two things: the amp and your playing.

Without a good amp and at least confident playing you'll never sound good live.
R.I.P. My Signature. Lost to us in the great Signature Massacre of 2014.

Quote by Master Foo
“A man who mistakes secrets for knowledge is like a man who, seeking light, hugs a candle so closely that he smothers it and burns his hand.”

Well, there is also the fact of your style. Thicker strings are harder to bend, so if you like bending, you probably won't want to use strings over gauge 10. If you get cheap strings, it will affect the sound, but that is definitely one of the very lesser things on the road to guitar tone.
Quote by jett12
yeah....why else would there be different gauges..

For different tunings and tensions? I'm pretty sure that miniscule difference in sound that can require you to completely re-setup your guitar and change the hardware you're using is NOT just a side-effect...

Soda sucks.
String gauge normally effects the "beefy-ness" in your tone.

He's laughing at YOU.
You better click that bastard.

Ibanez RG370DX
Peavey Valveking 112 (w/ Bad Monkey and GE-7 EQ)
i always use thin gauge i personally think its sounds better

i use ernie ball 9 super slinky
I use a heavier gauge than normal, it gets me that beefy sound I love.
Quote by jonathan92
schecter damien 7 is one monster of a guitar.

[Proud owner of a Schecter Damien 7]