I need to somehow convert a BrickColor value into a String to use this:
local db = false script.Parent.MouseButton1Click:connect(function(click) if db == false then db = true local team = script.Parent.Parent.Parent.Parent.Parent.Parent.TeamColor local unit = game.ServerStorage["Sword AI"]:Clone() unit.Owner.Value = script.Parent.Parent.Parent.Parent.Parent.Parent.Name unit:SetPrimaryPartCFrame(game.Workspace[team].SpawnPart.CFrame) wait(0.75) unit.Parent = game.Workspace.NPCs wait(3) db = false end end)
Well, while we now know that BrickColor has the .Name property to it, we can place this script into a brick and look at the output.
local part = script.Parent.BrickColor print(part.Name)
put that Inside the part which you want and you will have the Name(or String) of the brickcolor.