ADVERTISEMENTREMOVE ADS

Remote event detector

Universal script
2 months ago
Script preview thumbnail
Script Preview
ADVERTISEMENTREMOVE ADS
29 Lines • 825 Bytes
Raw
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local function detectRemoteEvents()
local remoteEvents = {}
local function scanForRemoteEvents(parent)
for _, child in ipairs(parent:GetChildren()) do
if child:IsA("RemoteEvent") then
remoteEvents[child:GetFullName()] = child
elseif child:IsA("RemoteFunction") then
remoteEvents[child:GetFullName()] = child
end
scanForRemoteEvents(child)
end
end
scanForRemoteEvents(game)
scanForRemoteEvents(ReplicatedStorage)
return remoteEvents
end
local detectedEvents = detectRemoteEvents()
for name, remote in pairs(detectedEvents) do
print("Detected Remote:", name)
end
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS