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

A character appearance script?

Asked by
lushguy 13
6 years ago
Edited 6 years ago

A script that changes the appearance of a player depending on what team they are on.

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

This can be easily be done:

game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:connect(function(char)
        plr.Changed:connect(function()
            if plr.Team == "TeamRed" then -- It can also be done by "plr.Team == game.Teams.TeamRed"
                char.Head.BrickColor = BrickColor.Red()
            elseif plr.Team == "TeamBlue" then -- It can also be done by "plr.Team == game.Teams.TeamBlue"
                char.Head.BrickColor = BrickColor.Blue()
            end
        end)
    end)
end)
Ad

Answer this question