void createTrail() { LeftHand.AddComponent <TrailRenderer>(); trailrendLeft = LeftHand.GetComponent <TrailRenderer>(); trailrendLeft.time = 120.0f; RightHand.AddComponent <TrailRenderer>(); trailrendRight = RightHand.GetComponent <TrailRenderer>(); trailrendRight.time = 120.0f; }