#How can I create a Stamina Bar using skript?

1 messages · Page 1 of 1 (latest)

hard ledge
#

I want to create a stamina system, where there's a bossbar, that depletes when you start sprinting, and then cause you to slowdown, only recuperating if the player's not sprinting or standing still.

uncut sleet
#

Check the velocity, if it’s not 0 remove, if it is 0 add

hard ledge
#

Wdym

uncut sleet
#

Oh, if not sprinting, not just standing. Check if the velocity is less than that of sprinting

hard ledge
#

I can't create a working one

#

Can someone help me create a basic Sprint cooldown?

#

Stamina bar*

uncut sleet
#

Use on step and check if the player’s velocity is greater than the walking speed

hard ledge
#

Why is that necessary

uncut sleet
#

To see if you want to remove from or add to the stamina…

hard ledge
#

I got this: on toggle sprint: while player is sprinting: broadcast "&a+1" wait 0.1 seconds