Froglord1
Well it would depend on how you're specifically doing it.
It will most likely be much the same but with a condition that's more specific to your situation.
while true do
if global.property["sprinting"] == true then
player.stat["stamina"] -= 1;
else
player.stat["stamina"] += 1;
end;
wait(1);
end;
would be another example, if your sprint is a property state.
It all depends on how you have sprint setup.