Scripting Helpers is winding down operations and is now read-only. More info→
Log in to vote

How do I fix team only gear appearing on all teams?

Asked by
CMB1048 25
1 year ago

So basically, I am trying to make Avatar: The Way of the Water into a border game. I have tried making a team only shirt, pants, and hat script but it appears on all other teams too! How do I fix this?


Players = game:GetService('Players') Teams = game:GetService('Teams') Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) print("Character is loaded..") local team = player.Team local shirt = team.Shirt:Clone() local pants = team.Pants:Clone() local Mask = team.Mask:Clone() if not player.Team:FindFirstChild("Shirt") then print("No clothing in this team!") else shirt.Parent = character pants.Parent = character Mask.Parent = character end end) end)

Answer this question