#sprint system problem

1 messages · Page 1 of 1 (latest)

lyric gull
#

sometimes there is a random delay when stamina reaches 0 and your walkspeed stays at the sprint amount for another 1-3 seconds, after that delay it starts regenerating the stamina and stops sprinting, anyone know why?

twilit badge
#

.

#

i dont know man

#

2 while true inside a while true

fallen flax
#

prob it reaches negatives while sprinting with no stamina

twilit badge
#

then a while true creating more threads

#

threads

#

threads

#

threads

#

and then

#

you're doomed

fallen flax
#

okay fine

#

fine

#

i got it you like threads

twilit badge
#
    handlesprinting(sprinting)
end
#

why not just like that

fallen flax
#

that just optimizes the code

#

wait

#

🚝

twilit badge
#

you're just creating more while true lol

#

while task.wait(1)
while true
task.wait(1)
print('t)
end
end

#

that t will print more and more

#

because there are more threads being created

fallen flax
#

i would like to see the output, my monkey brain needs some debug theory

lyric gull
#

output has nothing in it im pretty sure