when I use the script 1, it returns the error “attempt to call a RBXScriptConnection value”, but when I use script 2, the error stops, but it returns with a nil error but i didnt even call, and even if I did, would not return nil, it would work normally. (The http service is enabled, I looked twice to try to resolve the 2nd error, but even if I didn’t trigger a message, the server returns the nil error.)
- Script 1
messagingservice:SubscribeAsync(“Test”,function(message)
end)
Output
Attempt to call a RBXScriptConnection value
- Script 2
function PrintMessage(message)
print(message.Data)
end
messagingservice:SubscribeAsync(“test2”,PrintMessage()
Output
Attempt to index nil with ‘Data’
.Data is the way to access a message sent by messagingservice, but I don’t even call the script, and it gives the error, and as I said, even if I did, it wouldn’t return nil, it would print the message data