Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 🕵️ One-time FireServer detector (prints only once, then disables itself)
- local old
- old = hookmetamethod(game, "__namecall", function(self, ...)
- local method = getnamecallmethod()
- if method == "FireServer" then
- local args = {...}
- local out = {}
- for i,v in ipairs(args) do
- local t = typeof(v)
- if t == "Vector3" then
- out[i] = ("Vector3.new(%.3f, %.3f, %.3f)"):format(v.X, v.Y, v.Z)
- elseif t == "CFrame" then
- out[i] = ("CFrame.new(%s)"):format(table.concat({v:GetComponents()}, ","))
- elseif t == "string" then
- out[i] = string.format("%q", v)
- elseif t == "Instance" then
- out[i] = v:GetFullName()
- else
- out[i] = tostring(v)
- end
- end
- print(string.format("[Detected 🔥] %s:FireServer(%s)", self:GetFullName(), table.concat(out, ", ")))
- -- 🔒 Unhook after first detection so it never logs again
- hookmetamethod(game, "__namecall", old)
- end
- return old(self, ...)
- end)
Advertisement
Add Comment
Please, Sign In to add comment