i think its pretty self explanitory what it does, cant tell if im doing something stupid or not.
local messagingservice = game:GetService("MessagingService")
function prins()
print("hi")
end
local connection = messagingservice:SubscribeAsync("WORK", prins)
messagingservice:PublishAsync("WORK", "HI")