What exactly are you trying to accomplish with this code?
Not really, I just want this to go up 1 by 1 with the conditions that if it is greater than zero or less than 100 as seen in the code
Give me 10 minutes, I have a quiz I’ll help you in like 10 minutes.
Okay! thank you very much for everything
Could you just replace it with this, where every second the stamina increases by 5. I don’t understand what the goal of this is, if I did then I could help you better.
for i = 0, 100, 5 do
wait(1)
stamina = i
end
In case you wanted to subtract stamina, it would be?
stamina = stamina - 15
Yes it would, you could also loop through and decrease the stamina with something like this:
--//increase to 100
for i = 0, 100, 1 do
wait()
stamina = i
end
--decrease down to 0
for i = 100, 1, -1 do
wait()
stamina = i
end
Thank you very much indeed! I am ready for today with everything, I am going to implement it in my game, I wish you much success in all your projects, thank you.
No problem at all. I enjoy helping . Let me know if you ever need anymore help!