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(z)ChangeFloor(tostring(z))end)function ChangeFloor(z)if CustomText[tonumber(z)]then z=CustomText[tonumber(z)]end SetDisplay(1,string.len(z)==2 and z:sub(1,1)or"\078\073\076")SetDisplay(2,string.len(z)==2 and z:sub(2,2)or z)end function SetDisplay(z,p)if This.Display:FindFirstChild("\068\073\071"..z)and Characters[p]~=nil then for p,R in pairs(Characters[p])do for p=1,7,1 do This.Display["\068\073\071"..z]["\068"..p].Color=R:sub(p,p)=="\049"and DisplayColor or DisabledColor This.Display["\068\073\071"..z]["\068"..p].Material=R:sub(p,p)=="\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
