local clickChain = game.ReplicatedStorage.Chain
while true do
if clickChain.Value > 21 then
print("Succes")
elseif clickChain.Value > 0 and clickChain.Value < 21 then
while wait(1) do
clickChain.Value -= 1
end
end
wait(1)
end
local clickChain = game.ReplicatedStorage.Chain
if clickChain then
if clickChain.Value > 0 then
for i = 1, clickChain.Value do
wait(1)
clickChain.Value -= 1
end
elseif clickChain.Value >= 21 then
print("SUCCESSSS")
end
end
local clickChain = game.ReplicatedStorage.Chain
while true do
if clickChain then
if clickChain.Value > 0 then
for i = 1, clickChain.Value do
wait(1)
clickChain.Value = clickChain.Value - 1
end
elseif clickChain.Value >= 21 then
print("SUCCESSSS")
end
end
wait(1)
end
and it worked, but why isnt it printing succes, its the most logical thing it checks if the things value is 21 and prints, how hard is it i have no other solutions
local clickChain = game.ReplicatedStorage.Chain
while true do
if clickChain then
if clickChain.Value >= 21 then
print("SUCCESSSS")
elseif clickChain.Value > 0 then
for i = 1, clickChain.Value do
wait(1)
clickChain.Value = clickChain.Value - 1
end
end
end
wait(1)
end
made it that and it worked, amazing thank you, and the other guy for taking time out of ur day to help