This=script.Parent Elevator=This.Parent.Parent.Parent CustomLabel=require(This.Parent.Parent.Parent.CustomLabel)Characters=require(script.Characters)CustomText=CustomLabel.CUSTOMFLOORLABEL;(Elevator:WaitForChild("\070\108\111\111\114")).Changed:connect(function(c)ChangeFloor(tostring(c))end)function ChangeFloor(c)if CustomText[tonumber(c)]then c=CustomText[tonumber(c)]end SetDisplay(1,string.len(c)==2 and c:sub(1,1)or"\078\073\076")SetDisplay(2,string.len(c)==2 and c:sub(2,2)or c)end function SetDisplay(c,T)if This.Display:FindFirstChild("\068\073\071"..c)and Characters[T]~=nil then for T,m in pairs(Characters[T])do for T=1,7,1 do This.Display["\068\073\071"..c]["\068"..T].Color=m:sub(T,T)=="\049"and DisplayColor or DisabledColor This.Display["\068\073\071"..c]["\068"..T].Material=m:sub(T,T)=="\049"and Lit or Unlit end end end end


This = script.Parent
Elevator = This.Parent.Parent.Parent
CustomLabel = require(This.Parent.Parent.Parent.CustomLabel)
Characters = require(script.Characters)

CustomText = CustomLabel["CUSTOMFLOORLABEL"]

Elevator:WaitForChild("Floor").Changed:connect(function(floor)
	--custom indicator code--
	ChangeFloor(tostring(floor))
end)

function ChangeFloor(SF)
	if CustomText[tonumber(SF)] then
		SF = CustomText[tonumber(SF)]
	end
	SetDisplay(1,(string.len(SF) == 2 and SF:sub(1,1) or "NIL"))		
	SetDisplay(2,(string.len(SF) == 2 and SF:sub(2,2) or SF))
end



function SetDisplay(ID,CHAR)
	if This.Display:FindFirstChild("DIG"..ID) and Characters[CHAR] ~= nil then
		for i,l in pairs(Characters[CHAR]) do 
			for r=1,7 do	
				This.Display["DIG"..ID]["D"..r].Color = (l:sub(r,r) == "1" and DisplayColor or DisabledColor)
				This.Display["DIG"..ID]["D"..r].Material = (l:sub(r,r) == "1" and Lit or Unlit)
			end
		end
	end
end
