ColorSequence Help

Hello, I was wondering how to convert Player.TeamColor to a ColorSequence.new()
Heres a example I was trying,

					color = Player.TeamColor
					colorseq = ColorSequence.new(color,color)

A TeamColor is a color name, whereas a ColorSequence requires Color3 number values. You could have a lookup table for the values:

local teamcolours = {
	["White"] = Color3.new(1,1,1)
}

Dunno if it will work though.

1 Like

A player’s ‘TeamColor’ property is a ‘BrickColor’ value.
https://developer.roblox.com/en-us/api-reference/property/Player/TeamColor
The ‘ColorSequence’ class constructor function expects ‘Color3’ values. We can index a ‘BrickColor’ value’s ‘Color’ property to retrieve its ‘Color3’ value equivalent.

local Sequence = ColorSequence.new(Player.TeamColor.Color, Player.TeamColor.Color)

2 Likes

Thanks man!
This helped out a-lot sorry for not responding I was asleep