So i've made my own blink script (Since one is copied) and i don't get what's wrong this?
local blink = 5 local zero = script.Parent.M local one = script.Parent.N local two = script.Parent.X local three = script.Parent.Y local four = script.Parent.Z while wait() do wait(5) blink = blink-1 end while wait() do wait() if blink == 5 then four.Visible = true three.Visible = true two.Visible = true one.Visible = true zero.Visible = true end if blink == 4 then four.Visible = false three.Visible = true two.Visible = true one.Visible = true zero.Visible = true end if blink == 3 then four.Visible = false three.Visible = false two.Visible = true one.Visible = true zero.Visible = true end if blink == 2 then four.Visible = false three.Visible = false two.Visible = false one.Visible = true zero.Visible = true end if blink == 1 then four.Visible = false three.Visible = false two.Visible = false one.Visible = false zero.Visible = true end if blink == 0 then four.Visible = false three.Visible = false two.Visible = false one.Visible = false zero.Visible = false script.Parent.Parent.Fill.Visible = true wait(1.5) script.Parent.Parent.Fill.Visible = false blink = 5 end end
I can't be bothered to in depth with what I've done here but hopefully you've got the effort to study the below code.
local blinkInfo = { {true, true, true, true, true}, {false, true, true, true, true}, {false, false, true, true, true}, {false, false, false, true, true}, {false, false, false, false, true}, {false, false, false, false, false} } local scriptParent = script.Parent local zero = scriptParent.M local one = scriptParent.N local two = scriptParent.X local three = scriptParent.Y local four = scriptParent.Z while true do for i = 1, 5 do four.Visible = blinkInfo[i][1] three.Visible = blinkInfo[i][2] two.Visible = blinkInfo[i][3] one.Visible = blinkInfo[i][4] zero.Visible = blinkInfo[i][5] if i == 5 then scriptParent.Parent.Fill.Visible = true wait(1.5) script.Parent.Parent.Fill.Visible = false else wait() end end end