Background: I am starting a project to recreate Zelda Breath Of The Wild in Roblox (It's a huge project I probably wont ever finish). Currently I am working on the glider/stamina script at the moment and cant seem to get the stamina regeneration to work.
Problem: When testing, the Gliding.Value == false, my Stamina.Value is less than my MaxStamina.Value and my Stamina.Value will not increase. What is going on?
Script -
while Stamina.Value < MaxStamina.Value do
if Gliding.Value == false then
wait(1)
Stamina.Value = Stamina.Value + 1
end
end

2 comments
That is not the entire script, but if it is a simple organisation error you probably don't need the rest of the code (It is a total of 54 lines).
Might I suggest using the .Changed event?