Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

2 comments

0

Then why dont you use game.StarterPlayer?

0

Because I need different StarterPlayers for people on different teams. Putting one StarterCharacter in game.StarterPlayer will effect everyone.

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.