How to clone a table schema (including indices) in SQL Server?
To change the behavior of Script Table As, use Tools | Options | SQL Server Object Explorer | Scripting | Table and view options as Scott Hodgin originally suggested in a comment.



Alternatively, if you want to script out multiple objects at the same time, you want to use the Generate Scripts functionality.  Right click on the database in question, select Tasks --> Generate Scripts.  Then the wizard will walk you through further options.  You can even have it script out the data.



You can select all objects of a type, or specific objects to be scripted. By default, some parts of the database aren't scripted, including some things you might expect - like statistics contents.