Set Rigidbody to Kinematic from radgoll after time

Hi, i have my Robot radgoll Game Object.
Every body part has an Character Joint and a Rigidbody.
I want that the Rigidbody is set to kinematic after some seconds.Im new in C# and i trie it:

public Rigidbody RigidbodytoKinematic;

voidUpdate() {
GetComponent();
yieldReturn.WaitForSeconds(20)
Rigidbody … i dont know hot :frowning:

Pls help me

Add this script to object with RigidBody component, and it’ll make it Kinematic after “timer” delay:

using UnityEngine;
using System.Collections;

public class Some : MonoBehaviour {

    public float timer = 20;

    IEnumerator Start() {

        Rigidbody RigidbodytoKinematic = GetComponent<Rigidbody>();
        yield return new WaitForSeconds(timer);
        RigidbodytoKinematic.isKinematic = true;
   }
}