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