Skip to content

Commit

Permalink
Merge pull request #95 from Perthys/patch-4
Browse files Browse the repository at this point in the history
Update RemoteSpy.lua
  • Loading branch information
Upbolt authored Mar 27, 2023
2 parents b9c475a + a0d2be4 commit c111dd6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/RemoteSpy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,16 @@ nmcTrampoline = hookMetaMethod(game, "__namecall", function(...)
if typeof(instance) ~= "Instance" then
return nmcTrampoline(...)
end

local method = getNamecallMethod()

if method == "fireServer" then
method = "FireServer"
elseif method == "invokeServer" then
method = "InvokeServer"
end

if remotesViewing[instance.ClassName] and instance ~= remoteDataEvent and remoteMethods[getNamecallMethod()] then
if remotesViewing[instance.ClassName] and instance ~= remoteDataEvent and remoteMethods[method] then
local remote = currentRemotes[instance]
local vargs = {select(2, ...)}

Expand Down

0 comments on commit c111dd6

Please sign in to comment.