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

Teams spawn as different characters?

Asked by 6 years ago

I know how to make everyone spawn as something different, but how would I make each team spawn as a different character? (Like Phantom Forces, but with more teams, and the teams don't change.)

0
Use an if statement to check if the player is on a certain team, then give the required morph? T0XN 276 — 6y

1 answer

Log in to vote
0
Answered by
Zottic 19
6 years ago

Just do this, create a LocalScript and type...

game.Players.PlayerAdded:connect(function(player)
    if player.Team.Name = "Insert Team Name" then
        WhereverInTheGameTheMorphIs.Name = "StarterCharacter"
        WhereverInTheGameTheMorphIs.Parent = game.StarterPlayer
    else
        WhereverInTheGameTheSecondMorphIs.Name = "StarterCharacter"
        WhereverInTheGameTheSecondMorphIs.Parent = game.StarterPlayer
end)

It will instantly apply to the player because of Line 2

Ad

Answer this question