my thinking is along the lines of this:
event1:Fire(message)
local timetowait = 30
local timewaited = 0
local reply
repeat
task.wait(1)
event2.Event:Connect(function(replymsg)
reply=replymsg
timewaited = 30
end)
timewaited+=1
until timewaited >= timetowait
if reply ~= nil then
--stuff
else
warn("nil reply")
end
that way the script doesn't wait endlessly if a function invoke falls through.
is this a reasonable idea, is it good for niche uses or is it better to just use Function instances?
and before somebody says that this takes too much space to use in every place instead of a function or whatever, consider:
module script that takes the inputs of the message, the outbound event and the inbound event that returns nil if it waited too long.
** You are now Level 2! **