How do I remove all tags instead of just one tag from a player?

Hello!

  1. What do you want to achieve? Keep it simple and clear!
  • I want to remove all tags from the player (CollectionService)
  1. What is the issue? Include screenshots / videos if possible!
  • The issue is that I can’t put a table inside RemoveTag()
  • Error: argument #1 expects a string, but table was passed
  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
  • Yes, I tried to look for solutions on the Developer Hub, but I didn’t find any

So the question is how can I put many tags inside of the RemoveTag()?

Code:

local tags = player:GetTags()
player:RemoveTag(tags)
1 Like

You should be able to just loop through all the tags, i.e.

local tags = player:GetTags()
for _, tag in tags do
    player:RemoveTag(tag)
end
3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.