01 | function fStateIdle() |
02 | if lhumanoid then |
03 | if lhumanoid:GetState() = = Enum.HumanoidStateType.Freefall then |
04 | info.state = "Falling" |
05 | elseif info.state = = "Fighting" or (info.state = = "Dead" and lhumanoid.Health > 0 ) then |
06 | info.state = "Walking" |
07 | if shiftDown then |
08 | setSprint( true ) |
09 | end |
10 | else |
11 | info.state = "Walking" |
12 | end |
13 | setAnimation( 0.25 *((swordData.aMultiplier+swordData.aMultiplier)/ 2 ),info.fState,swordData.moveSet.idle) |
14 | local c 1 |
15 | c 1 = mouseEvent.Changed:connect( function () |