GetNWString - Nill

[lua]\gamemode\cl_init.lua:28: attempt to call method ‘GetNWString’ (a nil value)
[/lua]

[lua] local level = ply:GetNWString(“theLevel”)
[/lua]

The above is the line the error happenes on.

Any clue??

ply is not a valid player entity. Have you defined it?

Where would I define it besides the function permas.

If this is in a client file shouldn’t it be LocalPlayer() instead of ply?

You are doing this clientsided. So I am guessing you should use LocalPlayer():GetNWString(“theLevel”)