Question: how do i connect my iphone to my ipad for text messages?
Answer: Each device is signed in to iCloud with the same Apple ID.
On iPhone, go to Settings > Messages > Send & Receive. ... 
On iPhone, go to Settings > Messages > Text Message Forwarding, then choose which devices to allow to send and receive text messages from this iPhone.