i used a diferent methode that i found while looking at terraria model thanks to 3Fa_I for the method