Setting Player Names

In our RP script we are making we have a character create menu. I need help creating a function that will change a players name to whatever they set it as in the DermaTextEntry fields. There needs to be a function that sets first and last name, any help appreciated.

Use “Setinfo name” in a think hook on client

Timer is better, since think can run too slow occasionally (If the client has a low framerate.) 0.1 or 0.01 is a good interval for the timer.

Timers use a think hook.