{"id":"lukadev-0/taggedobject","name":"taggedobject","scope":"lukadev-0","platform":"roblox","description":"Very simple utility to create objects bound to CollectionService tags.","version":"1.0.3","latest":"1.0.3","versions":["1.0.0","1.0.1","1.0.2","1.0.3"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{"howmanysmall/janitor":{"version":"^1.15.1","alias":"Janitor"}},"integrity":"f4ef44985e433dba382b438a2bdea1431ca31895d79cda938d99104cd1853622","likes":0,"downloads":0,"install":"forest install lukadev-0/taggedobject","url":"https://forest.dev/p/roblox/lukadev-0/taggedobject","files":"https://api.forest.dev/ai/package/roblox/lukadev-0/taggedobject/files","readme":"# TaggedObject\r\n\r\nVery simple utility to create objects bound to CollectionService tags.\r\n\r\n## Installation\r\n\r\nThis package is available on Wally at [`lukadev-0/taggedobject`](https://wally.run/package/lukadev-0/taggedobject).\r\n\r\n```toml\r\n[dependencies]\r\nTaggedObject = \"lukadev-0/taggedobject@1.0.0\"\r\n```\r\n\r\n## Usage\r\n\r\n```lua\r\nlocal TaggedObject = require(path.to.TaggedObject)\r\n\r\nTaggedObject(\"MyTagName\", function(instance, janitor)\r\n  janitor:Add(\r\n    RunService.Heartbeat:Connect(function(deltaTime)\r\n      instance.CFrame *= CFrame.fromEulerAnglesXYZ(0, deltaTime * math.pi, 0)\r\n    end)\r\n  )\r\nend)\r\n```\r\n\r\nThe function is called everytime the tag is added, and for\r\nevery object which already has the tag.\r\n\r\n- `instance` is the instance with the tag.\r\n- `janitor` is a Janitor which is cleaned up when the tag is removed\r\n\r\nTaggedObject uses [howmanysmall's janitor library](https://howmanysmall.github.io/Janitor/).\r\n","readmeTruncated":false}