How to attach weapon to other characters?

“Temp” need to be refferenced somehow or it would be empty and i will get error: None trying to read property. So it cant be like you said.