How would I make this work?

I have a module that causes an ability to happen. A remote event connects with the client every time a key is pressed, and it sends the name of the function that it wants to happen. However, I don’t know how to make it work.

Server:

Remotes['Remote'].OnServerEvent:Connect(function(Player, 'FunctionName')
      -- If there is a function called 'FunctionName' in the module, how would I make this connect?
end)

Server script:

local module = require(script.ModuleScript)

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(Plr,FunctionName)
	if module[FunctionName] then
		module[FunctionName]()
	end
end)

Module script

local module = {}

module.Hit = function()
	print("Hi")
end


return module

Local script

script.Parent.MouseButton1Click:Connect(function()
	game.ReplicatedStorage.RemoteEvent:FireServer("Hit")
end)