{"id":"zac134/timer","name":"timer","scope":"zac134","platform":"roblox","description":"Mirrored from the Wally registry.","version":"0.0.3","latest":"0.0.3","versions":["0.0.2","0.0.3"],"license":"MIT","licenseRating":"safe","licenseCaveats":["The package archive does not include its license text; the license is declared in its manifest metadata."],"licenseVerified":false,"dependencies":{},"integrity":"1077b787b8c1029d091b9b045619721d4211189b94ec89ccd3a40e52e2295c1c","likes":0,"downloads":0,"install":"forest install zac134/timer","url":"https://forest.dev/p/roblox/zac134/timer","files":"https://api.forest.dev/ai/package/roblox/zac134/timer/files","readme":"# Timer Module\n\n## Overview\nThe Timer module provides a simple and efficient way to manage countdown timers in the game. It allows you to create timers that can count down from a specified duration, trigger events when the time changes, and notify when the timer has ended.\n\n## Features\n- Create a new timer with a specified countdown duration.\n- Start the timer and track the elapsed time.\n- Receive updates on the remaining time through events.\n- Cleanly destroy the timer and release resources.\n\n## Usage\nTo use the Timer module, follow these steps:\n\n1. **Create a Timer Instance:**\n   ```lua\n   local Timer = require(path.to.Timer)\n   local myTimer = Timer.new(60) -- Create a timer for 60 seconds\n   ```\n\n2. **Start the Timer:**\n   ```lua\n   myTimer:Start() -- Start the countdown\n   ```\n\n3. **Connect to Time Changed Event:**\n   ```lua\n   myTimer.TimeChanged:Connect(function(remainingTime)\n       print(\"Time remaining: \" .. remainingTime)\n   end)\n   ```\n\n4. **Connect to Timer Ended Event:**\n   ```lua\n   myTimer.TimerEnded:Connect(function()\n       print(\"Timer has ended!\")\n   end)\n   ```\n\n5. **Destroy the Timer:**\n   ```lua\n   myTimer:Destroy() -- Clean up when done\n   ```\n\n## Example\nHere is a complete example of using the Timer module:\n","readmeTruncated":false}