Wrong character movement after adding weapon socket

Weong character movement - YouTube character goes in wrong directions when pressing w,a,s,d

so I ll leave this here if anyone ever has this problem, in you weapon class make sure your static mesh collision is set to no collision, that s it