I'm making a game where which team you are on represent your torso colour. My code is here:
game.Workspace.ChildAdded:connect(function(plr)
local team = game:GetService("Teams")
local Orange = game.Teams.Orange
local Blue = game.Teams.Blue
if plr.team == Orange then print('Orange team') local bodycolors = Instance.new("BodyColors", plr) bodycolors.TorsoColor = BrickColor.new("Bright orange") end
if plr.team == Blue then
print('Blue team')
local bodycolors = Instance.new("BodyColors", plr)
bodycolors.TorsoColor = BrickColor.new("Bright blue")
end
end)
could you help me fix this

1 comment
Psst use the lua blue circle button to help you format your code.