Alright so I have a bodyvelocity in the humanoidrootpart and it follows whereever the player is looking which is what I want, but I also want it to take into account the Y, of the Camera, how would I add it to it?
Code
b.Velocity = humrp.CFrame.lookVector * math.clamp((humrp.Position - apos).Magnitude, 65,350)
So you want it to follow humrp.CFrame X and Z, but the Y of the camera? By way of warning, the camera can only be used in a LocalScript.
b.Velocity = Vector3.new(humrp.CFrame.lookVector.x, workspace.CurrentCamera.CoordinateFrame.lookVector.y, humrp.CFrame.lookVector.z) * math.clamp((humrp.Position-apos).Magnitude, 65, 350)