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”