This=script.Parent Elevator=This.Parent.Parent.Parent.Parent.Parent CustomLabel=require(This.Parent.Parent.Parent.Parent.Parent.CustomLabel)Characters=require(script.Characters)CustomText=CustomLabel.CUSTOMFLOORLABEL;(Elevator:WaitForChild("\070\108\111\111\114")).Changed:connect(function(t)ChangeFloor(tostring(t))end)function ChangeFloor(t)if CustomText[tonumber(t)]then t=CustomText[tonumber(t)]end SetDisplay(2,string.len(t)==2 and t:sub(1,1)or"\078\073\076")SetDisplay(3,string.len(t)==2 and t:sub(2,2)or t)end function SetDisplay(t,o)if This.Display:FindFirstChild("\077\097\116\114\105\120"..t)and Characters[o]~=nil then for o,n in pairs(Characters[o])do for P=1,5,1 do This.Display["\077\097\116\114\105\120"..t]["\082\111\119"..o]["\068"..P].Visible=n:sub(P,P)=="\049"and true or false end end end end for t=1,Displays,1 do for o=1,7,1 do for n=1,5,1 do This.Display["\077\097\116\114\105\120"..t]["\082\111\119"..o]["\068"..n].ImageColor3=DisplayColor end end end
---------------------------------------------------

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

CustomText = CustomLabel["CUSTOMFLOORLABEL"]

Elevator:WaitForChild("Floor").Changed:connect(function(floor)
	ChangeFloor(tostring(floor))
end)

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

function SetDisplay(ID, CHAR)
	if This.Display:FindFirstChild("Matrix" .. ID) and Characters[CHAR] ~= nil then
		for i, l in pairs(Characters[CHAR]) do
			for r = 1, 5 do
				This.Display["Matrix" .. ID]["Row" .. i]["D" .. r].Visible = (l:sub(r, r) == "1" and true or false)
			end
		end
	end
end

for M = 1, Displays do
	for R = 1, 7 do
		for D = 1, 5 do
			This.Display["Matrix" .. M]["Row" .. R]["D" .. D].ImageColor3 = DisplayColor
		end
	end
end
