--[[
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
