Alright, so I’m making this question npc thingy, but i keep getting this error. It obviously has to do with serverside/clientside, but i cannot quite figure it out. Could anyone please help?
local TextEntry = vgui.Create( "DTextEntry", Frame ) TextEntry:SetPos( 65, 49 ) TextEntry:SetSize( 75, 25 ) TextEntry:SetText( "Yes/No" ) TextEntry.OnEnter = function( self, ply ) if self:GetValue() == "Yes" then chat.AddText("Correct!") ply:SetNWBool( "question1_true", true) else chat.AddText("Wrong!") end
attempt to index local 'ply' (a nil value)
Thanks for your help.