How do I make interaction possible for clients and not only hosts.

Hello, I am trying to create a simple mutliplayer game, since I am still learning all about multiplayer, I have some trouble making the player interaction work. I have this player interaction script below, however only the host of the game can actually interact with stuff, how do I make everyone be able to interact with gameobjects on the scene?

using System.Collections;
using System.Collections.Generic;
using Unity.Netcode;
using UnityEngine;

interface IInteractable
{
    public void Interact();
}

public class Interactor : NetworkBehaviour
{
    private Transform source;
    public float range;

    private void Start()
    {
        source = GetComponent<Transform>();
    }

    private void Update()
    {
        Ray r = new Ray(source.position, source.forward);
        if (Physics.Raycast(r, out RaycastHit info, range))
        {
            if (info.collider.gameObject.TryGetComponent(out IInteractable interactObj))
            {
                interactObj.Interact();
            }
        }
    }

}

The client probably interacts, it just doesn’t sync, to do that you need to implement ServerRPC methods:

ServerRpc | Unity Multiplayer Networking (unity3d.com)