Yea sorry about not highlighting the part, thank you everyone for helping identify it. Its called the throttle position sensor.
It’s just my truck has been failing me. It’s been having problems from staying on. Every time I start the truck I have to keep accelerating or else if I let go of my gas pedal it dies on me. Do you guys think this would need to be replaced in order to fix the problem?