Update InstanceScript.cpp