function HighlightPianoKey(v,R)if not Settings.KeyAesthetics then return end local E=math.ceil(v/12)local e=(v-1)%12+1 local U=Piano.Keys.Keys:FindFirstChild(v)local Z=Piano.Case.ParticleEmitters:FindFirstChild(v)if U and Z then local R=U local E={}Z.ParticleEmitter:Emit(1)if IsBlack(v)then U.Material="\078\101\111\110"E.Color=Color3.fromRGB(70,158,44)Tween(R,E,.15,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)U.Material="\078\101\111\110"else U.Material="\078\101\111\110"E.Color=Color3.fromRGB(106,255,106)Tween(R,E,.15,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)U.Material="\078\101\111\110"end E={}E.Color=Color3.fromRGB(130,130,130)Tween(R,E,.05,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)U.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"else print(v.." \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
--[[
AnimateKey(note1,px,py,pz,ox,oy,oz,Time)
--note1(1-61), position x, position y, position z, orientation x, orientation y, orientation z, time

local obj = --object or gui or wahtever goes here
local Properties = {}
Properties.Size = UDim2.new()
Tween(obj,Properties,2,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)
--Obj,Property,Time,wait,Easingstyle,EasingDirection,RepeatAmt,Reverse
]]

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, 0.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, 0.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, 0.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
