I am trying to make pointlights (Color3) change color using a BrickColor value, the only thing i need help with is converting that BrickColor to Color3
You can get the BrickColor from Color3 by just doing, for example:
local example = BrickColor.new("New Yeller").Color
This doesnt work for me
local color = script.Parent.TeamCol.Value
local player = script.Parent
local color3 = -- what i am trying to get
Try:
local color = script.Parent.TeamCol.Value
local player = script.Parent
local color3 = color3.Color
…and if that doesn’t work then maybe try it without the value:
local color = script.Parent.TeamCol
local player = script.Parent
local color3 = color3.Color
Workspace.Skeptical_Lizard.TeamColoring:7: invalid argument #3 (Color3 expected, got BrickColor)
Still no
what is line 7 in that script.
Where is this script located, and is it a local script or server script?
player.Head.Sight.Color = color
Standard script inside a character
try
player.Head.Sight.Color = color3
the color3 variable isnt a color3 trying to convert that brickcolor to color3 is the problem
Oh. I would get the players TeamColor and then do the rest from there, for e.g:
local player = game:GetService("Players")
local LocalPlayer = player.LocalPlayer
local BrickColor = LocalPlayer.TeamColor
local Color3 = BrickColor.Color
Although you may have to make it a LocalScript in order to get the player’s TeamColor.
he said its a standard script in the character, so i think you would use
local LocalPlayer = player:GetPlayerFromCharacter(script:FindFirstAncestorWhichIsA("Model"))