How do I make it so if I press a gui button that changes a degree on a HingeConstraint

So basicly I am making a plane with HingeConstraint and I waint to add a gui wich makes the flaps go down and a other button that the flaps go up, but I have tried to do it but I failed, anyone that can help

I have my HingeConstraint on Servo, so I use TargetedAngle

Photo’s:
https://gyazo.com/cc65a702a57867202e204cef44fd858d (Where the seat and flap controllers are in)
https://gyazo.com/64f7d061e73820aae4c64f0071a6570a (HingeContraints settings)

What I tried

function leftClick()
	script.Parent.Parent.Parent.Parent.FlapControl.HingeConstraint.TargetAngle == 15
end

script.Parent.MouseButton1Click:Connect(leftClick)

Im not that good in scripting im still in the learning im just searching some help :slight_smile:

There are two "="s, this is only used in if statements or any statements. Delete one of the "="s, hope this helps.

Also this category suppose to be in #help-and-feedback Scripting Support

Oh alright, sorry, thanks ill see what it can do.