I want to be able to grab the username of the logged in person and display it on as a text label

You don’t even need the scripting function. There’s a client system tag that has the logged in user’s name, just bind that to your label text value.

@Kevin.Herron beat me to it!