I am using a for loop to make a textlabel flash its transparency. it seems to break because it prints fno but then it repeats again for 30 loops.
--here is the code to make the icon flash on peoples screens
if promptobject.Name == "A" then
local A = objgui.Holder.PointA
local Awarner = objgui.Holder.PointAWarner
for L = 1, 30, 1 do
if cappingA == true then
for i = 1, 10, 1 do
Awarner.BackgroundTransparency = Awarner.BackgroundTransparency - 0.05
wait(0.05)
print'1'
end
for i = 1, 10, 1 do
Awarner.BackgroundTransparency = Awarner.BackgroundTransparency + 0.05
wait(0.05)
print'2'
end
elseif cappingA == false then
break
end
wait(1)
end
print 'fno'
Awarner.BackgroundTransparency = 1

1 comment
What do you mean? Do you mean the 'fno' printing occurs 30 times?