Building a spectating button for a 1v1 map.

I need help building a spectating button for my 1v1 map. Can anyone help me?