Hello guys
i’m trying to make : ply works in a Think hook
[lua]
hook.Add( “Think”, “PlyThink”, function(ply)
local trace = LocalPlayer():GetEyeTrace()
if input.IsKeyDown( KEY_M ) then
ply.ChoipeauxOpen = true
end
end )
[/lua]
But i get this error: attempt to index local ‘ply’ (a nil value)