How to use 'int value' in a frame X size (equal int value to frame size)

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

1 Like

Give me 10 minutes, I have a quiz I’ll help you in like 10 minutes.

1 Like

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
2 Likes

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
1 Like

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.

1 Like

No problem at all. I enjoy helping :grin: . Let me know if you ever need anymore help!

2 Likes