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