Okay so I have a character here, it’s a custom character. You can control it with basic movements like WASD controls. Now I added some additional controls:
- Left Shift: To run/sprint
- Left CTRL: To crouch/crawl or walk while crouched
The issue is I can move when I hold shift to run while holding w at the same time. Now when I hold CTRL it does work. But it only forces my character to crouch. It only plays the crouch animation. When I try to move by pressing W while holding CTRL, it won’t let me like the character is stuck or something. I checked the properties, the humanoid properties look fine. The WalkSpeed is not 0.
Sometimes I managed to move while crouching, which is a weird bug I don’t know what’s causing it.
Here’s a footage of the problem: 2021-06-09 21-08-18
If you take a look at the video, look closely on the output, it prints what I pressed.
It does print that CTRL is being held or pressed down. There, the crouch works, the animation plays but I can’t move while pressing CTRL and W at the same time. Unless I let go of the CTRL, it would cancel the crouch and I’ll be able to move again.
Sometimes, I sprint around then jump then press CTRL to crouch and I’m still holding w, now I can move, I am finally crawling (or crouch walking). The bug is weird, isn’t it?
This bug is confusing. It lets me move if I jump then crouch and hold W at the same time when I land on the ground. But if I’m not moving at all, I press CTRL to crouch then press W while holding CTRL, it just won’t let me.
If you have suggestions, questions, ideas, let me know in the replies below.
Contact me in discord: CLOWN#8679