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)