Making an airplane lift

I am trying to make a plane lift by this:

power.Force.X = script.parent(seat).throttle * 2

lift = power x 5

here is the script

local throttle = script.Parent.Throttle
local lift = script.Parent.Parent.Body.Attachment.Lift
local power = script.Parent.Parent.Body.Attachment.Power

script.Parent.Changed:Connect(function()
	power.Force.X = throttle * 2
	lift.Force.Y = power.Force.X * 2
end)

edit:

Forgot to add but every time I change the throttle (W or S Key)

I get this in the output: “X cannot be assigned to”

change it to this

script.Parent.Changed:Connect(function()
	power.Force = Vector3.new(throttle * 2, 0, 0)
	lift.Force = Vector3.new(0, power.Force.X * 2, 0)
end)

that is indeed correct, he didnt put it in a Vector3 so it didnt work.

1 Like

it works but the force doesn’t change

1 Like

Change it to

lift.Force += Vector3.new(0, power.Force.X * 2, 0)