I had a chat system that fired a remote event to a local script when you pressed a proximity prompt, that would say (with bubblechat) some sentences in a table. But I tested it today and roblox randomly broke it? I even reverted the place, the script is broken.
this broke ALL of the dialogue by the way, not just one
the NPC variable refers to a part
chats is a table full of strings
prox is the proximity prompt
and waittime is a number.
LocalScript
local RS = game:GetService("ReplicatedStorage")
local RE = RS.RemoteEvents
local Chaz = RE.Chat
local function ChatFired(prox,chats, waittime, NPC)
prox.Enabled = false
local numero = 0
local function Chat(message: string)
game:GetService("Chat"):Chat(NPC, message)
end
local function Chattin()
numero = numero + 1
Chat(chats[numero])
wait(waittime)
if numero ~= #chats then
Chattin()
else
wait(3)
prox.Enabled = true
end
end
Chattin()
end
Chaz.OnClientEvent:Connect(ChatFired)
ERROR (long)
CorePackages.Packages._Index.roblox_rodux.rodux.Store:13: Received error: Caught error flushing store updates
CorePackages.Packages._Index.roblox_rodux.rodux.NoYield:28: Argument 1 is invalid: expected 'Model' instance type
CoreGui.RobloxGui.Modules.InGameChat.BubbleChat.Components.BubbleChatBillboard:160 function didMount
CorePackages.Packages._Index.roblox_roact.roact.Component:351 function __mount
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:367 function mountVirtualNode
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:95 function updateChildren
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:122 function updateVirtualNodeWithRenderResult
CorePackages.Packages._Index.roblox_roact.roact.Component:347 function __mount
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:367 function mountVirtualNode
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:95 function updateChildren
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:114 function updateVirtualNodeWithChildren
CorePackages.Packages._Index.roblox_roact.roact.RobloxRenderer:273 function updateHostNode
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:237 function updateVirtualNode
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:74 function updateChildren
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:122 function updateVirtualNodeWithRenderResult
CorePackages.Packages._Index.roblox_roact.roact.Component:510 function __resolveUpdate
CorePackages.Packages._Index.roblox_roact.roact.Component:448 function __update
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:241 function updateVirtualNode
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:74 function updateChildren
CorePackages.Packages._Index.roblox_roact.roact.createReconciler:122 function updateVirtualNodeWithRenderResult
CorePackages.Packages._Index.roblox_roact.roact.Component:510 function __resolveUpdate
CorePackages.Packages._Index.roblox_roact.roact.Component:448 function __update
CorePackages.Packages._Index.roblox_roact.roact.Component:171 function setState
CorePackages.Packages._Index.roblox_roact-rodux.roact-rodux.connect:92
CorePackages.Packages._Index.roblox_rodux.rodux.Signal:99 function fire
CorePackages.Packages._Index.roblox_rodux.rodux.Store:198
CorePackages.Packages._Index.roblox_rodux.rodux.Store:18 function tracebackReporter
CorePackages.Packages._Index.roblox_rodux.rodux.NoYield:15 function resultHandler
CorePackages.Packages._Index.roblox_rodux.rodux.NoYield:28 function NoYield
CorePackages.Packages._Index.roblox_rodux.rodux.Store:197
CorePackages.Packages._Index.roblox_rodux.rodux.Store:194 function flush
CorePackages.Packages._Index.roblox_rodux.rodux.Store:82