display={{1,2;3;4,5,6},{2,3};{1;2;4,5,7};{1,2;3;4;7};{2;3;6;7},{1,3,4;6,7};{1;3;4;5,6;7},{1;2;3};{1,2,3,4,5;6;7},{1,2;3;4,6,7};{1,2,3,5,6,7},{3,4,5;6;7},{1,4,5,6};{4,5,7};{2,3,4;5,7},{1,4;5;6;7};{1;2,4,5;6;7},{1,5;6,7};{2,3,5,6;7};{2,3;4,5};{4;5,6},{3,5;7},{3;4;5,7},{1;2,5;6,7};{5,7},{4,5,6;7},{2;3,4,5;6};{3;4,5};{2;3,4,6;7};{}}function clear()for h,n in pairs(script.Parent:GetChildren())do if n.ClassName=="\070\114\097\109\101"then n.Visible=false end end end script.Parent.Value.Changed:connect(function()if script.Parent.Value.Value<=#display and script.Parent.Value.Value>0 then clear()for h,n in pairs(display[script.Parent.Value.Value])do script.Parent[tostring(n)].Visible=true end end end)
-- 7 SEGMENT / 30 CHARACTERS

display = {
	{ 1, 2, 3, 4, 5, 6 }, -- 0
	{ 2, 3 }, -- 1
	{ 1, 2, 4, 5, 7 }, -- 2
	{ 1, 2, 3, 4, 7 }, -- 3
	{ 2, 3, 6, 7 }, -- 4
	{ 1, 3, 4, 6, 7 }, -- 5
	{ 1, 3, 4, 5, 6, 7 }, -- 6
	{ 1, 2, 3 }, -- 7
	{ 1, 2, 3, 4, 5, 6, 7 }, -- 8
	{ 1, 2, 3, 4, 6, 7 }, -- 9
	{ 1, 2, 3, 5, 6, 7 }, -- A
	{ 3, 4, 5, 6, 7 }, -- B
	{ 1, 4, 5, 6 }, -- C
	{ 4, 5, 7 }, -- c (Lowercase)
	{ 2, 3, 4, 5, 7 }, -- D
	{ 1, 4, 5, 6, 7 }, -- E
	{ 1, 2, 4, 5, 6, 7 }, -- e (Lowercase)
	{ 1, 5, 6, 7 }, -- F
	{ 2, 3, 5, 6, 7 }, -- H
	{ 2, 3, 4, 5 }, -- J
	{ 4, 5, 6 }, -- L
	{ 3, 5, 7 }, -- n
	{ 3, 4, 5, 7 }, -- o
	{ 1, 2, 5, 6, 7 }, -- P
	{ 5, 7 }, -- r
	{ 4, 5, 6, 7 }, -- t
	{ 2, 3, 4, 5, 6 }, -- U
	{ 3, 4, 5 }, -- u (Lowercase)
	{ 2, 3, 4, 6, 7 }, -- y
	{}, -- Blank
}

function clear()
	for _, a in pairs(script.Parent:GetChildren()) do
		if a.ClassName == "Frame" then
			a.Visible = false
		end
	end
end

script.Parent.Value.Changed:connect(function()
	if script.Parent.Value.Value <= #display and script.Parent.Value.Value > 0 then
		clear()
		for _, b in pairs(display[script.Parent.Value.Value]) do
			script.Parent[tostring(b)].Visible = true
		end
	end
end)
