Make a function which rolls it and call it when you need it to do so. Also, don't make the function do a full animation; doing so will waste some time. Try making the function show one frame at a time controlled by an incrementer which is increased each tick.