The role of local environment in massive galaxy formation remains debated. Here I will present results from our recent VLA and ALMA observations of the most distant known X-ray cluster at z=2.51, which show clear signatures of environmental effects on the gas content and gas kinematics in its member galaxies. This provides direct evidence on the environmental dependence of massive galaxy formation at their peak formation epoch.