MessageService returning "{}"

I’m trying to use MessageService and it’s returning {} no matter what I give it

local connection = messagingService:SubscribeAsync("topic", function(e)
	ChatService:Chat(script.Parent.Part, e, "Green")
end)
---
local msg = "globalmessage hello world"
messagingService:PublishAsync('topic',string.sub(msg,15))

Can you show us the code? We can’t help without it

Messaging Service provides extra Unix time code in the subscribe method (when exactly was the message sent). If you are interested in data only, you can access it via .Data

ChatService:Chat(script.Parent.Part, e.Data, "Green")
1 Like

i provided a code snippet in the post

Thanks a lot, I changed it and it worked.

Sorry I didn’t explain well because as Sleazel said the “e” isn’t the message itself but a table so I meant the publishasync function as code. Nevermind