they do make a tool that sets the sight on correctly, cosy is about 20.00
however, asuming this is a G.I. carbine,
look in the hole as you tap the front sight on, just watch to see if the hole lines up,
the sight pin is usually staked in place, so you may need to clean the hole with a round file.