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

How do I make a person on one team appear differently/Transparent?

Asked by
Prioxis 673 Moderation Voter
10 years ago

I'm trying to make a game like darkness but I want the characters on Team 1 (Beast) to be black and half transparent how would that look?

1 answer

Log in to vote
2
Answered by
c0des 207 Moderation Voter
10 years ago

Add a team. Name it "Beast", and make its TeamColor "Really black".

game.Players.PlayerAdded:connect(function(newPlayer)
newPlayer.CharacterAdded:connect(function(Character)
    wait(1)
    if newPlayer.TeamColor == game.Teams.Beast.TeamColor then
        Character.Head.Transparency = 0.5
        Character.Head.BrickColor = game.Teams.Beast.TeamColor
        Character.Torso.Transparency = 0.5
        Character.Torso.BrickColor = game.Teams.Beast.TeamColor
        Character["Left Arm"].Transparency = 0.5
        Character["Left Arm"].BrickColor = game.Teams.Beast.TeamColor
        Character["Right Arm"].Transparency = 0.5
        Character["Right Arm"].BrickColor = game.Teams.Beast.TeamColor
        Character["Left Leg"].Transparency = 0.5
        Character["Left Leg"].BrickColor = game.Teams.Beast.TeamColor
        Character["Right Leg"].Transparency = 0.5
        Character["Right Leg"].BrickColor = game.Teams.Beast.TeamColor
        Character["Shirt"]:Destroy()
        Character["Pants"]:Destroy()
    end
end)
end)
0
alright thank you Prioxis 673 — 10y
0
No problem. :) c0des 207 — 10y
Ad

Answer this question