Align=true This=script.Parent Btn=This.Parent Lift=Btn.Parent.Parent.Parent Config=require(Lift.CustomLabel)Characters=require(script.Characters)CustomLabel=Config.CUSTOMFLOORLABEL[tonumber(Btn.Name)]function ChangeFloor(S)if Align==true then if string.len(S)==1 then SetLabel(1,S,.045)SetLabel(2,"\078\073\076",0)SetLabel(3,"\078\073\076",0)SetLabel(4,"\078\073\076",0)elseif string.len(S)==2 then SetLabel(1,S:sub(1,1),.03)SetLabel(2,S:sub(2,2),.03)SetLabel(3,"\078\073\076",0)SetLabel(4,"\078\073\076",0)elseif string.len(S)==3 then SetLabel(1,S:sub(1,1),.015)SetLabel(2,S:sub(2,2),.015)SetLabel(3,S:sub(3,3),.015)SetLabel(4,"\078\073\076",0)elseif string.len(S)==4 then SetLabel(1,S:sub(1,1),0)SetLabel(2,S:sub(2,2),0)SetLabel(3,S:sub(3,3),0)SetLabel(4,S:sub(4,4),0)end else if string.len(S)==1 then SetLabel(1,S,0)SetLabel(2,"\078\073\076",0)SetLabel(3,"\078\073\076",0)SetLabel(4,"\078\073\076",0)elseif string.len(S)==2 then SetLabel(1,S:sub(1,1),0)SetLabel(2,S:sub(2,2),0)SetLabel(3,"\078\073\076",0)SetLabel(4,"\078\073\076",0)elseif string.len(S)==3 then SetLabel(1,S:sub(1,1),0)SetLabel(2,S:sub(2,2),0)SetLabel(3,S:sub(3,3),0)SetLabel(4,"\078\073\076",0)elseif string.len(S)==4 then SetLabel(1,S:sub(1,1),0)SetLabel(2,S:sub(2,2),0)SetLabel(3,S:sub(3,3),0)SetLabel(4,S:sub(4,4),0)end end end function SetLabel(S,z,m)if This:FindFirstChild("\066\082"..S)and Characters[z]~=nil then for z,m in pairs(Characters[z])do This["\066\082"..S].Mesh.MeshId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..m end if z=="\065"or z=="\049"then This["\066\082"..S].Mesh.Offset=Vector3.new(m-.006,0,-0.014)elseif z=="\066"or z=="\050"then This["\066\082"..S].Mesh.Offset=Vector3.new(m-.006,0,-0.006)elseif z=="\067"or z=="\051"then This["\066\082"..S].Mesh.Offset=Vector3.new(m,0,-0.014)elseif z=="\068"or z=="\052"or z=="\069"or z=="\053"or z=="\070"or z=="\054"or z=="\071"or z=="\055"or z=="\072"or z=="\056"or z=="\073"or z=="\057"or z=="\074"or z=="\048"then This["\066\082"..S].Mesh.Offset=Vector3.new(m,0,-0.006)elseif z=="\075"or z=="\076"then This["\066\082"..S].Mesh.Offset=Vector3.new(m-.006,0,0)elseif z=="\046"or z=="\043"then This["\066\082"..S].Mesh.Offset=Vector3.new(m,0,.006)elseif z=="-"then This["\066\082"..S].Mesh.Offset=Vector3.new(m,0,.014)elseif z=="\059"then This["\066\082"..S].Mesh.Offset=Vector3.new(m,0,.006)elseif z=="\042"then This["\066\082"..S].Mesh.Offset=Vector3.new(m+.006,0,0)else This["\066\082"..S].Mesh.Offset=Vector3.new(m,0,0)end end end if CustomLabel then if string.find(string.sub(CustomLabel,1,1),"\037\100")~=nil then if string.len(CustomLabel)==1 then ChangeFloor("\036"..CustomLabel)elseif string.find(string.sub(CustomLabel,2,2),"\037\097")~=nil then ChangeFloor("\036"..(string.sub(CustomLabel,1,1)..("\059"..string.sub(CustomLabel,2,2))))else ChangeFloor("\036"..CustomLabel)end elseif string.find(CustomLabel,"\037\100")==nil then if string.len(CustomLabel)==1 then ChangeFloor("\059"..CustomLabel)elseif string.find(string.sub(CustomLabel,2,2),"\037\100")~=nil then ChangeFloor("\059"..(string.sub(CustomLabel,1,1)..("\036"..string.sub(CustomLabel,2,2))))else ChangeFloor("\059"..CustomLabel)end else ChangeFloor(string.sub(CustomLabel,1,1)..("\036"..string.sub(CustomLabel,2,2)))end else ChangeFloor("\036"..Btn.Name)end script:Destroy()
-- BrailleGen 3D BETA

Align = true

This = script.Parent
Btn = This.Parent
Lift = Btn.Parent.Parent.Parent
Config = require(Lift.CustomLabel)
Characters = require(script.Characters)

CustomLabel = Config["CUSTOMFLOORLABEL"][tonumber(Btn.Name)]

function ChangeFloor(SF)
	if Align == true then
		if string.len(SF) == 1 then
			SetLabel(1, SF, 0.045)
			SetLabel(2, "NIL", 0)
			SetLabel(3, "NIL", 0)
			SetLabel(4, "NIL", 0)
		elseif string.len(SF) == 2 then
			SetLabel(1, SF:sub(1, 1), 0.03)
			SetLabel(2, SF:sub(2, 2), 0.03)
			SetLabel(3, "NIL", 0)
			SetLabel(4, "NIL", 0)
		elseif string.len(SF) == 3 then
			SetLabel(1, SF:sub(1, 1), 0.015)
			SetLabel(2, SF:sub(2, 2), 0.015)
			SetLabel(3, SF:sub(3, 3), 0.015)
			SetLabel(4, "NIL", 0)
		elseif string.len(SF) == 4 then
			SetLabel(1, SF:sub(1, 1), 0)
			SetLabel(2, SF:sub(2, 2), 0)
			SetLabel(3, SF:sub(3, 3), 0)
			SetLabel(4, SF:sub(4, 4), 0)
		end
	else
		if string.len(SF) == 1 then
			SetLabel(1, SF, 0)
			SetLabel(2, "NIL", 0)
			SetLabel(3, "NIL", 0)
			SetLabel(4, "NIL", 0)
		elseif string.len(SF) == 2 then
			SetLabel(1, SF:sub(1, 1), 0)
			SetLabel(2, SF:sub(2, 2), 0)
			SetLabel(3, "NIL", 0)
			SetLabel(4, "NIL", 0)
		elseif string.len(SF) == 3 then
			SetLabel(1, SF:sub(1, 1), 0)
			SetLabel(2, SF:sub(2, 2), 0)
			SetLabel(3, SF:sub(3, 3), 0)
			SetLabel(4, "NIL", 0)
		elseif string.len(SF) == 4 then
			SetLabel(1, SF:sub(1, 1), 0)
			SetLabel(2, SF:sub(2, 2), 0)
			SetLabel(3, SF:sub(3, 3), 0)
			SetLabel(4, SF:sub(4, 4), 0)
		end
	end
end

function SetLabel(ID, CHAR, OFFSET)
	if This:FindFirstChild("BR" .. ID) and Characters[CHAR] ~= nil then
		for i, l in pairs(Characters[CHAR]) do
			This["BR" .. ID].Mesh.MeshId = "rbxassetid://" .. l
		end
		if CHAR == "A" or CHAR == "1" then
			This["BR" .. ID].Mesh.Offset = Vector3.new(OFFSET - 0.006, 0, -0.014)
		elseif CHAR == "B" or CHAR == "2" then
			This["BR" .. ID].Mesh.Offset = Vector3.new(OFFSET - 0.006, 0, -0.006)
		elseif CHAR == "C" or CHAR == "3" then
			This["BR" .. ID].Mesh.Offset = Vector3.new(OFFSET, 0, -0.014)
		elseif
			CHAR == "D"
			or CHAR == "4"
			or CHAR == "E"
			or CHAR == "5"
			or CHAR == "F"
			or CHAR == "6"
			or CHAR == "G"
			or CHAR == "7"
			or CHAR == "H"
			or CHAR == "8"
			or CHAR == "I"
			or CHAR == "9"
			or CHAR == "J"
			or CHAR == "0"
		then
			This["BR" .. ID].Mesh.Offset = Vector3.new(OFFSET, 0, -0.006)
		elseif CHAR == "K" or CHAR == "L" then
			This["BR" .. ID].Mesh.Offset = Vector3.new(OFFSET - 0.006, 0, 0)
		elseif CHAR == "." or CHAR == "+" then
			This["BR" .. ID].Mesh.Offset = Vector3.new(OFFSET, 0, 0.006)
		elseif CHAR == "-" then
			This["BR" .. ID].Mesh.Offset = Vector3.new(OFFSET, 0, 0.014)
		elseif CHAR == ";" then
			This["BR" .. ID].Mesh.Offset = Vector3.new(OFFSET, 0, 0.006)
		elseif CHAR == "*" then
			This["BR" .. ID].Mesh.Offset = Vector3.new(OFFSET + 0.006, 0, 0)
		else
			This["BR" .. ID].Mesh.Offset = Vector3.new(OFFSET, 0, 0)
		end
	end
end

if CustomLabel then
	if string.find(string.sub(CustomLabel, 1, 1), "%d") ~= nil then
		if string.len(CustomLabel) == 1 then
			ChangeFloor("$" .. CustomLabel)
		elseif string.find(string.sub(CustomLabel, 2, 2), "%a") ~= nil then
			ChangeFloor("$" .. string.sub(CustomLabel, 1, 1) .. ";" .. string.sub(CustomLabel, 2, 2))
		else
			ChangeFloor("$" .. CustomLabel)
		end
	elseif string.find(CustomLabel, "%d") == nil then
		if string.len(CustomLabel) == 1 then
			ChangeFloor(";" .. CustomLabel)
		elseif string.find(string.sub(CustomLabel, 2, 2), "%d") ~= nil then
			ChangeFloor(";" .. string.sub(CustomLabel, 1, 1) .. "$" .. string.sub(CustomLabel, 2, 2))
		else
			ChangeFloor(";" .. CustomLabel)
		end
	else
		ChangeFloor(string.sub(CustomLabel, 1, 1) .. "$" .. string.sub(CustomLabel, 2, 2))
	end
else
	ChangeFloor("$" .. Btn.Name)
end

script:Destroy()
