I am trying to detect remote events being sent from the client, but since the plugin is running on the client, i can’t use .OnServerEvent, how can i get around this?
I don’t know how to get around this engine limitation, heres the code
local events = {}
local output = script.Parent.Parent.Server
local function addv(v)
if v:IsA("RemoteEvent") then
v.OnServerEvent:Connect(function(...)
output:FireAllClients(v.Name, ...)
end)
end
end
for i,v in game:GetDescendants() do
addv(v)
end
game.DescendantAdded:Connect(addv)
“output” variable is a RemoteEvent that sends info to a main script about what happened in a Event. but since its erroring when using .OnServerEvent, it can’t send anything to the output.