:SubscribeAsync not working and I can't figure out why

Hello!

I’m currently working on a ban system and :SubscribeAsync simply does not seem to want to work. I’ve tried rescripting the function a few times and it doesn’t work and I have no idea why.

Script:

messagingService:SubscribeAsync('UserBanned', function(data)
    data = data.Data
    print('rec server') -- doesn't print
    local player = players:GetPlayerByUserId(data.UserId)
    local length = formatTime(os.time() + tonumber(data.Length))
    if player then
        player:Kick('\nYou have been banned:\n'..data.Reason..'\n\n'..'Expires: '..length..'\n\nModerator: '..data.Moderator..'\n\nIf you believe this is a mistake, DM @7z99_ on Twitter.')
    end
    local playerData = dataStore:GetAsync(data.UserId)
    if playerData then
        playerData['BanInfo']['Banned'] = true
        playerData['BanInfo']['BanReason'] = data.Reason
        playerData['BanInfo']['UnbanTime'] = os.time() + data.Length
        playerData['BanInfo']['Moderator'] = data.Moderator
    end
end)

createBan.Event:Connect(function(userId, length, reason, moderator)
    local data = {
        ['UserId'] = userId;
        ['Length'] = length;
        ['Reason'] = reason;
        ['Moderator'] = moderator;
    }
    print('rec') -- prints
    messagingService:PublishAsync('UserBanned', data)
end)

Are there any errors?
Have you tried with Roblox Player?
Are there two servers?

No one can’t help you just by not working.

No errors.

Haven’t tried in the player, however I did notice that sometimes it fired even though it was the same server in Studio.

Tried in two different servers in-game to no avail.