Sprinting system Started working randomly?

i found the answer thanks:)

Could you explain what you expect to happen versus what really happens with this?

Make sure to paste scripts between three ticks

im trying to make a sprinting system that has a cooldown, mostly sprinting and cooldown works fine in the first time sprinting. after 1 cooldown, sprinting (and cooldown) doesn’t work

thanks for the tips

Edit:sometimes doesnt work in the first time too

Maybe your timer needs to be set to one_shot in the Inspector? you may need to re-paste your script as it’s been mangled before you added ``` around it.

1 Like

i have “one_shot” turned on thanks

ok i found a cooldown template and i solved the problem. thanks