How should I handle sprinting state with Rodux?

Hello developers, I am trying to create a sprint system. It uses Rodux to manage the state.

I need to constantly call :getState() to decrement or increment the stamina which might break the code.

How should I fix this issue?

You could try using the Humanoid.StateChanged event.

Link.

1 Like