script for changing the material of platforms