whys my 98 Toyota Avalon making a ticking sound at startup and while driving? on 1998 Toyota Avalon

it also takes a while just to accelerate while driving in the streets. I have to step on and off the gas for it to accelerate more and more. I've driven up to 50mph just on the streets, haven't taken it on the freeway.

Asked by for the 1998 Toyota Avalon