Let me clarify a few things. I know there are guides on this, but I have used a different way to make a sprint mechanic than them. There are three main features to my sprint mechanic that I’d like to exploit. It’s simplicity, memory efficiency, and it’s unique device system. Now that we have that covered, let’s get started!
Requirements
Game overlay
Repeater
Speed modifier x2
Counter
Step 1: The overlay
First, have the overlay type set to button. Choose your overlay position, and put the overlay text sprint. Then, put “When button clicked, transmit on” to “Sprint 1”. In the chanmels section, put “Show overlay when receiving on” to “Sprint 3”, and put " Hide overlay when reveiving on" to “Sprint 1”. That’s it for step one.
Step 2: The repeater
In the repeater, put “Start repeater when receiving on” to “Sprint 1”. Then put “When task occurs, transmit on” to “Sprint 2”. Set the task interval to 1.0, put the stop strategy to number of repititions, and put the number of repititions as the amount of seconds you want the sprint to last. Lastly, put the " Max concurrent tasks per player to 8. That’s it for step two.
Step 3: The counter
Put the starting value at 0. Set the count scope to player, and put the “Increment counter when receiving on” to “Sprint 2”. Make sure the visibility is a no. Then go to the target section. Put the taget value the same as your number of repititions on the repeater. Then put “When target reached, transmit on” to “Sprint 3”. Then got to the channels section and put the “Reset counter when receiving on” to “Sprint 3”. Now onto the last step.
Step 4: The speed modifiers
Set the first speed modifier to “speed-(However fast you want them to sprint)”, and put “Set player to configurated speed when receiving on” to “Sprint 1”. Then put the second speed modifier to “Speed- 1.00”, and put " Set player to configurated speed when receiving on" to “Sprint 3”. Now we’re done!
It is possible to replace the repeater with a trigger loop, but you would have to figure out the channels. Either way, I hope this guide was helpful to you! If I worded the guide wrong, please feel free to tell me so I can fix it. Thanks for using my guide! Btw, I did this on an amazon fire, otherwise I would have added pictures.