There is no script..
If your database was containing relationships like Parent and child ,
Database Diagram option from SSMS will give you complete picture for selected Objects. If there is no relationship btw tables they are shown as independently...Else they connected with Key relationship.