Universal Script 📌
23.9k Views
50 Executions

RemoteEventAndFunctionLogger

Universal Script 📌
Aura
AuraPublished 25
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

I only made this because remote spy doesn't work on Solara executor join my discord you bad bleep https://discord.gg/nWbqsUDcQx https://discord.gg/nWbqsUDcQx Prints remote events prints remote functions

View Raw
local function printArguments(...)
    local args = {...}
    print("┌── Arguments ────────────────────────────")
    for i, arg in ipairs(args) do
        print(string.format("│ Argument %d: %s", i, tostring(arg)))
    end
    print("└──────────────────────────────────────────")
end

local function printRemoteCall(remoteType, remoteName, printFunc)
    printFunc("╔═════════════════════════════════════════╗")
    printFunc(string.format("║ %s fired: %s", remoteType, remoteName))
    printFunc("╚═════════════════════════════════════════╝")
end

local function wrapRemote(remote)
    if remote:IsA("RemoteEvent") then
        remote.OnClientEvent:Connect(function(...)
            printRemoteCall("RemoteEvent", remote.Name, warn)
            printArguments(...)
        end)
    elseif remote:IsA("RemoteFunction") then
        remote.OnClientInvoke = function(...)
            printRemoteCall("RemoteFunction", remote.Name, error)
            printArguments(...)
        end
    end
end

local function wrapRemotesInFolder(folder)
    for _, obj in ipairs(folder:GetDescendants()) do
        if obj:IsA("RemoteEvent") or obj:IsA("RemoteFunction") then
            wrapRemote(obj)
        end
    end
    folder.DescendantAdded:Connect(function(descendant)
        if descendant:IsA("RemoteEvent") or descendant:IsA("RemoteFunction") then
            wrapRemote(descendant)
        end
    end)


Comments

6
Log in to join the conversation. Login
SkireScripts's profile picture
SkireScripts2 years ago(edited)

why did you make it print arguments as string tables? like simple spy? its very simple to make

1
Aura's profile picture
AuraUploader2 years ago(edited)

@LanIsMe making a ui for it too

1
LanIsMe's profile picture
LanIsMe2 years ago(edited)

how can i get the script for the event

1
synzxl's profile picture
synzxl2 years ago(edited)

What is this even for I sound dumb

1
Aura's profile picture
AuraUploader2 years ago(edited)

@Opllohn great now drop a like pls :)

1
Opllohn's profile picture
Opllohn2 years ago(edited)

glad he made this ngl

1

Tags

More universal scripts

See all
Script hub
444.1k
894.2k
Bumped 9 minutes ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 71 Supported Games + OP!

Universal Script 📌
263
46
Bumped 43 minutes ago
Universal Script 📌
4.6k
9.1k
Bumped 54 minutes ago
Universal Script 📌
4.5k
36.3k
Bumped 3 hours ago
Universal Script 📌
3.4M
196.8k
Bumped 4 hours ago
Key System
Universal Script 📌
1.4k
4.0k
Bumped 4 hours ago
Script hub
177.6k
1.7M
Bumped 5 hours ago
Key System

Script hub

#20 this week

Verified script badgeAirflow HUB