. . . Posted July 28, 2017 Share Posted July 28, 2017 (edited) Hello, I need some help fixing a tiny bit of code ! So, this is the code if inst.HUD:IsChatInputScreenOpen() or inst.HUD:IsConsoleScreenOpen() then return end I put this code in some my functions in modmain.lua then they don't effect the character if they're typing in chat, but I keep getting this crash if the world has caves on? " attempt to index field 'HUD' (a nil value) " It'd be great if someone can tell me what I'm doing wrong ! Edited July 30, 2017 by SuperDavid Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now