Team characters!

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?
image

I tried coding something my self but that didn’t work, can someone help?

2 Likes

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.

1 Like

I have a helmet too though! Any other ideas?

2 Likes

All you need is two starter character models (one for each team) and then to assign them to each player’s ‘Character’ property accordingly.

1 Like

This is the answer just change the name of the clone of Japan/Usa to StarterCharacter https://gyazo.com/7d68d0e84abf7a4efcca7fa83b54e2ce

1 Like

I know that already, but how would I assign Japanese uniform to Japan team, and other way with USA?

1 Like

Making the France uniform.

Colors:

255,0,0
255,255,255
0,0,255
0,0,0

So yeah, theres is gonna be 4 parts.

1 Like

What does that have to do with my issue?

2 Likes

From a server script check the players team by Player.Team then add the Starter depending on the team

for pseudo code

if Player.Team == “Japan” then
local JapanModel = JapanModel:Clone()
local JapanModel.Name = StarterCharacter
JapanModel.Parent = StarterPlayer
end

Player:LoadCharacter()

When I have the chance I will be more specific if I have to. Sorry about the lazy response

1 Like

I actually found this while writing a script to help you Player:LoadCharacterWithHumanoidDescription

1 Like

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)

I’m not good at scripting. I have no more ideas.