Advertisement
Meliodas0_0

Island Royale Shoot Through Walls

Oct 2nd, 2019
1,577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 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" and game:GetService("Players").LocalPlayer.Character then
  12. if getfenv(2).script.Name == "Weapon_Handle" then
  13. table.insert(args[3], workspace.MapBase)
  14. table.insert(args[3], workspace.Debris)
  15. table.insert(args[3], workspace.Map_Objects)
  16. table.insert(args[3], workspace.Map)
  17.  
  18. return oldNamecall(unpack(args))
  19. end
  20. end
  21.  
  22. return oldNamecall(...)
  23. end)
  24.  
  25. if setreadonly then setreadonly(mt, true) else make_writeable(mt, false) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement