Steps :
- download the script in $HOME directory
wget https://raw.githubusercontent.com/Hax4us/Metasploit_termux/master/metasploit.sh
- Run
chmod +x metasploit.sh && ./metasploit.sh
Now you can use or run metasploit by command
msfconsole
Well in case of any error you can always comment here or open an issue on my GitHub repository Metasploit_termux