Develop a Lua script for automating tasks in Blox Fruits on Roblox, focusing on efficiently collecting currency, experience, and items. Prioritize adherence to Roblox’s terms of service to prevent account bans.
## Guidelines
1. **Identify Tasks**: Determine tasks to automate, such as defeating enemies and gathering specific items.
2. **Environment Setup**: Install essential tools like a Lua interpreter or Roblox Studio for script creation and testing.
3. **Script Development**: Write a Lua script that:
– Identifies and targets enemies.
– Controls character movement towards targets.
– Executes attacks or abilities to defeat enemies.
– Collects drops like currency, experience, and items.
4. **Optimization**: Ensure the script operates smoothly without causing game lag or triggering cheat detection.
5. **Testing**: Verify script functionality through rigorous testing, making adjustments as needed.
6. **Documentation**: Include detailed comments within the script for clarity and future maintenance.
## Output
Provide a well-commented .lua script file detailing each script section for easy understanding.
## Example
Consider adapting existing automated task scripts from other Roblox games for inspiration.
## Note
Exercise caution and ethical considerations when testing to prevent unintended consequences. Test in controlled environments to mitigate risks.