Flying in Roblox depends entirely on the game you are in, but the control scheme on most aircraft-based places follows the same pattern.
Look for a plane tool in the game's interface, since most builds include one. With that equipped, use the keyboard:
Steering and throttle are then typically handled with the standard movement keys and the mouse, though the exact bindings vary from place to place.
Not every Roblox game uses this scheme, and some do not have flyable aircraft at all. Before assuming the controls are broken, check whether the game lists its own keybinds, which many do on a sign near the spawn point or in a help menu. Games built with custom flight systems often map throttle and pitch to entirely different keys.
So treat Y and X as the default to try first rather than a universal rule.