Ok so I made a stamina bar already and this is a separate local script in starterpack
wait(0.5)
local player = game.Players.LocalPlayer
local ldr = player:WaitForChild('ldr')
local stam = ldr:WaitForChild('Stamina')
local max = ldr:WaitForChild('MaxStamina')
if stam.Value > max.Value then
stam.Value = stam.Value + 1
end
Anyways what I'm trying to do is if the stamina int value's value is under the max stamina int value's value than it will start regaining stamina but the script won't even play I know the stamina int value doesn't go up at all when I put it under the amount of the max stamina int value

1 comment
is the value a number value first? Scripts can only read number values if it's a number value(not always but it's the most simple way)