How to make dialog localized?

in my game im working on dialog. the dialog is shown above an npc. currently i wanted to change the dialog so when pressed its different for all the players, right now if u click on an npc it shows the dialog for everyone, thus everyone can change it/skip whenever they want to.
image

i wanted to ask which method is better to localize a dialog. ( of my knowledge please let me know if there is a better way than the two i list her)

  1. my pasting the npcs in workspace from a serverscript into each of the players games, this would allow for localized npc dialog. but im not sure if theres a better way to do so.
  2. in the script inside the npcs, theres a way to handle wether someone is talking to them (entering/exiting dialog, not just clicking) and during the dialog when another player clicks the npc says something like "busy "etc

Personally, I think the code should be in the NPC, and you can use paramaters on Mouse1Button functions to check which player clicked the NPC (I think).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.