cant u just copy and paste the commands of the original script? or make your script call the joint orient proc