Getting Weapon/scope for aim down sights

So I’m using the rifle from shooter example to use as a base for my weapon to make it center with where my scope on my weapon is but it is not working if someone can point me in the direction of either fixing the code to work with my weapon or to align my weapon up better please let me know thanks!