Depends on the position, but normally, it's prophylaxis against Bg5 or Ng5, while also providing a getaway square for the king.
What is with the move H6?

Ok but if the opponent jus plays it randommly
If an opponent just plays it randomly, then it is a random move, otherwise it is as HudsonBassett said.
Yeah that was what i was thiniking but has it ever happend that the h6 move has been played in a
"good" way. maybe a way to spark a winning attack

Every move you play should be the best one. Don't play h6 (h3) if it's not the best one. That in essence is it. As MelvinGarvey already pointed out, as an opening move, h6 (h3) in 99% cases is a bad move, plus it makes your castle vulnerable.

huh really?
Yes.
The sooner you take it seriously and stick to it the sooner you get on the track to become a better player.
After some time of playing chess, i have seen many people make the move h6.
Can someone tell me what the point of the move is, and btw it is after someone has castled
https://en.m.wikipedia.org/wiki/Prophylaxis_(chess)
After some time of playing chess, i have seen many people make the move h6.
Can someone tell me what the point of the move is, and btw it is after someone has castled