Why doesnt this work?

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")

Is the place published? MessagingService won’t work in a local place file.