Fix warnings in PlayerScript