Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Output error switching?

Once i change fromBrickColor.new to Color3.new it switches.

BrickColor.new

23:26:26.283 - Workspace.Loulou1112's Tycoon Kit.Really red.Core:3: bad argument #3 to 'TeamColor' (BrickColor expected, got Color3) 23:26:26.284 - Script 'Workspace.Loulou1112's Tycoon Kit.Really red.Core', Line 3 23:26:26.285 - Stack End

Color3.new

23:26:26.283 - Workspace.Loulou1112's Tycoon Kit.Really red.Core:3: bad argument #3 to 'TeamColor' (Color3 expected, got BrickColor) 23:26:26.284 - Script 'Workspace.Loulou1112's Tycoon Kit.Really red.Core', Line 3 23:26:26.285 - Stack End

Here is the core,

local Factory = Instance.new("Team", game:GetService("Teams"))
Factory.Name = script.Parent.Name
Factory.TeamColor = Color3.new(script.Parent.FactoryConfig.Teamcolor.Value)
Factory.AutoAssignable = false

It's not finished yet, can you help me for this?

1 answer


Create = assert(LoadLibrary('RbxUtility')).Create --[[ I just use Create cause its faster :P ]]--


local Teams = game:GetService("Teams")

local Factory = Create "Team" {
  Parent = Teams,
   Name = script.Parent.Name,
   TeamColor = BrickColor.new('Really red'),
   AutoAssignable = false
}

Here :P

This discussion is preserved as it was. New answers, comments, and votes are closed.