BCE0019: 'RotationSpeed' is not a member of 'float'.

Hello! I’m following a tutorial → Unity 3d FPS Tutorial | Smooth gun movement | [Ep9] RE-UPLOAD | HD | Crystal Voice - YouTube

I have the same code as him at 12:30 min.

The code is this one

The point is that, when he uses it, it works (i think because he has an older version of unity3d in that video). But when I apply the same code it gives me this error

"Assets/Scripts/GunScript.js(28,118): BCE0019: ‘RotationSpeed’ is not a member of ‘float’. "

Any ideas? :slight_smile:

Sometimes reading code off a video can be difficult. If you look closely, you have a period ‘.’ just before RotationSpeed. In the video, he has a comma ‘,’. As in RotationSpeed is the fourth parameter to the SmoothDamp() function.