This function below is supposed to search for a number value(Pos) and see if it's the consecutive number. The script will fire when triggered the first time, but will not fire the second time. I am at a complete lost I cannot figure out the problem.

function ClickR()
Sleep.Value = false
script.Parent.Parent.LCD.SurfaceGui.LightInfluence = 0
if MainGUI.Enabled == false and UserConfigs.Enabled == true and CP.Pos.Value < 4 then
for index, descendant in pairs(UserConfigOptions) do
	if descendant.Name == "Pos" and descendant.Value == (CP.Pos.Value + 1) then
		descendant.Parent.Visible = true
		CP.Visible  = false
		CurrentPosition.Value = descendant.Parent
		print ("left: successful")
	end
	end
	end
end

Sleep.Value = true


script.Parent.R.ClickDetector.MouseClick:connect(ClickR)