for _,Event in ipairs(game:GetDescendants()) do
pcall(function()
if Event:IsA("RemoteEvent") then
Event.OnServerEvent:Connect(function(Player,...)
local Arguments = {...}
local ArgumentString = ""
for i,Args in ipairs(Arguments) do
ArgumentString = ArgumentString .. (i > 1 and ", " or " ") .. tostring(Args)
end
print("RemoteEvent arguments:",ArgumentString)
end)
end
end)
end
Try that. Should even be nicely formatted, I think.