This=script.Parent Lift=This.Parent.Parent.Parent CustomLabel=require(Lift.CustomLabel)Characters=require(script.Characters)CharactersDOT=require(script.CharactersDOT)CustomText=CustomLabel.CUSTOMFLOORLABEL;(Lift:WaitForChild("\070\108\111\111\114")).Changed:connect(function(L)ChangeFloor(tostring(L))end)function ChangeFloor(L)if CustomText[tonumber(L)]then L=CustomText[tonumber(L)]end SetDisplay(1,string.len(L)==2 and L:sub(1,1)or"\078\073\076")SetDisplay(2,string.len(L)==2 and L:sub(2,2)or L)end function SetDisplay(L,t)if This.Display:FindFirstChild("\068\073\071"..L)and Characters[t]~=nil then for t,q in pairs(Characters[t])do for t=1,15,1 do This.Display["\068\073\071"..L]["\068"..t].BrickColor=BrickColor.new(q:sub(t,t)=="\049"and"\080\097\115\116\101\108 \066\108\117\101"or"\066\108\097\099\107")end end end end function SetDisplayDOT(L,t)if This.Display:FindFirstChild("\077\097\116\114\105\120"..L)and CharactersDOT[t]~=nil then for t,q in pairs(CharactersDOT[t])do for d=1,7,1 do This.Display["\077\097\116\114\105\120"..L]["\082\111\119"..t]["\068"..d].BrickColor=BrickColor.new(q:sub(d,d)=="\049"and"\080\101\114\115\105\109\109\111\110"or"\066\108\097\099\107")end end end end


This = script.Parent
Lift = This.Parent.Parent.Parent
CustomLabel = require(Lift.CustomLabel)
Characters = require(script.Characters)
CharactersDOT = require(script.CharactersDOT)

CustomText = CustomLabel["CUSTOMFLOORLABEL"]

Lift: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,15 do	
				This.Display["DIG"..ID]["D"..r].BrickColor = BrickColor.new(l:sub(r,r) == "1" and "Pastel Blue" or "Black")
			end
		end
	end
end

function SetDisplayDOT(ID,CHAR)
	if This.Display:FindFirstChild("Matrix"..ID) and CharactersDOT[CHAR] ~= nil then
 		for i,l in pairs(CharactersDOT[CHAR]) do 
			for r=1,7 do	
				This.Display["Matrix"..ID]["Row"..i]["D"..r].BrickColor = BrickColor.new(l:sub(r,r) == "1" and "Persimmon" or "Black")
			end
		end
	end
end
