script help translation

i have a rotate script, that have X, Y, Z rotation axis. I need to implement that in the translation script.

Here both script…

And this i need to implement the X, Y, Z in this script