Unit not uprading to 3 level

that script is a server script should it be turned into a local script