Lua script for pixhawk

Hey can anyone help me with a script so my x1 joystick on my skydroid release my baitcontainers separate, high=right container low pwm left container, and so my y1 make a waypoint in my carp pilot pro app i have pixhawk 2-4-8

How it works now. Y1 high pwm release my left container on channel 2 and x1 high pwm for my right container. On channel 4.

I tried chat gpt, and earlyer i had it working not in boat but could see it in messages.
I know how too install and have enable scr.

Pretty limited with scripting on those if it will run at all.

Ok not what i want to hear :joy: