rendering a ao pass

how do i make a ao pass in blender cause when i render out a ao map it is always all splotchy and never looks like the one to the right of this image:


Best guess: either turn up the sample density for AO, or switch to Approximate AO. Raytraced AO can be grainy if the sampling density isn’t high enough.

Edit: Can you post an image of the AO pass you’re getting right now?

thanks so much now my textures will look alot more clean and less grainy