"vectorToWorld is not a valid member of CFrame" Error

This is a line from my fly script and I seem to get this error when I start flying: Screenshot_20180719-201515_Discord

And this is the line:

local Direction = Camera.CoordinateFrame:vectorToWorld(Vector3.new(Controls.Left.Number + Controls.Right.Number), (math.abs(Controls.Forward.Number) * 0.2), (Controls.Forward.Number + Controls.Backward.Number) * Speed.CurrentSpeed)

Has anyone else experience this before and what is the solution to the problem?

[Deleted old post]
[Deleted old post]

4 Likes

Fixed it but now I’m getting another error

You’re passing a number, not a Vector3… Try doing Vector3.FromAxis(...) * number for each of your inputs.