What is the function of the noun clause in this sentence?
Whoever doesn't have a car will need a ride to the movie theater.

indirect object

direct object

appositive

subject