function Receive(k,K,...)local V={...}if k==User and K=="\112\108\097\121"then HighlightPianoKey(V[1])Connector:FireAllClients("\112\108\097\121",User,V[1],Settings.SoundSource.Position,Settings.PianoSoundRange,Settings.PianoSounds)elseif k==User and K=="\097\098\111\114\116"then Deactivate()if SeatWeld then SeatWeld:remove()end end end function Activate(k)Connector:FireClient(k,"\097\099\116\105\118\097\116\101",Settings.CameraCFrame,Settings.PianoSounds)User=k end function Deactivate()Connector:FireClient(User,"\100\101\097\099\116\105\118\097\116\101")User=nil end
----------------------------------
------------FUNCTIONS-------------
----------------------------------

function Receive(player, action, ...)
	local args = { ... }
	if player == User and action == "play" then
		HighlightPianoKey(args[1])
		Connector:FireAllClients(
			"play",
			User,
			args[1],
			Settings.SoundSource.Position,
			Settings.PianoSoundRange,
			Settings.PianoSounds
		)
	elseif player == User and action == "abort" then
		Deactivate()
		if SeatWeld then
			SeatWeld:remove()
		end
	end
end
function Activate(player)
	Connector:FireClient(player, "activate", Settings.CameraCFrame, Settings.PianoSounds)
	User = player
end
function Deactivate()
	Connector:FireClient(User, "deactivate")
	User = nil
end
