OBJECTNAME.rotateY = 100/(frame/500); You'd substitute the rotation direction with whichever direction you want. You'd also want to experiment with the number amounts to get the speed you want.