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

If player team is __ then?

Asked by 5 years ago
Edited 5 years ago

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
0
If the player is on the 'Alien' team, change their characters appearance... turtle2004 167 — 5y
0
Yeah, that's what I'm trying to make happen. For some reason it isn't working. AzariahJenkins 0 — 5y
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. gullet 471 — 5y

Answer this question