I want to have the player's name inside a textbox when they enter the game. I put this inside the textbox but its not working.

m = script.Parent
function onPlayerEntered(nP)
m.Text = "..nP.Name.."

end