Remove unnecessary Player constructions in Lua scripts