Event not happening after code reaches certain point

I am having an issue with an event not playing when a timer hits 0:00, instead it just stays at 0:00 and does nothing. I am trying to make it so that when the timer hits 0:00 its does an event and then restarts back at 2:00. I’m not getting any errors either and cannot figure out the issue.

Here is my code

while minutes <= 0 and seconds <= 0 do
Is this evaluating False when first encountered? because while false do will not run what is in the block. Try putting a print statement right before it with the same logic and see if it’s False.

if game.ReplicatedStorage.Hiding == false then
--...
else if game.ReplicatedStorage.Hiding == true then

is Hiding a BoolValue? You need to reference Hiding.Value if so.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.