I would like to know if there is a simple way to do this, I tried some things I saw searching on google but it did not work.
tell window "Window"
set opaque to false
set alpha value to 0.5
end tell
No, basic standard AppleScript, by itself, doesn't have the commands to make buttons and windows transparent.
I'd look into using AppleScriptObjC and see if it's possible there.