if its multiplayer the stamina logic needs to be on Server too.
dont use retriggerable delays use a SetTimeByEvent (looping, 0.5)
since its run on server the client shouldn’t be Setting IsSprinting anywhere.
in your Stamina>0 branch goes to false and then has a Stamina<=0 setting Sprinting true.