Trying to spin an object
The most I was able to do is this, but this is far from what I want. I want the item to spin around like a mario coin. Any idea on how I would do this with my script?

This was done with:
var newVal = Math.sin(getTime() * 2);
script.getSceneObject().getTransform().setLocalRotation(new quat(0, 0, 0, newVal));
Hey Charlie! You're on the right track.
The sin is what's causing it to go back and forth like that. So for your spinning coin you don't need it. Also, it sounds like you want to spin about the Y axis. Because quaternions are a bit hard to work with, you can convert a vec3 euler angle into a quat which then is set in the rotation. One thing to keep in mind is that our euler angles are in Radians. Here's an example of spinning about the y axis just like a spinning coin. It has a configurable spin speed in the inspector:
Amazing! Thank you so much ☺