Hi! I wanted to create team characters depending on what team you’re on!
I searched youtube and on google, but I couldn’t find anything, so I’m asking the dev forum now!
I have 2 different uniforms, one for japan team, and one for USA team.
How would I change ones character to the team they’re on?
I tried coding something my self but that didn’t work, can someone help?
Make the script say something along the lines of: If the player is on TeamJapan, put [shirt] and [pants] on their avatar. If the player is on TeamUSA, put [shirt] and [pants] on their avatar.
Sorry that Im spamming your feed, but I found that if you go into your script
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character
Player.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
Character = character
end))
if player.Team.Name == "Japan" then
local JapanHatClone = JapanHat:Clone()
JapanHatClone.Parent = Character
end
end)