[Solved] Script won't detect new time

So I have a reward system and every 15min but for testing its 2 min it has a countdown and then it lets u claim and if u claim it restarts but it won’t detect the new number

Can we see the ServerScript?

  1. There’s a contradiction
if seconds > 0 then
    -- [...]
    if seconds == 0 then
  1. Why not just use seconds == 0 here?
elseif player.LuckItemsInfo.ClaimTime.Value == 0 then
  1. We cannot see if player.LuckTimesInfo.ClaimTime has its value ever being changed anywhere.