Failed to write a script that can let palyer move only one block. #163
Answered
by
Zergatul
Andy718811
asked this question in
Q&A
-
|
I tried to put this script in keybind script, but the game just crashed, what I want is a code that when I press "J", the player will move one block left relative to current position. |
Beta Was this translation helpful? Give feedback.
Answered by
Zergatul
Jun 29, 2025
Replies: 1 comment 7 replies
-
|
I modified this code, it didn't crash the game, but when I press "J", my character just keep miving left. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just add a check in the code:
I don't know what else it can be. It works fine for me. Unless I look close to diagonal, and rotate the camera when script starts working. Then yes, it can go indefinitely to the left, but this left becomes …