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?
Code:
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)
