This=script.Parent Btn=This.Parent Lift=Btn.Parent.Parent.Parent Config=require(Lift.CustomLabel)Characters=require(script.Characters)CustomLabel=Config.CUSTOMFLOORLABEL[tonumber(Btn.Name)]function ChangeFloor(g)if string.len(g)==1 then SetLabel(1,g,-0.04)SetLabel(2,"\078\073\076",0)else SetLabel(1,g:sub(1,1),0)SetLabel(2,g:sub(2,2),0)end end function SetLabel(g,F,b)if This:FindFirstChild("\076"..g)and Characters[F]~=nil then This["\076"..g].Mesh.Offset=Vector3.new(b,0,0)for F,b in pairs(Characters[F])do This["\076"..g].Mesh.MeshId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..b end This["\076"..g].Mesh.Scale=Vector3.new(.005,.007,.019)end end if CustomLabel then ChangeFloor(CustomLabel)else ChangeFloor(Btn.Name)end script:Destroy()
-- 3D TextGen

This = script.Parent
Btn = This.Parent
Lift = Btn.Parent.Parent.Parent
Config = require(Lift.CustomLabel)
Characters = require(script.Characters)

CustomLabel = Config["CUSTOMFLOORLABEL"][tonumber(Btn.Name)]

function ChangeFloor(SF)
	if string.len(SF) == 1 then
		SetLabel(1, SF, -0.04)
		SetLabel(2, "NIL", 0)
	else
		SetLabel(1, SF:sub(1, 1), 0)
		SetLabel(2, SF:sub(2, 2), 0)
	end
end

function SetLabel(ID, CHAR, OFFSET)
	if This:FindFirstChild("L" .. ID) and Characters[CHAR] ~= nil then
		This["L" .. ID].Mesh.Offset = Vector3.new(OFFSET, 0, 0)
		for i, l in pairs(Characters[CHAR]) do
			This["L" .. ID].Mesh.MeshId = "rbxassetid://" .. l
		end
		This["L" .. ID].Mesh.Scale = Vector3.new(0.005, 0.007, 0.019)
	end
end

if CustomLabel then
	ChangeFloor(CustomLabel)
else
	ChangeFloor(Btn.Name)
end

script:Destroy()
