I am by no means asking for a full script or incredibly specific code.
How would I script drive-by functionality for when you press a button while sitting in a car?
I understand how to check if the player is sitting down in a car, but I'm not sure on how to make the character bend over and lean out of the car.
Would I use an animation? Weld the torso? How would I change the position of the arms without killing the player?
I have tried using an animation, but every time I press the button the animation runs through once and then stops.
I want you to stick your head out the window as long as said button is held down.
Just some general steps would be appreciated.
This functionality is present in Moon City: https://www.roblox.com/games/679737281/link

4 comments
You would definitely need to use animations for this and certainly a bit of code, yes. Also, I've never used animations on ROBLOX but I don't think they loop over and over again, unless you make them do so somehow...
I'm sure this is possible. I've added a game example in the post.
"I have tried using an animation, but every time I press the button the animation runs through once and then stops." - Have you tried looping the animation?
I have. It just starts re-running the "lean out of the window" animation after I press the button.