ColdSpecs

Working (Detect remote but won't shoot ball)

Nov 2nd, 2025
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. -- 🔍 Quick Remote Detector (prints full FireServer call)
  2. local function toLit(v)
  3. local t = typeof(v)
  4. if t == "Vector3" then
  5. return ("Vector3.new(%s,%s,%s)"):format(v.X, v.Y, v.Z)
  6. elseif t == "CFrame" then
  7. return ("CFrame.new(%s)"):format(table.concat({v:GetComponents()}, ","))
  8. elseif t == "Vector2" then
  9. return ("Vector2.new(%s,%s)"):format(v.X, v.Y)
  10. elseif t == "string" then
  11. return string.format("%q", v)
  12. elseif t == "table" then
  13. local s = {}
  14. for i,v2 in ipairs(v) do s[i] = toLit(v2) end
  15. return "{ "..table.concat(s,", ").." }"
  16. elseif t == "Instance" then
  17. return v:GetFullName()
  18. else
  19. return tostring(v)
  20. end
  21. end
  22.  
  23. local old; local inHook=false
  24. old = hookmetamethod(game,"__namecall",function(self,...)
  25. if inHook then return old(self,...) end
  26. local m=getnamecallmethod()
  27. if m=="FireServer" then
  28. inHook=true
  29. local args={...}
  30. local list={}
  31. for i,v in ipairs(args) do list[i]=toLit(v) end
  32. print(string.format("%s:FireServer(%s)", self:GetFullName(), table.concat(list,", ")))
  33. inHook=false
  34. end
  35. return old(self,...)
  36. end)
  37.  
Advertisement
Add Comment
Please, Sign In to add comment