How to make a fly script with keys

I need help making a flying script for my game, i want to be able to use keybinds and not the camera someone can give me some ideas or tips to make it?

Thanks for reading

What do you mean by this? Do you want the player to press a key instead of clicking a GUI?

no, i want to make a fly script like you need to press keybind to move

Use UserInputService

that is obviously the problem is i don’t know how to make the flying script and i need an idea of how to do it

You can use BodyMovers, such as BodyVelocity and BodyGyro to move and orientate the flying player. Do some simple math with the movement keys so that the velocity will combine according to the pressed keys.