There is no difference between these, it’s merely your preference. RemoteEvent.OnServerEvent:Connect(runcode())
is the same as saying: RemoteEvent.OnServerEvent:Connect(function() end)
Because your calling a function on a signal.
Whatever one works for you, no difference in how well written it is.