function HighlightPianoKey(R,j)if not Settings.KeyAesthetics then return end local h=math.ceil(R/12)local q=(R-1)%12+1 local y=Piano.Case.Part local b=Piano.Case.Part:Clone()b.Parent=Piano.Keys b.Name=R local P local v=1 local z={}local O=b b.Position=y.Position+Vector3.new(R+.1,-3,0)b.Transparency=0 if IsBlack(R)then local R=b R.Color=Color3.fromRGB(23,95,189)z={}z.Transparency=1 z.Position=O.Position+Vector3.new(0,20,0)Tween(R,z,v,true,Enum.EasingStyle.Linear)else local R=b R.Color=Color3.fromRGB(84,180,240)z={}z.Transparency=1 z.Position=O.Position+Vector3.new(0,20,0)Tween(R,z,v,true,Enum.EasingStyle.Linear)end b:Destroy()return end
--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 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 + 0.1), -3, 0)
	key.Transparency = 0
	if IsBlack(note1) then
		local obj = key
		obj.Color = Color3.fromRGB(23, 95, 189)
		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(84, 180, 240)
		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
