#Dialog Module Problem

8 messages · Page 1 of 1 (latest)

wind lion
#

local function setText(sentence, text)
    local textlabel = text
    textlabel.Text = ""
    for i = 1, string.len(sentence) do wait(0.025)
        textlabel.Text = string.sub(sentence, 1, i)
    end
end

function dialogue.create(player, npc, chatsTable)
    local dialogueFrame = player.PlayerGui.DialogUI:FindFirstChild("DialogFrame")
    
    if dialogueFrame.Visible == false then
        local characterName = dialogueFrame.CharacterName:FindFirstChild("Title")
        local message = dialogueFrame:FindFirstChild("Message")
        local nextButton = dialogueFrame:FindFirstChild("NextButton")
        local option1 = dialogueFrame:FindFirstChild("Option1")
        local option2 = dialogueFrame:FindFirstChild("Option2")```

**ReplicatedStorage.DialogueCreater:14: attempt to index nil with 'Visible'**

[This is not the entire script]
pastel scroll
#

when you hit play open up your PlayerGui and take a look. see if you see it

kindred flowerBOT
#

studio** You are now Level 2! **studio

pastel scroll
#

DialogFrame -> DialogueFrame

wind lion