Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 🔍 Quick Remote Detector (prints full FireServer call)
- local function toLit(v)
- local t = typeof(v)
- if t == "Vector3" then
- return ("Vector3.new(%s,%s,%s)"):format(v.X, v.Y, v.Z)
- elseif t == "CFrame" then
- return ("CFrame.new(%s)"):format(table.concat({v:GetComponents()}, ","))
- elseif t == "Vector2" then
- return ("Vector2.new(%s,%s)"):format(v.X, v.Y)
- elseif t == "string" then
- return string.format("%q", v)
- elseif t == "table" then
- local s = {}
- for i,v2 in ipairs(v) do s[i] = toLit(v2) end
- return "{ "..table.concat(s,", ").." }"
- elseif t == "Instance" then
- return v:GetFullName()
- else
- return tostring(v)
- end
- end
- local old; local inHook=false
- old = hookmetamethod(game,"__namecall",function(self,...)
- if inHook then return old(self,...) end
- local m=getnamecallmethod()
- if m=="FireServer" then
- inHook=true
- local args={...}
- local list={}
- for i,v in ipairs(args) do list[i]=toLit(v) end
- print(string.format("%s:FireServer(%s)", self:GetFullName(), table.concat(list,", ")))
- inHook=false
- end
- return old(self,...)
- end)
Advertisement
Add Comment
Please, Sign In to add comment