You want to pull the message always or just one time?
while true do
local _, localNetworkCard, remoteAddress, port, distance, message = event.pull("modem_message")
print(message)
end
or
local message
while true do
local _, localNetworkCard, remoteAddress, port, distance, msg = event.pull("modem_message")
if msg then
message = msg
break
end
end
i think that will work, if not the first one sure will. I hope i helped you