function checkPartsLeft() while true do local count = 0 local PartsLeft = Workspace.PartsLeft.Value if PartsLeft.Value == 3 then time.Value = 0 end end
What I am trying to do is to make a function where the game repeatedly checks if PartsLeft, which is a NumberValue, is three or less than three.
Use the less than or equal to operator (<=)
if PartsLeft.Value <= 3 then
The wiki has more information on operators http://wiki.roblox.com/index.php?title=Operators