Is there a way to make a player spawn with a specific StarterCharacter depending on their team? I looked at https://scriptinghelpers.org/questions/51439/how-to-get-a-custom-startercharacter-model-team-only but it doesn't seem to work. Is there a way to do LoadCharacter() but with a startercharacter?
✓ ANSWER ACCEPTED
Is there a way to make different StarterCharacters for different teams?
1 answer
✓ Accepted answer
What captainbuilda said is correct: "Put the models in ReplicatedStorage ( FE ) or ServerStorage ( Non-FE ) named their respective teams, then when a player is added check their team and clone the model to wherever you need it."
local player = game:GetService("Players").LocalPlayer
spawn(function() --when a player spawns
if player.Team == game:GetService("Teams").Team1 then --if Team1
local script = game:GetService("ReplicatedStorage").script:Clone() --clones your script
script.Parent = game.Workspace[player.Name] --puts the script in your character
end
end)
--this is the same function except it fires when a player changes team
player:GetPropertyChangedSignal("Team"):Connect(function()
if player.Team == game:GetService("Teams").Team1 then
local script = game:GetService("ReplicatedStorage").script:Clone()
script.Parent = game.Workspace[player.Name]
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Where do we put this script in