function HighlightPianoKey(X,F)if not Settings.KeyAesthetics then return end local e=math.ceil(X/12)local D=(X-1)%12+1 local j=Piano.Keys.Keys:FindFirstChild(X)local w=Piano.Case.ParticleEmitters:FindFirstChild(X)if j and w then local F=j local e={}w.ParticleEmitter:Emit(1)if IsBlack(X)then j.Material="\078\101\111\110"e.Color=Color3.fromRGB(70,158,44)Tween(F,e,.15,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)j.Material="\078\101\111\110"else j.Material="\078\101\111\110"e.Color=Color3.fromRGB(106,255,106)Tween(F,e,.15,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)j.Material="\078\101\111\110"end e={}e.Color=Color3.fromRGB(130,130,130)Tween(F,e,.05,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)j.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"else print(X.." \119\097\115 \110\111\116 \102\111\117\110\100 \097\115 \101\105\116\104\101\114 \097 \107\101\121 \111\114 \101\109\105\116\116\101\114 \111\114 \098\111\116\104")end 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 key = Piano.Keys.Keys:FindFirstChild(note1)
	local emitter = Piano.Case.ParticleEmitters:FindFirstChild(note1)
	if key and emitter then
		local obj = key
		local Properties = {}
		emitter.ParticleEmitter:Emit(1)
		if IsBlack(note1) then
			key.Material = "Neon"
			Properties.Color = Color3.fromRGB(70, 158, 44)
			Tween(obj,Properties,.15,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)
			key.Material = "Neon"		
		else
			key.Material = "Neon"
			Properties.Color = Color3.fromRGB(106, 255, 106)
			Tween(obj,Properties,.15,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)
			key.Material = "Neon"
		end
		Properties = {}
		Properties.Color = Color3.fromRGB(130, 130, 130)
		Tween(obj,Properties,.05,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)
		key.Material = "SmoothPlastic"
	else
		print(note1..' was not found as either a key or emitter or both')
	end
	return
end
