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

Is It Possible To Change The StarterCharacter Depending On A Team Color?

Asked by 6 years ago
Edited 6 years ago
local rs = game.ReplicatedStorage
local attack = rs.Attackers.StarterCharacter:Clone()
local defend = rs.Defenders.StarterCharacter:Clone()
local plr = game.Players.LocalPlayer
local starterplr = game.StarterPlayer --I don't get this part

if plr.TeamColor == BrickColor.new("Really red") then
    print("terrorist")
    defend.Parent = starterplr
elseif plr.TeamColor == BrickColor.new("Really blue") then
    print("swat")
    attack.Parent = starterplr
end

I want my script to check if the player is on either team and give them each a different StarterCharacter but the problem is that there is no way to change StarterCharacters other than the game.StarterPlayer.

0
Then why dont you use game.StarterPlayer? hiimgoodpack 2009 — 6y
0
Because I need different StarterPlayers for people on different teams. Putting one StarterCharacter in game.StarterPlayer will effect everyone. InfernoExeuctioner 126 — 6y

1 answer

Log in to vote
0
Answered by
H4X0MSYT 536 Moderation Voter
6 years ago

The only thing I can think of, involves making the players default body transparent, and adding the character ontop. Of course, this would mean scripting it's animations etc. May be slightly harder.

Ad

Answer this question