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)

2 comments
BrickColors have a .Name property to them. Examples; print(BrickColor.Red().Name), print(BrickColor.Blue().Name), print(BrickColor.new('Dark stone grey').Name)
Ty!!1!