I have created a table and ran a loop to grab all of the Remote Events I have created and placed into a folder like this:
local Events = {} for _, event in pairs(GameEvents:GetChildren()) do table.insert(Events, event) end
Now my question is how would I be able to check if any individual event has been fired in that table? If it is even possible.
You'd have to loop through the contents of Events and create an event function for them
for _,v in pairs(Events) do v.OnServerEvent:Connect(function() --do stuff end) end
But if each even will do something different there's no point in doing this.
doing
local rem=--place rem.E1.OnServerEvent:Connect(function() --do stuff end) rem.E2.OnServerEvent:Connect(function() --do other stuff end)
would be fine.