Can't change LinearVelocity. "VectorVelocity cannot be assigned to"

I have a helicopter operated by a VehicleSeat. When the throttle changes to 1 (when the player presses or holds W), the VectorVelocity of the LinearVelocity present in the helicopter’s model is set to a higher Vector3 value so the helicopter can ascend.

However, I get this weird “VectorVelocity cannot be assigned to” error. That’s literally what the error says in the output. I don’t understand why it is happening or what I’m doing wrong, and everything in the helicopter works just fine, it’s just the velocity part that gives me this error and breaks the code.

Here’s the throttle part of the script. It’s not the whole script, but this is the part I’m struggling with. Yes, the variables are already set.

function throttle()
	if seat.Throttle == 0 then
		velo.VectorVelocity = Vector3.new(0,10,0)
	elseif seat.Throttle == 1 then
		velo.VectorVelocity = Vector3.new(0,100,0)
	end
end

seat.Changed:Connect(throttle)

On a different part of the script, I had a line of code that did this:

velo = Vector3.new(0,1,0)

In awe of the absolute stupidity of what I had done, I changed it to this:

velo.VectorVelocity = Vector3.new(0,10,0)

Now I’m just struggling with getting the velocity to actually lift the helicopter from the ground. It doesn’t seem to be happening.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.