GetNWString - Nill

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

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

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”)