Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Moving a model on button press???

How would I go about making my ship move when Im sat on a seat? Like if I pressed W it go forwards, S backwards and so on. Its a model, thats anchored and the 'water' im using in a huge mesh.

Im not asking for the script (Although that would be good c;) but a way Id go about doing this is what im really asking for. Thanks C: ~MrLego

1 answer

To detect the wasd movements, I suggest you to read this article. If your ship is anchored, you have to use some CFraming, and to make it smooth, a loop that checks the keyboard keys, if they are pressed, it keeps moving.

2 comments

0

Wouldn't it be easier to use KeyDown to go and KeyUp to stop instead of a loop?

0

yeah, the wiki suggests that, but if you unpress the key out of focus, it won't stop

This discussion is preserved as it was. New answers, comments, and votes are closed.