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]
#Dialog Module Problem
8 messages · Page 1 of 1 (latest)
local dialogueFrame = player.PlayerGui.DialogUI:FindFirstChild("DialogFrame")
this is nil meaning it did not find it in DialogUI
when you hit play open up your PlayerGui and take a look. see if you see it
** You are now Level 2! **
Oh my bad, thank you so much. I hate when this happens haha