They said on Facebook: “If you are parents or grandparents or great grandparents, or teachers, or guide leaders or scout leaders or youth workers – if you are in a position where you can speak to children, teenagers or young adults then please speak to them about the deadly dangers of train lines.
“They are not for playing on, they are not for short cuts, they are not places to hang out anywhere near.
“They are for trains. Just trains.
After the man’s death the railway line was closed for two hours with trains cancelled in both directions from Huddersfield and from Stalybridge to Huddersfield.
The train driver was given time off after the incident.
A spokeswoman for First TransPennine Express said: “He was immediately stepped down and has been put in contact with our support services. We offer counselling, time off and other services to our drivers in these unfortunate circumstances to help them recover from the shock and return to work.”