Is there a way to remove multiple tags at once from a player?

Hello, I am in the process of creating a kit system where players can choose to equip a kit. After a player equips a kit, they get tagged using CollectionService. But what happens if a player equips multiple kits? I’d have to remove all of their tags before giving them the new kit tag. Is there any way to remove all tags from a player at once?

I’ve read about CollectionService, i got a solution:

local tagsPlace = player.Character.HumanoidRootPart --Or anywhere you place your tags, bwah!
local tags = game:GetService("CollectionService"):GetTags(tagsPlace)

for i,tag in pairs(tags) do
	game:GetService("CollectionService"):RemoveTag(tagsPlace, tag)
end
2 Likes

Oh my god thank you so much! :smiley:

1 Like

I see you are kinda new to here, it is better to just put a :heart: button instead of reply, you can get flagged. Im glad to hear this, but just a like would be as much as needed.

1 Like