I'm not asking for a script, or what's wrong with it. I am just wanting to know something.
Is it possible to make the client think that a key has been pressed with the click of a Text Button? In other words, if I had a script that activated by pressing Z, this button would make the client think Z had been pressed, which would activate the script.
I don't think there is, and if it is, it must be really complicated. Just connect whatever function is bound to Z to a MouseButton1Click event in the text button.