I’m excited to share TagInPlural, my first ever written library for Roblox, designed to make working with multiple tags on Instances easier, have more checks for them, and keep stuff as organized as possible. Since this is my first published library, I would greatly appreciate any feedback, suggestions, or tips to improve it!
What TagInPlural offers:
- Optimized tag checks: HasTags, HasAnyTag, HasExactTags
- Batch operations: AddTags, RemoveTags, ClearTags
- Query Instances efficiently: GetInstancesWithAllTags, GetInstancesWithAnyTags, GetInstancesWithExactTags
- CollectionService wrappers, so no need to even write game:GetService(“CollectionService”)!
Quick Usage Example:
local TagInPlural = require(path.to.TagInPlural)
-- Add multiple tags to a part
TagInPlural.AddTags({"Tree", "Resource"}, workspace.Part)
-- Check if it has all tags
if TagInPlural.HasTags({"Tree", "Resource"}, workspace.Part) then
print("This part is a tagged resource tree!")
end
-- Get all instances with a specific tags
local trees = TagInPlural.GetInstancesWithAllTags({"Tree", "Resources"})
print("Found "..#trees.." tree resource(s) in the game!")
It presents that and two more new Instance Getter functions for specific querying!
Why use TagInPlural:
- Makes managing multiple tags simple and clean
- Alternative to spreading
for loopseverywhere you need to check multiple tags in your game - Great for games that rely heavily on tags
Extra Tutorial Video:
For those who like video walkthroughs, here’s a short guide showing how to use TagInPlural alongside the written guide: Watch here
Download / Copy:
You can download a copy below in the update logs.
Since this is my first published library, I welcome all constructive feedback (I also accept suggestions for the code).
Update log:
1.0
Just the first version.
GitHub
Created and owned by pgiacometti_alt, pgiacometti, Pgia or Pg.