update player script