I want to be able to receive all remote events that have been fired without the script receiving one specific one
game.ReplicatedStorage.remoteEvent1:FireServer()
or
game.ReplicatedStorage.remoteEvent2:FireServer()
[any remote event].OnServerEvent:Connect(function()
end)
And in both scenarios the server would receive it with just one script
coo1ifyy
(coo1ifyy)
2
for i,v in pairs(game:GetDescendants()) do
if v:IsA("RemoteEvent") then
v.OnServerEvent:Connect(function()
--whatever function
end
end
end
This listens for all the remote events at once and has the same function.
system
(system)
Closed
3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.