This=script.Parent CustomLabel=require(This.Parent.Parent.Parent.CustomLabel)Characters=require(script.Characters)CustomText=CustomLabel.CUSTOMFLOORLABEL;(This.Parent.Parent.Parent:WaitForChild("\070\108\111\111\114")).Changed:connect(function(f)ChangeFloor(tostring(f))end)function ChangeFloor(f)if CustomText[tonumber(f)]then f=CustomText[tonumber(f)]end SetDisplay(1,string.len(f)==2 and f:sub(1,1)or"\078\073\076")SetDisplay(2,string.len(f)==2 and f:sub(2,2)or tostring(f)=="\049"and"\049\083"or f)end function SetDisplay(f,F)if This.Display:FindFirstChild("\068\073\071"..f)and Characters[F]~=nil then for F,R in pairs(Characters[F])do for F=1,13,1 do This.Display["\068\073\071"..f]["\068"..F].Color=R:sub(F,F)=="\049"and DisplayColor or DisabledColor This.Display["\068\073\071"..f]["\068"..F].Material=R:sub(F,F)=="\049"and"\078\101\111\110"or"\078\101\111\110"end end end end
---------------------------------------------------

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

CustomText = CustomLabel["CUSTOMFLOORLABEL"]

This.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(1, (string.len(SF) == 2 and SF:sub(1, 1) or "NIL"))
	SetDisplay(2, (string.len(SF) == 2 and SF:sub(2, 2) or tostring(SF) == "1" and "1S" 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, 13 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 "Neon" or "Neon")
			end
		end
	end
end
