function HighlightPianoKey(g,n)if not Settings.KeyAesthetics then return end local D=math.ceil(g/12)local t=(g-1)%12+1 local C=Piano.Case.Part local w=Piano.Case.Part:Clone()w.Parent=Piano.Keys w.Name=g local o local F=1 local y={}local c=w w.Position=C.Position+Vector3.new(g+.1,-3,0)w.Transparency=0 if IsBlack(g)then local g=w g.Color=Color3.fromRGB(236,24,116)y={}y.Transparency=1 y.Position=c.Position+Vector3.new(0,20,0)Tween(g,y,F,true,Enum.EasingStyle.Linear)else local g=w g.Color=Color3.fromRGB(197,93,223)y={}y.Transparency=1 y.Position=c.Position+Vector3.new(0,20,0)Tween(g,y,F,true,Enum.EasingStyle.Linear)end w:Destroy()return end


	


function HighlightPianoKey(note1,transpose)
	if not Settings.KeyAesthetics then return end
	local octave = math.ceil(note1/12)
	local note2 = (note1 - 1)%12 + 1
	local original = Piano.Case.Part
	local key = Piano.Case.Part:Clone()
	key.Parent = Piano.Keys
	key.Name = note1
	local part
	local Time = 1
	local Properties = {}
	local part = key
	key.Position = original.Position + Vector3.new((note1 + .1),-3,0)
	key.Transparency = 0
	if IsBlack(note1) then
		local obj = key
		obj.Color = Color3.fromRGB(236, 24, 116)
		Properties = {}
		Properties.Transparency = 1
		Properties.Position = part.Position + Vector3.new(0,20,0)
		Tween(obj,Properties,Time,true,Enum.EasingStyle.Linear)
	else
		local obj = key
		obj.Color = Color3.fromRGB(197, 93, 223)
		Properties = {}
		Properties.Transparency = 1
		Properties.Position = part.Position + Vector3.new(0,20,0)
		Tween(obj,Properties,Time,true,Enum.EasingStyle.Linear)
	end
	key:Destroy()
	return
end
