#The Script restarts the idle crouch animation whenever a key is pressed on the keyboard.

14 messages · Page 1 of 1 (latest)

broken vale
#

I noticed that every time I'm crouched and standing still and press any key, the idle crouch animation resets... evilcat

  • And why is my "CheckMovement" function checking ALL keys? They should only check the ones I mentioned. Clownin

I mentioned only: ( "W, A, S, D, LeftShift, LeftControl")

Please help me resolve this in my script. fingerguns

ripe prism
#

What is that font!?

lethal mica
broken vale
ripe prism
broken vale
#

I solved my problem with my script. I forgot to check the logic... I'll send the new script here, so you can see what I changed.

sick sailBOT
#

studio** You are now Level 1! **studio

broken vale
#
  • I change the function "CrouchPlay". After updating my script it stopped restarting the inactive crouch animation.

In this moddification the script make this:

If Animation of Crouch(Walking) is not playing and Movement is detect then
Animation of Crouch(Walking) is played And The player not jump in this action.

If Animation of Crouch(Idle) is not playing and Movement is not detect then
Animation of Crouch(Idle) is played and the WalkSpeed is charged for 8 and JumpHeight for 0(If JumpHeight == 0 then Player not can Jump).

If player not run then the Walk Speed from the player is changed for 16 and player can jump now.

#
  • In the "CrouchStop" function I placed a condition that causes the inactive animation to stop only if the "CrouchValue" is false.
sick sailBOT
#

Here you go! WIZARD6

sick sailBOT