A small example component that runs on start. It applies a continuous shaking rotation tween to the component using SbTween, with duration 0.6s and intensity 5, set to loop forever in a YoYo pattern.
using Sandbox;
using SbTween;
namespace SbTween.Examples;
public sealed class SbeTRS : Component
{
protected override void OnStart()
{
this.TweenShakeRotation( 0.6f, 5 ).SetLoops( -1, LoopType.YoYo );
}
}