Messaging Service help

So i write this but SubscribeAsync not firing. Nothing is printed.

local ms=game:GetService('MessagingService')

ms:SubscribeAsync('Server',function(received)
	
	print(received.Data)

end)
workspace.Part.ClickDetector.MouseClick:Connect(function()
		
	ms:PublishAsync('Server','testmessage')
		
end)

Ok. I saw on youtube it not working in Studio.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.