#NPC text

1 messages · Page 1 of 1 (latest)

valid abyss
#
                if MakingDialogue == false then
                    MakingDialogue = true
                    createText("Interact with the door.",0.04)
                    task.wait(.5)
                    print("givequest")
                    dialogue.Visible = false
                    MakingDialogue = false
                end    
            end)

            diaRemotes.Opt2Selected.OnServerEvent:Connect(function()
                if MakingDialogue == false then 
                    MakingDialogue = true
                    createText("10 more minutes.",0.04) --Second text
                    task.wait(.5)
                    dialogue.Visible = false
                    MakingDialogue = false
                end
            end)

            diaRemotes.Opt3Selected.OnServerEvent:Connect(function()
                if MakingDialogue == false then 
                    MakingDialogue = true
                    createText("Cya",0.04) --Input your text for the third option of dialogue, usually for a goodbye.
                    task.wait(.5)
                    dialogue.Visible = false
                    MakingDialogue = false
                end
            end)```

i have two npcs with the same code, my issue is that if you levae the chat with them, and talk to another, they share the same remotes. how should i deal with this aside from making new remotes for **every** new npc?