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(V)if Align==true then if string.len(V)==1 then SetLabel(1,V,.045)SetLabel(2,"\078\073\076",0)SetLabel(3,"\078\073\076",0)SetLabel(4,"\078\073\076",0)elseif string.len(V)==2 then SetLabel(1,V:sub(1,1),.03)SetLabel(2,V:sub(2,2),.03)SetLabel(3,"\078\073\076",0)SetLabel(4,"\078\073\076",0)elseif string.len(V)==3 then SetLabel(1,V:sub(1,1),.015)SetLabel(2,V:sub(2,2),.015)SetLabel(3,V:sub(3,3),.015)SetLabel(4,"\078\073\076",0)elseif string.len(V)==4 then SetLabel(1,V:sub(1,1),0)SetLabel(2,V:sub(2,2),0)SetLabel(3,V:sub(3,3),0)SetLabel(4,V:sub(4,4),0)end else if string.len(V)==1 then SetLabel(1,V,0)SetLabel(2,"\078\073\076",0)SetLabel(3,"\078\073\076",0)SetLabel(4,"\078\073\076",0)elseif string.len(V)==2 then SetLabel(1,V:sub(1,1),0)SetLabel(2,V:sub(2,2),0)SetLabel(3,"\078\073\076",0)SetLabel(4,"\078\073\076",0)elseif string.len(V)==3 then SetLabel(1,V:sub(1,1),0)SetLabel(2,V:sub(2,2),0)SetLabel(3,V:sub(3,3),0)SetLabel(4,"\078\073\076",0)elseif string.len(V)==4 then SetLabel(1,V:sub(1,1),0)SetLabel(2,V:sub(2,2),0)SetLabel(3,V:sub(3,3),0)SetLabel(4,V:sub(4,4),0)end end end function SetLabel(V,A,T)if This:FindFirstChild("\066\082"..V)and Characters[A]~=nil then for A,T in pairs(Characters[A])do This["\066\082"..V].Mesh.MeshId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..T end if A=="\065"or A=="\049"then This["\066\082"..V].Mesh.Offset=Vector3.new(T-.006,0,-0.014)elseif A=="\066"or A=="\050"then This["\066\082"..V].Mesh.Offset=Vector3.new(T-.006,0,-0.006)elseif A=="\067"or A=="\051"then This["\066\082"..V].Mesh.Offset=Vector3.new(T,0,-0.014)elseif A=="\068"or A=="\052"or A=="\069"or A=="\053"or A=="\070"or A=="\054"or A=="\071"or A=="\055"or A=="\072"or A=="\056"or A=="\073"or A=="\057"or A=="\074"or A=="\048"then This["\066\082"..V].Mesh.Offset=Vector3.new(T,0,-0.006)elseif A=="\075"or A=="\076"then This["\066\082"..V].Mesh.Offset=Vector3.new(T-.006,0,0)elseif A=="\046"or A=="\043"then This["\066\082"..V].Mesh.Offset=Vector3.new(T,0,.006)elseif A=="-"then This["\066\082"..V].Mesh.Offset=Vector3.new(T,0,.014)elseif A=="\059"then This["\066\082"..V].Mesh.Offset=Vector3.new(T,0,.006)elseif A=="\042"then This["\066\082"..V].Mesh.Offset=Vector3.new(T+.006,0,0)else This["\066\082"..V].Mesh.Offset=Vector3.new(T,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()


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()
