using Sandbox; public sealed class MusicPlayerInteractions : SimpleInteractions.SimpleInteraction { [Property] public MyMusicPlayer MusicPlayer { get; set; } [Rpc.Broadcast] protected override void OnInteract() { // Log.Info($"{Rpc.Caller.DisplayName} interacted with {this.GameObject.Name}!"); MusicPlayer.Next(); } }