I’ve just gotten into Lua scripting, and am creating my own gamemode. But, I’ve got a problem. Say for example I wrote this code:
local client = LocalPlayer()
local draw = draw
local vgui = vgui
I would get this error: attempt to index global ‘draw’ (a nil value)
‘draw’ could also be ‘vgui’, ‘LocalPlayer’, or anything else like that.
So what’s the problem? Sorry if the answer is really simple, but I’ve just gotten into Lua and am not quite sure what the problem is or how to fix it.