I've been trying to figure out this string of code for a while and I just can't figure it out. I don't know why it won't work. Please help?

local team = game.Players.LocalPlayer.TeamColor

if team == game.Teams.Alien.TeamColor then
game.StarterPlayer.Alien.Name = "StarterCharacter"
end

3 comments

0

If the player is on the 'Alien' team, change their characters appearance...

0

Yeah, that's what I'm trying to make happen. For some reason it isn't working.

0

If you're editing anything in starterplayer it will only show up the next time someone joins, if it's a localscript it will never show because that change is only on the client that has already joined and copied the contents of starterplayer once.