Replace Toilet Water Supply Line
That shutoff looks super old.  I would turn off the main shut off, cut off the old shutoff and get a push-fit shutoff and toilet supply line. The new shutoff will be about $10 and the supply line will be about $5. You will also need a copper cutter or hack saw and possibly a meter key and pliers.