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

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

CustomText = CustomLabel["CUSTOMFLOORLABEL"]

This.Parent.Parent.Parent.Parent.Parent: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(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, 7 do
				This.Display["Matrix" .. ID]["Row" .. i]["D" .. r].Visible = (l:sub(r, r) == "1" and true or false)
			end
		end
	end
end
