How do I insert the name of the Player in dialogue

Anyone knows how do I insert the name of the player in dialogue?

image

1 Like

You use player.Name to use the players name.

1 Like

thing.text = "Good evening"..player.Name

In a script, to join two things together you put two dots (..)

When you’re creating the dialogue, set the string to "Good evening, "..game.Players.LocalPlayer.Name (or replace the localplayer instance with wherever you’re storing the players name if its a server sided script)
What this does is combines one string (the “good evening part”) with another string (the players name)

2 Likes