
Description
Sure! Here are all the features of the script: 1. **Chat GUI Creation**: The script creates a custom chat GUI with a frame, log panel, close button, minimize button, log button, title, and chat box. 2. **Draggable Frame**: The main frame of the chat GUI is draggable, allowing the player to move it around the screen. 3. **Log Panel**: A scrolling frame that displays chat messages. It has a vertical alignment set to "Bottom" and a padding of 0. 4. **Close Button**: A button that closes the chat GUI when clicked. 5. **Minimize Button**: A button that minimizes the log panel when clicked. Clicking it again restores the log panel to its original size. 6. **Log Button**: A button that toggles chat logging on and off. When logging is enabled, the button text shows "Log Chat [ON]", and when logging is disabled, it shows "Log Chat [OFF]". 7. **Title**: A label that displays the title "Syr0nix Chat GUI". 8. **Chat Box**: A text box where players can type their messages. It has a placeholder text "Type your message here..." and clears the text when focused. 9. **Chat Logging**: The script logs chat messages from all players in the game. It displays the player's name and message in the log panel. 10. **Message Color Coding**: The script color-codes messages based on their content: - Red for commands starting with `:` or `;` - Blue for whispers and team messages (`/w`, `/whisper`, `/team`, `/t`) - White for regular messages 11. **Player Chat Detection**: The script connects to the `Chatted` event of each player to log their messages. It also connects to the `ChildAdded` event of the `Players` service to detect new players and log their messages. 12. **Chat Box Submission**: When the player presses Enter after typing a message in the chat box, the script sends the message to the default chat system and clears the chat box. 13. **Focus Chat Box with `/` Key**: The script focuses the chat box when the `/` key is pressed, allowing the player to start typing immediately. These features work together to provide a comprehensive chat logging system with a user-friendly interface.