Basically I'm writing a script which makes the players stamina go up by +10 per second while it is less than 100 but for some reason it just doesn't work. I'm probably missing something really obvious but I just can't figure it out.
while StaminaValue < 100 do
StaminaValue += 1
wait(0.1)
end```
(StaminaValue is an int value which is a child of the script)
** You are now Level 1! **