Look in the code to see how its done!
If you want to use this, please give credit to @RandomMan370Again