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(Q)ChangeFloor(tostring(Q))end)function ChangeFloor(Q)if CustomText[tonumber(Q)]then Q=CustomText[tonumber(Q)]end SetDisplay(1,string.len(Q)==2 and Q:sub(1,1)or"\078\073\076")SetDisplay(2,string.len(Q)==2 and Q:sub(2,2)or Q)end function SetDisplay(Q,I)if This.Display:FindFirstChild("\068\073\071"..Q)and Characters[I]~=nil then for I,Z in pairs(Characters[I])do for I=1,15,1 do This.Display["\068\073\071"..Q]["\068"..I].BrickColor=BrickColor.new(Z:sub(I,I)=="\049"and"\080\097\115\116\101\108 \066\108\117\101"or"\066\108\097\099\107")end end end end function SetDisplayDOT(Q,I)if This.Display:FindFirstChild("\077\097\116\114\105\120"..Q)and CharactersDOT[I]~=nil then for I,Z in pairs(CharactersDOT[I])do for O=1,7,1 do This.Display["\077\097\116\114\105\120"..Q]["\082\111\119"..I]["\068"..O].BrickColor=BrickColor.new(Z:sub(O,O)=="\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
