Imperious123

Untitled

Dec 8th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. local mt = getrawmetatable(game)
  2. local oldNamecall = mt.__namecall
  3. if setreadonly then setreadonly(mt, false) else make_writeable(mt, true) end
  4. local namecallMethod = getnamecallmethod or get_namecall_method
  5. local newClose = newcclosure or function(f) return f end
  6.  
  7. mt.__namecall = newClose(function(...)
  8. local method = namecallMethod()
  9. local args = {...}
  10.  
  11. if tostring(method) == "FindPartOnRayWithIgnoreList" then
  12. table.insert(args[3], game:GetService("Workspace").Map)
  13. return oldNamecall(unpack(args))
  14. end
  15.  
  16. return oldNamecall(...)
  17. end)
  18.  
  19. if setreadonly then setreadonly(mt, true) else make_writeable(mt, false) end
Add Comment
Please, Sign In to add comment