I did not want to do the code so I backpacked It from VirusMGYT Project
thanks to VirusMGYT for the code and before that thanks to @GriffPatch for the OG tutorial