Instruction: Extract information from the supporting document to answer the given question.

Input:
Question: Will it autofocus on D5300?
Document: This is a great lens!! It takes fantastic photos! But make sure that your camera is compatible with it or the autofocus will not work.
This lens is so very lovely. At 50 mm it is perfect for portrait work and can turn just about any lighting into the right lighting. Autofocus is rather advanced and I am perfectly satisfied with this purchase.
I do some portrait photography, and needed to replace my 50 mm lens that doesn't have autofocus as an option. Love nikkor lenses for their quality and their affordability just makes them that much better.
Nice bokeh....Captures natural light almost perfectly....some of the images taken after twilight came out amazing. Autofocus is fairly fast. Close-ups are also very good.
Works just as great as described by those who recommended me this lense.. Now I have all what I wanted from a low budget lense for the beginner. Fast, reliable and quiet autofocus, good picture, and not bad images made in half light. Would recommend!
The focus ring is a nice grippy rubber, but has a little play to it before it moves the focus - I assume this is because of the manual focus override when using autofocus, so this is something I am perfectly fine with. The distance scale window is large and easy to read, but the scale itself only contains a few markings.
Minus one star.- The focus has no hard infinity stop...not ideal for astronomy shooting.- My on-lens switch came mis-painted...they painted "M" for manual, but "M/A" for autofocus. Go figure.CONCLUSION:  As you can see, the cons outnumber the pros on my list.
This lens is out of stock for months now, but I finally found one on craiglist. The images taken with this lens (on the D90) are stunning: sharp, sharp, sharp. Colors are vivid and the autofocus is fast. Add to that the light weight, the good build quality (with a joint on the mount) and the small size.
For the price, there's very little to complain about. This lens is extremely sharp, relatively lightweight, and focuses quickly. It will autofocus on bodies without an AF motor (Mostly Dxx00 series such as D3200, D5100, etc. ), and on a crop sensor would be comparable to a 75mm lens, making this great for portraits.
this lens is great, i use it with my nikon d3000, which does not normally have autofocus with the other 50 mm lenses but does with this lens. i am not an expert but it is much better than the stock lens that comes with the camera. it has sharp photos and easy to use with autofocus. it also does a good job of blurring the background and focusing on the central item in the picture.
Answer: Yes. An "AF-S" lens will auto focus on an Nikon DSLR. The AF-S lenses have built in auto focus motors.