Hey, I’m back…
AGAIN
Anyways,
how can I rotate my planes with WASD
I’m guessing you use remote events and user input services, but what body mover do I use?
Thanks,
–Luke
Hey, I’m back…
AGAIN
Anyways,
how can I rotate my planes with WASD
I’m guessing you use remote events and user input services, but what body mover do I use?
Thanks,
–Luke
I’d probably use something along these lines
Use ContextActionService to detect input
Have a table of the directions for each key, ex:
local directions = {
Enum.KeyCode.D = 90
Enum.KeyCode.S = 90
Enum.KeyCode.A = -90
Enum.KeyCode.W = -90
}
Check if the key is equal to one of the values, if it is; apply the given rotational force for that key.
Check if the key should move them on their lookVector lets say they are facing the left side of your monitor, if they press the A key it should move them forward.
If so, don’t apply rotational force, move them forward with Humanoid.Move
This is a rough draft; Although I’m not sure what the directional values should be set to, I still believe this is the right way to start doing it. Probably needs tweaking