I want a player to tell his name an NPC. I put a local script into the DialogChoice

script.Parent.UserDialog = "My name is".. game.Players.LocalPlayer.Name .."Who are you?"

but it does not work

2 comments

0

Is this inside of a localscript?

0

Place it inside a LocalScript. If you happen to need it written server-side, how are you triggering the NPC to say their name?