How can I fix the script that's not working?