Attempt to index field 'Music'

I´ve got this Error:
[lua][ERROR] addons/tttsuddendeath/lua/autorun/suddendeath.lua:32: attempt to index field ‘Music’ (a nil value)

  1. func - addons/tttsuddendeath/lua/autorun/suddendeath.lua:32
  2. unknown - lua/includes/extensions/net.lua:32

And this is the Code:
[lua] net.Receive(“SuddenMusic_Remove”, function(len)
local Music = net.ReadString()
local ply = LocalPlayer()
if ( ply.Music:IsPlaying() ) then

What does that mean and how can I solve this Problem ?
Thanks in Advance.

The error means ply.Music is nil. You aren’t setting it anywhere in the provided code.

Easy fix is to tell if ply.Music is nil before running the IsPlaying method.