I've been trying to communicate between Clients and Servers via RemoteEvent. However, when I try to make a "function (remoteEvent Name).OnServerEvent()", there is an error saying "OnServerEvent is not a valid member of RemoteEvent". Please help, here is the code.
In the Client Script:
-- all of this is previously defined
folder:WaitForChild("MG"):FireServer(plr, "on")
In the Server Script:
function folder.Reload.OnServerEvent(onOrOff)
-- code
end

2 comments
To listen for OnServerEvent, your script needs to be a Script, and vice versa.
My mistake, the second line of code is in the Server Script.