Update script.cpp