Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CoreScriptsRoot/CoreScripts/MainBotChatScript2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ function endDialog()
if dialog and dialog.InUse then
-- Waits 5 seconds before setting InUse to false
setDialogInUseEvent:FireServer(dialog, false, 5)
delay(5, function()
dialog.InUse = false
end)
end

for dialog, gui in pairs(dialogMap) do
Expand Down Expand Up @@ -502,6 +505,7 @@ function renewKillswitch(dialog)
if thisCoroutine ~= nil then
if coroutineMap[thisCoroutine] == nil then
setDialogInUseEvent:FireServer(dialog, false, 0)
dialog.InUse = false
end
coroutineMap[thisCoroutine] = nil
end
Expand Down