The title is pretty self explanatory. When I try to run this, and when the player respawns onto this team for the first time, they don't get their accessories removed but when they die and respawn, then there accessories are removed. Any help would be great, thanks! Here is the script: ~~~~~~~~~~~~~~~~~ game.Teams.Playing.PlayerAdded:Connect(function(Plr) Plr.CharacterAdded:Connect(function(Char) Plr.CharacterAppearanceLoaded:Wait()
local PlayerRole = Plr:GetRoleInGroup(1)
local Billboardgui = Plr.Character.Head:WaitForChild("BillboardGui")
local PlrNameLabel = Billboardgui:WaitForChild("NameLabel")
local PlrRankLabel = Billboardgui:WaitForChild("RankLabel")
if PlayerRole == "Helper" then
PlrNameLabel.Text = Plr.Character.Name
PlrRankLabel.Text = "Helper"
Char.Humanoid:RemoveAccessories()
Clothingfunc(Plr, Char)
end
end)
end)
1 is not the group ID, just for example.

2 comments
I would say that the reason their accessories aren't being removed when their team is changed is because their character has already loaded when you change their team. The CharacterAdded event only fires whenever the player first spawns into the game or they respawn. Just remove the player's accessories when you switch them over to the new team to fix this.
character:WaitForChild("Accessory",2) wait(1)