You can build an Xray machine at home by carefully following this howto guide. However Xrays, like other forms of radiation, can be dangerous. To safely build an Xray machine and experiment with radiation, you must read all parts of this guide as well as an Introduction to Radiation Radiation Safety.