I am trying to make a script that shows the color of your team as a gui.
while true do
wait(.1)
local player = script.Parent.Parent.Parent.Parent.Parent
local team = player.TeamColor.Color
print(team)
script.Parent.BackgroundColor3 = Color3.new(team)
end
The output of print is 0.768628, 0.156863, 0.109804 and when i replace it with team on 'script.Parent.BackgroundColor3 = Color3.new(team)' it works, why doesnt it work with team?

2 comments
You were right thanks! For some reason had to change team.Color to team
You just need team as you have got the Color from the Brickcolor.