Nothing’s wrong with it, they both work.
If you are trying to print a message then on the server you can try doing this:
RemoteEvent.OnServerEvent:Connect(function(Player, Function, Table)
if Function == "PrintAMessage" then -- If what you want to do is print the message
print(Table.Message) -- Prints the message in the table
end
end)