Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mt = getrawmetatable(game)
- local oldNamecall = mt.__namecall
- if setreadonly then setreadonly(mt, false) else make_writeable(mt, true) end
- local namecallMethod = getnamecallmethod or get_namecall_method
- local newClose = newcclosure or function(f) return f end
- mt.__namecall = newClose(function(...)
- local method = namecallMethod()
- local args = {...}
- if tostring(method) == "FindPartOnRayWithIgnoreList" and game:GetService("Players").LocalPlayer.Character then
- if getfenv(2).script.Name == "Weapon_Handle" then
- table.insert(args[3], workspace.MapBase)
- table.insert(args[3], workspace.Debris)
- table.insert(args[3], workspace.Map_Objects)
- table.insert(args[3], workspace.Map)
- return oldNamecall(unpack(args))
- end
- end
- return oldNamecall(...)
- end)
- if setreadonly then setreadonly(mt, true) else make_writeable(mt, false) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement