I attempted to make a script (I'm not the best ) that removes all players hats, and constantly checks for hats, But will not remove hats with names from a table.
save{mask1} plr = script.Parent.Parent.Character H = plr:WaitForChild("Hat") H:remove() elseif H.name == save then end
for i,v in next,game.Players:getChildren() do for o,b in next,v.Character:getChildren() do if b.className=="Hat" then b:Destroy() end end end
Next time, don't attempt to make up a random code by "save{mask1}"