I've been searching for an hour and I can not find where the error is, can somebody help me solve this issue?
while wait do
wait(0.3)
local minutes = 4
local seconds = 0
local hours = 0
if script.Parent.Enable == true then
local h = script.Parent
h.Parent = game.Workspace
for i = 1, (hours+1) do
for i = 1, (minutes+1) do
for i = 1, (seconds+1) do
if hours < 10 then
if minutes < 10 then
if seconds < 10 then
h.Value = ""..hours..""..minutes..":"..seconds
else
h.Value = ""..hours..""..minutes..":"..seconds
end
else
if seconds < 10 then
h.Value = ""..hours..""..minutes..":"..seconds
else
h.Value = ""..hours..""..minutes..":"..seconds
end
end
else
if minutes < 10 then
if seconds < 10 then
h.Value = hours..""..minutes..":"..seconds
else
h.Value = hours..""..minutes..":"..seconds
end
else
if seconds < 10 then
h.Value = hours..""..minutes..":"..seconds
else
h.Value = hours..""..minutes..":"..seconds
end
end
end
seconds = seconds - 1
wait(1)
end
seconds = 59
minutes = minutes - 1
end
minutes = 59
seconds = 59
hours = hours - 1
end
end
end

1 comment
I added "if script.Parent.Enable.Value == true then" but it still will not run when I set the boolvalue to true