Animate Rope (5e Spell)
From D&D Wiki
|Casting time:||1 action|
You animate a nonliving rope-like object, such as string, yarn, cord, line, rope, or cable of up to 50 ft or a maximum of 10lbs.
You may give your rope simple movement and shaping instructions, such as: "Move one end up 30 ft in a vertical line, loop over that branch twice, and knot yourself." The rope itself does not deal damage, but can be used as a trip line, or noose-like object. If the rope is used to restrain a creature, you may attempt a special grapple.
Make a spell attack contested by the target’s Strength (Athletics) or Dexterity (Acrobatics) check (the target chooses the ability to use). If you succeed, you subject the target to the grappled condition.
At Higher Levels: When you cast this spell using a spell slot of 2nd level or higher, the spell's duration increases by 1 round for each slot level above 1st.