How do I fix this problem with round timer not increasing

So I wanted to make a feature where if a player collects a notebook the round time goes up but it doesn’t go up can someone please help?

Script:

for i = length,0,-1 do
		
		NoteBookAmount:GetPropertyChangedSignal("Value"):Connect(function()
			i = length + 50
        end)
end
local roundTime = 60

local noteBookConnection = NoteBookAmount:GetPropertyChangedSignal("Value"):Connect(function()
    roundTime += 50
end)

while roundTime > 0 do
    roundTime -= 1
    --Stuff
end)

noteBookConnection:Disconnect() -- Remember to disconnect your connections!
-- Round timer has finished, continue with program