function HighlightPianoKey(z,h)if not Settings.KeyAesthetics then return end local U=math.ceil(z/12)local k=(z-1)%12+1 local V=-15 local b=15 local g=Piano.Case.Goal local l=Piano.Case.Snow local e=l:clone()e.Parent=Piano.Keys.Snow e.Transparency=0 e.Position=Vector3.new(e.Position.x+math.random(V,b),e.Position.y,e.Position.z+math.random(V,b))local r=e local Z={}Z.Position=Vector3.new(e.Position.x,g.Position.y,e.Position.z)Tween(r,Z,2,true,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)e:Destroy()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 min = -15
	local max = 15 --These are for the distances
	local goal = Piano.Case.Goal
	local snow = Piano.Case.Snow
	local cln = snow:clone()
	cln.Parent = Piano.Keys.Snow
	cln.Transparency = 0
	cln.Position =
		Vector3.new(cln.Position.x + math.random(min, max), cln.Position.y, cln.Position.z + math.random(min, max))
	local obj = cln
	local Properties = {}
	Properties.Position = Vector3.new(cln.Position.x, goal.Position.y, cln.Position.z)
	Tween(obj, Properties, 2, true, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false)
	cln:Destroy()
end
