I am using a custom character for my game, so things may be different, I am still using a Humanoid
and everything else needed in a character, but I do not have an animation script.
So, I need to figure out how I can detect when the Player
is moving at a certain WalkSpeed
, and I cant seem to figure it out. This is what I tried.
1 | humanoid.Running:connect( function (speed) |
2 | if speed > 10 and speed < 16 then |
3 | print ( "Running" ) |
4 | end |
5 | end ) |
This should work if you have declared your humanoid the correct way.
However, you are saying if speed is > 10 and < 16. The standard walkspeed of a player is 16, but this will only print if they are 11-15 consider changing to this
1 | humanoid.Running:connect( function (speed) |
2 | if speed > = 10 and speed < = 16 then |
3 | print ( "Running" ) |
4 | else |
5 | print ( 'stopped Running' ) |
6 | end |
7 | end ) |
Locked by JesseSong
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?